Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

I spent 3 day for this problem, but i can not solve it.Please, help me!

I refer Building from Source. And i build source step by step, but at build project step, it occur a error (i copy it from TEST-org.joget.directory.model.TestDirectoryManagerProxyImpl.xml):

Wiki Markup
<testcase time="0" classname="org.joget.directory.model.TestDirectoryManagerProxyImpl" name="test">
&nbsp;&nbsp;&nbsp; <error message="Failed to load ApplicationContext" type="java.lang.IllegalStateException">java.lang.IllegalStateException: Failed to load ApplicationContext
&nbsp;&nbsp; &nbsp;at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:203)
&nbsp;&nbsp; &nbsp;at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
&nbsp;&nbsp; &nbsp;at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
&nbsp;&nbsp; &nbsp;at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:255)
&nbsp;&nbsp; &nbsp;at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:93)
&nbsp;&nbsp; &nbsp;at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:130)
&nbsp;&nbsp; &nbsp;at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
&nbsp;&nbsp; &nbsp;at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
&nbsp;&nbsp; &nbsp;at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
&nbsp;&nbsp; &nbsp;at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
&nbsp;&nbsp; &nbsp;at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
&nbsp;&nbsp; &nbsp;at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
&nbsp;&nbsp; &nbsp;at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
&nbsp;&nbsp; &nbsp;at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
&nbsp;&nbsp; &nbsp;at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
&nbsp;&nbsp; &nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&nbsp;&nbsp; &nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&nbsp;&nbsp; &nbsp;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&nbsp;&nbsp; &nbsp;at java.lang.reflect.Method.invoke(Method.java:597)
&nbsp;&nbsp; &nbsp;at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
&nbsp;&nbsp; &nbsp;at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name &apos;setupSessionFactory&apos;'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
&nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)
&nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)
&nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
&nbsp;&nbsp; &nbsp;at java.security.AccessController.doPrivileged(Native Method)
&nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
&nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
&nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
&nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
&nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
&nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
&nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
&nbsp;&nbsp; &nbsp;at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
&nbsp;&nbsp; &nbsp;at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
&nbsp;&nbsp; &nbsp;at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:96)
&nbsp;&nbsp; &nbsp;at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:44)
&nbsp;&nbsp; &nbsp;at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:173)
&nbsp;&nbsp; &nbsp;at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:199)
&nbsp;&nbsp; &nbsp;... 20 more
Caused by: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
&nbsp;&nbsp; &nbsp;at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:57)
&nbsp;&nbsp; &nbsp;at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39)
&nbsp;&nbsp; &nbsp;at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:426)
&nbsp;&nbsp; &nbsp;at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:128)
&nbsp;&nbsp; &nbsp;at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)
&nbsp;&nbsp; &nbsp;at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)
&nbsp;&nbsp; &nbsp;at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
&nbsp;&nbsp; &nbsp;at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)
&nbsp;&nbsp; &nbsp;at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
&nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)
&nbsp;&nbsp; &nbsp;at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)
&nbsp;&nbsp; &nbsp;... 36 more
</error>