Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Hello,
I have installed Joget V3 Enterprise edition.
I am trying to build the project from source. I followed all the steps as per the KB articles but the source is giving an error while building at wflow-wfengin.
I am running mysql on 3307 port and modified the settings accordingly so that the build process does not break due to mysql connection. Also, when I installed enterprise edition, I create some forms and userviews. All that information is stored in jwdb database.
To build the source, I created a new db, wflowdb and imported the just the data from the database jwdb to wflowdb.
Please let me know how do I fix this issue.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] wflow-jdbc ........................................ SUCCESS [0.730s]
[INFO] wflow-commons ..................................... SUCCESS [0.334s]
[INFO] wflow-plugin-base ................................. SUCCESS [0.702s]
[INFO] wflow-directory ................................... SUCCESS [2.663s]
[INFO] wflow-form ........................................ SUCCESS [0.129s]
[INFO] wflow-userview .................................... SUCCESS [0.220s]
[INFO] wflow-wfengine .................................... FAILURE [7.238s]
[INFO] wflow-designer .................................... SKIPPED
[INFO] wflow-commonsweb .................................. SKIPPED
[INFO] wflow-formsweb .................................... SKIPPED
[INFO] wflow-wfweb ....................................... SKIPPED
[INFO] wflow-designerweb ................................. SKIPPED
[INFO] wflow-app ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
The error is :
-------------------------------------------------------------------------------
Test set: org.joget.workflow.model.TestImportExportManager
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.181 sec <<< FAILURE!
testSuite(org.joget.workflow.model.TestImportExportManager) Time elapsed: 0.587 sec <<< ERROR!
java.lang.IllegalArgumentException: Form not found at org.springframework.util.Assert.isTrue(Assert.java:65) at org.joget.workflow.model.TestImportExportManager.testSuite(TestImportExportManager.java:93) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.test.context.junit4.SpringTestMethod.invoke(SpringTestMethod.java:163) at org.springframework.test.context.junit4.SpringMethodRoadie.runTestMethod(SpringMethodRoadie.java:233) at org.springframework.test.context.junit4.SpringMethodRoadie$RunBeforesThenTestThenAfters.run(SpringMethodRoadie.java:333) at org.springframework.test.context.junit4.SpringMethodRoadie.runWithRepetitions(SpringMethodRoadie.java:217) at org.springframework.test.context.junit4.SpringMethodRoadie.runTest(SpringMethodRoadie.java:197) at org.springframework.test.context.junit4.SpringMethodRoadie.run(SpringMethodRoadie.java:143) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:142) at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51) at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44) at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27) at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37) at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
-------------------------------------------------------------------------------
Test set: org.joget.workflow.model.TestImportExportManager
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.181 sec <<< FAILURE!
testSuite(org.joget.workflow.model.TestImportExportManager) Time elapsed: 0.587 sec <<< ERROR!
java.lang.IllegalArgumentException: Form not found
at org.springframework.util.Assert.isTrue(Assert.java:65)
at org.joget.workflow.model.TestImportExportManager.testSuite(TestImportExportManager.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.test.context.junit4.SpringTestMethod.invoke(SpringTestMethod.java:163)
at org.springframework.test.context.junit4.SpringMethodRoadie.runTestMethod(SpringMethodRoadie.java:233)
at org.springframework.test.context.junit4.SpringMethodRoadie$RunBeforesThenTestThenAfters.run(SpringMethodRoadie.java:333)
at org.springframework.test.context.junit4.SpringMethodRoadie.runWithRepetitions(SpringMethodRoadie.java:217)
at org.springframework.test.context.junit4.SpringMethodRoadie.runTest(SpringMethodRoadie.java:197)
at org.springframework.test.context.junit4.SpringMethodRoadie.run(SpringMethodRoadie.java:143)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:142)
at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Thanks
Anup
4 Comments
Julian
Hi Anup,
From the output, it looks like you may be using the source code for v2 to build against the v3 database hence the error. There are 2 projects on GitHub, the one for v3 is at https://github.com/jogetworkflow/jw-community
Thanks
Anup Baldawa
Thank you very much Julian for the help.
It worked.
Just one more question. Once the source code is built, what should be my next step? How do I run it? I am sorry, I am new to Java world and do not have a lot of insight into it.
Hugo
Hey Anup,
Glad to hear that you are making progress. Once you build it, you will be getting the war file at "wflow-consoleweb\target" and "wflow-designerweb\target". Make your tomcat to point to the target directory or you can copy the war files into your "tomcat\webapps" folder as well.
Hope this will get you somewhere!
Thanks
Waqar Ahmed
Hello Hugo;
Can I make a WAR file the same way ? for the test process example of leaveApp available in KB of jogget, I installed v3.1 of Jogget and made the LeaveApp for learning but I want to make a war file of it and place it on tomcat and run it just like any other web app. is it possible ? can you guide ?
-Thanx.
Waqar