Hi All,

I got the following error message when I try to build the wflow-core project by maven, it seems need an account to access the Joget official maven repository (http://dev.joget.org/archiva/repository/internal/), where and how can I get the account? Many thanks for any information that, thanks again!

mvn install
[INFO] Scanning for projects...
[WARNING]
        Profile with id: 'default' has not been activated.

[INFO] ------------------------------------------------------------------------
[INFO] Building wflow-core
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------

_[INFO] [resources:resources

Unknown macro: {execution}

]_


[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 112 resources
[INFO] snapshot org.joget:wflow-wfengine:4.0-SNAPSHOT: checking for updates from joget-internal
[WARNING] repository metadata for: 'snapshot org.joget:wflow-wfengine:4.0-SNAPSHOT' could not be retrieved from repository: joget-internal due to an error: Authorization failed: Access denied to: http://dev.joget.org/archiva/repository/internal/org/joget/wflow-wfengine/4.0-SNAPSHOT/maven-metadata.xm
l
[INFO] Repository 'joget-internal' will be blacklisted
_[INFO] Unable to find resource 'org.xhtmlrenderer:core-renderer:jar:R8-final' in repository central (http://repo1.maven.org/maven2)_
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR

  • No labels

11 Comments

  1. Hi there,

    Please use the updated github's link in Building from Source. Thanks.

    1. Thanks Hugo, your reply is a great help for me!

  2. Hi,

    I also have a problem building Joget from sources after I followed the instructions.

    ERROR 23 Mai 2014 17:05:42 org.springframework.test.context.TestContextManager  - Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@14d659d] to prepare test instance [org.joget.directory.model.service.TestDirectoryManager@4a3158]
    java.lang.IllegalStateException: Failed to load ApplicationContext
            at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:201)
    
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginManager' defined in class path resource [pluginBaseApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.Error: Unresolved compilation problem:
            The method getName() of type DirectoryManagerAuthenticatorImpl must override a superclass method
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
    
    Caused by: java.lang.Error: Unresolved compilation problem:
            The method getName() of type DirectoryManagerAuthenticatorImpl must override a superclass method
            at org.joget.directory.ext.DirectoryManagerAuthenticatorImpl.getName(DirectoryManagerAuthenticatorImpl.java:15)
    

    Do you have any pointers for me how to get Joget to build?

    Best Regards, Marcin

    1. Which branch are you checking out and how do you build your project? What is your environment setup? Any other error log?

      1. Hi Walter,

        I checked out the master HEAD (c376465) from github, which by the way is the same commit as HEAD of branch 4.0-SNAPSHOTS. I then installed the 3rd party libs from the WEB-INF/lib dir of the non-source Joget installation with the setup-maven.xml ant file. I wanted to use the existing MySQL server that comes with Joget, but kept getting database connection errors when building. Hence, I installed another MySQL server that I start on port 3306. I had to manually create the database 'jwdb'. The database connection is working, because the jwdb database gets filled with data.

        I use mvn 2.2.1 and JDK 1.6.0_35 to build. In wflow-app I call 'mvn install'.

        The error occurs in module 'wflow-wfengine' during the test of 'org.joget.workflow.model.TestWorkflowManager'. I attached the complete build.log

        The first error that I get is:

        com.lutris.dods.builder.generator.query.DataObjectException:
        Unknown SQLException: <SqlQueryExecute><SqlQueryException>(<Replicated>:Table 'jwdb.shkprocessstates' doesn't exist)
                at org.enhydra.shark.instancepersistence.data.ProcessStateQuery._runQuery(ProcessStateQuery.java:1181)
                at org.enhydra.shark.instancepersistence.data.ProcessStateQuery.runQuery(ProcessStateQuery.java:632
        

        And the some time later

        Caused by: org.enhydra.shark.api.RootError:
        SharkEngineManager -> Can not work - Problems while configuring InstancePersistenceManager!
                at org.enhydra.shark.SharkEngineManager.init(SharkEngineManager.java:282)
                at org.enhydra.shark.SharkEngineManager.init(SharkEngineManager.java:872)
                at org.enhydra.shark.SharkEngineManager.configure(SharkEngineManager.java:535)
                ... 58 more
        Caused by: org.enhydra.shark.api.internal.instancepersistence.PersistenceException:
        Unknown SQLException: <SqlQueryExecute><SqlQueryException>(<Replicated>:Table 'jwdb.shkprocessstates' doesn't exist)
                at org.enhydra.shark.instancepersistence.DODSPersistentManager.initActivityAndProcessStatesTable(DODSPersistentManager.java:262)
                at org.enhydra.shark.instancepersistence.DODSPersistentManager.configure(DODSPersistentManager.java:191)
                at org.enhydra.shark.SharkEngineManager.init(SharkEngineManager.java:266)
                ... 60 more
        Caused by: org.enhydra.shark.api.internal.instancepersistence.PersistenceException:
        Unknown SQLException: <SqlQueryExecute><SqlQueryException>(<Replicated>:Table 'jwdb.shkprocessstates' doesn't exist)
                at org.enhydra.shark.instancepersistence.DODSPersistentManager.getPersistedProcessStateObject(DODSPersistentManager.java:4444)
                at org.enhydra.shark.instancepersistence.DODSPersistentManager.initActivityAndProcessStatesTable(DODSPersistentManager.java:231)
                ... 62 more
        Caused by: com.lutris.dods.builder.generator.query.DataObjectException:
        Unknown SQLException: <SqlQueryExecute><SqlQueryException>(<Replicated>:Table 'jwdb.shkprocessstates' doesn't exist)
                at org.enhydra.shark.instancepersistence.data.ProcessStateQuery._runQuery(ProcessStateQuery.java:1181)
                at org.enhydra.shark.instancepersistence.data.ProcessStateQuery.runQuery(ProcessStateQuery.java:632)
                at org.enhydra.shark.instancepersistence.data.ProcessStateQuery.getNextDO(ProcessStateQuery.java:1406)
                at org.enhydra.shark.instancepersistence.DODSPersistentManager.getPersistedProcessStateObject(DODSPersistentManager.java:4436)
                ... 63 more
        Caused by: java.sql.SQLException: <SqlQueryExecute><SqlQueryException>(<Replicated>:Table 'jwdb.shkprocessstates' doesn't exist)
                at com.lutris.dods.builder.generator.query.QueryBuilder.executeQuery(QueryBuilder.java:2522)
                at org.enhydra.shark.instancepersistence.data.ProcessStateQuery.executeQuery(ProcessStateQuery.java:1592)
                at com.lutris.appserver.server.sql.standard.StandardDBQuery.query(StandardDBQuery.java:118)
                at org.enhydra.shark.instancepersistence.data.ProcessStateQuery._runQuery(ProcessStateQuery.java:904)
                ... 66 more
        2014-05-26 13:19:23,969: Initiating transaction rollback
        2014-05-26 13:19:23,969: XAResource.end ( 3137322E31362E32392E3234382E746D30303030313030303035:3137322E31362E32392E3234382E746D31 , XAResource.TMSUCCESS ) on resource org.apache.commons.dbcp.managed.LocalXAConnec represented by XAResource instance org.apache.commons.dbcp.managed.LocalXAConnectionFactory$LocalXAResource@7c0d41
        2014-05-26 13:19:23,969: XAResource.rollback ( 3137322E31362E32392E3234382E746D30303030313030303035:3137322E31362E32392E3234382E746D31 ) on resource org.apache.commons.dbcp.managed.LocalXAConnec represented by XAResource instance org.apache.commons.dbcp.managed.LocalXAConnectionFactory$LocalXAResource@7c0d41
        java.sql.SQLException: Connection can not be used while enlisted in another transaction
                at org.apache.commons.dbcp.managed.ManagedConnection.updateTransactionStatus(ManagedConnection.java:68)
                at org.apache.commons.dbcp.managed.ManagedConnection.checkOpen(ManagedConnection.java:60)
                at org.apache.commons.dbcp.DelegatingConnection.clearWarnings(DelegatingConnection.java:331)
        
        

        And then finally come the ApplicationContext and BeanCreation errors

        2014-05-26 13:19:23,985: afterCompletion ( STATUS_ROLLEDBACK ) called  on Synchronization:
        org.enhydra.dods.jta.SyncDBTransactionFactory$SyncDBTransaction@fbfb30
        2014-05-26 13:19:23,985: afterCompletion ( STATUS_ROLLEDBACK ) called  on Synchronization:
        org.apache.commons.dbcp.managed.TransactionContext$1@128453c
        2014-05-26 13:19:23,985: afterCompletion ( STATUS_ROLLEDBACK ) called  on Synchronization:
         org.apache.commons.dbcp.managed.TransactionContext$1@d997f9
        2014-05-26 13:19:23,985: rollback() done of transaction 172.16.29.248.tm0000100005
        2014-05-26 13:19:23,985: Logfile closed: C:\mycyg\home\Marcin.Hewelt\projects\jw-community\wflow-wfengine\.\tmlog4.log
        2014-05-26 13:19:23,985: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@171b246]
        to prepare test instance [org.joget.workflow.model.TestWorkflowManager@16f4ce0]java.lang.IllegalStateException: Failed to load ApplicationContext
                at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:201)
                at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
                at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
                at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:255)
                at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:111)
        [...]
        
        Caused by: org.springframework.beans.factory.BeanCreationException:
         Error creating bean with name 'workflowManager' defined in class path resource [wfengineApplicationContext.xml]:
         Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException:
         Could not instantiate bean class [org.joget.workflow.model.service.WorkflowManagerImpl]:
         Constructor threw exception; nested exception is org.enhydra.shark.api.RootError
                at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
                ... 21 more
        Caused by: org.springframework.beans.BeanInstantiationException:
         Could not instantiate bean class [org.joget.workflow.model.service.WorkflowManagerImpl]:
         Constructor threw exception; nested exception is org.enhydra.shark.api.RootError
               at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
                at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
                at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)
                ... 39 more
        Caused by: org.enhydra.shark.api.RootError
                at org.enhydra.shark.Shark.configure(Shark.java:57)
                at org.joget.workflow.shark.JSPClientUtilities.init(JSPClientUtilities.java:96)
                at org.joget.workflow.model.service.WorkflowManagerImpl$1.doInTransactionWithoutResult(WorkflowManagerImpl.java:185)
                at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)
                at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
                at org.joget.workflow.model.service.WorkflowManagerImpl.setPath(WorkflowManagerImpl.java:181)
                ... 41 more
        Caused by: java.lang.reflect.InvocationTargetException
               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.enhydra.shark.Shark._conf(Shark.java:127)
                at org.enhydra.shark.Shark.configure(Shark.java:54)
                ... 52 more
        Caused by: org.enhydra.shark.api.RootError:
        SharkEngineManager -> Can not work - Problems while configuring InstancePersistenceManager!
                at org.enhydra.shark.SharkEngineManager.init(SharkEngineManager.java:282)
                at org.enhydra.shark.SharkEngineManager.init(SharkEngineManager.java:872)
                at org.enhydra.shark.SharkEngineManager.configure(SharkEngineManager.java:535)
                ... 58 more
        Caused by: org.enhydra.shark.api.internal.instancepersistence.PersistenceException:
         Unknown SQLException: <SqlQueryExecute><SqlQueryException>(<Replicated>:Table 'jwdb.shkprocessstates' doesn't exist
        )        at org.enhydra.shark.instancepersistence.DODSPersistentManager.initActivityAndProcessStatesTable(DODSPersistentManager.java:262)
                at org.enhydra.shark.instancepersistence.DODSPersistentManager.configure(DODSPersistentManager.java:191)
                at org.enhydra.shark.SharkEngineManager.init(SharkEngineManager.java:266)
                ... 60 more
        Caused by: org.enhydra.shark.api.internal.instancepersistence.PersistenceException:
        Unknown SQLException: <SqlQueryExecute><SqlQueryException>(<Replicated>:Table 'jwdb.shkprocessstates' doesn't exist)
                at org.enhydra.shark.instancepersistence.DODSPersistentManager.getPersistedProcessStateObject(DODSPersistentManager.java:4444)
                at org.enhydra.shark.instancepersistence.DODSPersistentManager.initActivityAndProcessStatesTable(DODSPersistentManager.java:231)
                ... 62 more
        Caused by: com.lutris.dods.builder.generator.query.DataObjectException:
         Unknown SQLException: <SqlQueryExecute><SqlQueryException>(<Replicated>:Table 'jwdb.shkprocessstates' doesn't exist)
                at org.enhydra.shark.instancepersistence.data.ProcessStateQuery._runQuery(ProcessStateQuery.java:1181)
                at org.enhydra.shark.instancepersistence.data.ProcessStateQuery.runQuery(ProcessStateQuery.java:632)
                at org.enhydra.shark.instancepersistence.data.ProcessStateQuery.getNextDO(ProcessStateQuery.java:1406)
                at org.enhydra.shark.instancepersistence.DODSPersistentManager.getPersistedProcessStateObject(DODSPersistentManager.java:4436)
                ... 63 more
        Caused by: java.sql.SQLException: <SqlQueryExecute><SqlQueryException>(<Replicated>:Table 'jwdb.shkprocessstates' doesn't exist)
                at com.lutris.dods.builder.generator.query.QueryBuilder.executeQuery(QueryBuilder.java:2522)
                at org.enhydra.shark.instancepersistence.data.ProcessStateQuery.executeQuery(ProcessStateQuery.java:1592)
                at com.lutris.appserver.server.sql.standard.StandardDBQuery.query(StandardDBQuery.java:118)
                at org.enhydra.shark.instancepersistence.data.ProcessStateQuery._runQuery(ProcessStateQuery.java:904)
                ... 66 more
        Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.728 sec <<< FAILURE!
        

        Is the only error here, that the 'shkprocessstates' table is not created during the test and that I must create it manually?

        1. After I ran the sql script Joget/data/jwdb-empty, which created the shkprocessstates table, wflow-engine compiled! 

          However, next problem occurs in wflow-core:

          Tests in error:
            testSubForms(org.joget.apps.app.model.TestAppService)
          
          Tests run: 10, Failures: 0, Errors: 1, Skipped: 0
          
          2014-05-26 14:04:21,635: PluginManager initialized
          2014-05-26 14:04:23,132: Deleting all running processes for workflow_patterns
          2014-05-26 14:04:23,195: PackageAdmin -> User roleAnonymous is trying to close all package versions of Package with id workflow_patterns
          2014-05-26 14:04:23,195: SharkUtilities -> synchronizing XPDL cache
          2014-05-26 14:04:23,195: java.lang.Exception: Package with Id=workflow_patterns does not exist
          java.lang.Exception: Package with Id=workflow_patterns does not exist
                  at org.enhydra.shark.PackageAdmin.closeAllPackagesForId(PackageAdmin.java:365)
                  at org.joget.workflow.model.service.WorkflowManagerImpl.processDeleteAndUnload(WorkflowManagerImpl.java:1041)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          

          I attached the complete log core_error.log

          <edit>Running mvn install in wflow-core a second time succeeded, although I did not chang anything!</edit>

          This behavior is a little strange to me, but I am happy that the build works.

          [INFO] Reactor Summary:[INFO]
          ------------------------------------------------------------------------
          [INFO] wflow-jdbc ............................................ SUCCESS [0.967s]
          [INFO] wflow-commons ......................................... SUCCESS [0.346s]
          [INFO] wflow-plugin-base ..................................... SUCCESS [1.501s]
          [INFO] wflow-plugin-archetype ................................ SUCCESS [0.067s]
          [INFO] wflow-directory ....................................... SUCCESS [10.600s]
          [INFO] wflow-wfengine ........................................ SUCCESS [10.174s]
          [INFO] wflow-core ............................................ SUCCESS [27.007s]
          [INFO] wflow-consoleweb ...................................... SUCCESS [1:11.323s]
          [INFO] wflow-designer ........................................ SUCCESS [21.013s]
          [INFO] wflow-designerweb ..................................... SUCCESS [25.568s]
          [INFO] wflow-app ............................................. SUCCESS [3.495s]
          [INFO] ------------------------------------------------------------------------
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD SUCCESSFUL
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 2 minutes 52 seconds
          [INFO] Finished at: Mon May 26 14:21:06 CEST 2014[INFO] Final Memory: 54M/134M
          [INFO] ------------------------------------------------------------------------
          
  3. i have this error when im building joget from surse code

    ERROR 03 Dec 2014 00:48:46 org.springframework.test.context.TestContextManager  - Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@327be569] to prepare test instance [org.joget.directory.model.service.TestDirectoryManager@1a3b7d72]
    java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:201) at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109) at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75) at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:255) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:111) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:148) 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.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:97) 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(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'setupSessionFactory' defined in class path resource [commonsApplicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Hibernate Dialect must be explicitly set at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84) at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:42) at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:173) at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:197) ... 21 more
    Caused by: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:57) at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39) at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:426) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:128) at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2090) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2086) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1311) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) ... 37 more
    Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 9.122 sec <<< FAILURE!
    ERROR 03 Dec 2014 00:48:46 org.springframework.test.context.TestContextManager  - Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@327be569] to prepare test instance [org.joget.directory.model.service.TestDirectoryManager@1a3b7d72]

    java.lang.IllegalStateException: Failed to load ApplicationContext

    at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:201)

    at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)

    at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)

    at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:255)

    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:111)

    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:148)

    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.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:97)

    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(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)

    at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'setupSessionFactory' defined in class path resource [commonsApplicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Hibernate Dialect must be explicitly set

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

    at java.security.AccessController.doPrivileged(Native Method)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)

    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)

    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)

    at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)

    at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:42)

    at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:173)

    at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:197)

    ... 21 more

    Caused by: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set

    at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:57)

    at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39)

    at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:426)

    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:128)

    at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2090)

    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2086)

    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1311)

    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)

    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)

    at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)

    ... 37 more

    Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 9.122 sec <<< FAILURE!

    1. Hi there,

      Caused by: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set

      Please check database connectivity for the build to run test cases.

      Thanks

      1. where can i check the db connectivity 
        i had already joget run

         workflowUrl=jdbc\:mysql\://localhost\:3306/jwdb?characterEncoding\=UTF-8
        
        

        NOTICE: when i tried to build joget 3.1 build succeeded but 4.0 gave that error  

        1. Configure Datasource for Test Case

          • Navigate to your user home, e.g., C:\Users\myuser\wflow.
          • Modify app_datasource-default.properties setting correctly. Refer to Custom Database Configuration.
  4. i found the solution:

    when i got error in  downloading ojdbc6 from maven central  repository i opened the joget source in eclips using maven import plugin then i modify the 

    wflow-jdbc\pom.xml by changing the folowing 

     <dependency>
                <groupId>com.oracle</groupId>
                <artifactId>ojdbc6</artifactId>
                <version>12.1.0.2</version>
                <scope>runtime</scope>
            </dependency>

     <dependency>
    
                <groupId>com.oracle</groupId>
    
                <artifactId>ojdbc6</artifactId>
    
                <version>12.1.0.2</version>
    
                <scope>runtime</scope>
    
            </dependency>
    
    
    
    

    with the following 

     <dependency>
    
                <groupId>com.oracle</groupId>
    
                  <artifactId>ojdbc14</artifactId>
    
                <version>10.2.0.2.0</version>
    
                <scope>runtime</scope>
    
            </dependency>
    

    then i tried to install (mvn install) but i got that error Caused by: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set

    but when i tried to not open the files in eclips and compile the app (mvn install) every thing went OK