Home > database >  Help: org. Hibernate. HibernateException: the Dialect class not found
Help: org. Hibernate. HibernateException: the Dialect class not found

Time:10-08

Question:
Log4j: WARN No appenders could be found for logger (org. Hibernate. The BasicTypeRegistry).
Log4j: WARN both Please initialize the log4j system properly.
Log4j: WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Org. Hibernate. HibernateException: the Dialect class not found:
The at org. Hibernate. The dialect. Resolver. DialectFactory. ConstructDialect (DialectFactory. Java: 159)
The at org. Hibernate. The dialect. Resolver. DialectFactory. BuildDialect (DialectFactory. Java: 108)
The at org. Hibernate. CFG. SettingsFactory. BuildSettings (SettingsFactory. Java: 148)
At org. Hibernate. CFG. Configuration. BuildSettingsInternal (2863) Configuration. Java:
At org. Hibernate. CFG. Configuration. BuildSettings (2859) Configuration. Java:
At org. Hibernate. CFG. Configuration. BuildSessionFactory (1870) Configuration. Java:
The at cn. Hibernatedemo. Test. HibTest. FirstShow (HibTest. Java: 23)
At sun. Reflect. NativeMethodAccessorImpl. Invoke0 (Native Method)
At sun. Reflect. NativeMethodAccessorImpl. Invoke (NativeMethodAccessorImpl. Java: 57)
At sun. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java:
The at Java. Lang. Reflect. Method. Invoke (606) Method. The Java:
The at org. Junit. Runners. Model. FrameworkMethod $1. RunReflectiveCall (FrameworkMethod. Java: 47)
The at org. Junit. Internal. Runners. Model. ReflectiveCallable. Run (ReflectiveCallable. Java: 12)
The at org. Junit. Runners. Model. FrameworkMethod. InvokeExplosively (FrameworkMethod. Java: 44)
The at org. Junit. Internal. Runners. Statements. InvokeMethod. Evaluate (InvokeMethod. Java: 17)
The at org. Junit. Runners. ParentRunner. RunLeaf (ParentRunner. Java: 271)
The at org. Junit. Runners. BlockJUnit4ClassRunner. RunChild (BlockJUnit4ClassRunner. Java: 70)
The at org. Junit. Runners. BlockJUnit4ClassRunner. RunChild (BlockJUnit4ClassRunner. Java: 50)
The at org. Junit. Runners. ParentRunner $3. The run (ParentRunner. Java: 238)
The at org. Junit. Runners. ParentRunner $1. The schedule (ParentRunner. Java: 63)
The at org. Junit. Runners. ParentRunner. RunChildren (ParentRunner. Java: 236)
The at org. Junit. Runners. ParentRunner. Access the $000 (ParentRunner. Java: 53)
At org. Junit. Runners. ParentRunner $2. The evaluate (ParentRunner. Java: 229)
The at org. Junit. Runners. ParentRunner. Run (ParentRunner. Java: 309)
At org. Eclipse JDT. Internal. Takeup. Runner. JUnit4TestReference. Run (JUnit4TestReference. Java: 50)
At org. Eclipse JDT. Internal. Junit. Runner. TestExecution. Run (TestExecution. Java: 38)
At org. Eclipse JDT. Internal. Junit. Runner. RemoteTestRunner. RunTests (RemoteTestRunner. Java: 467)
At org. Eclipse JDT. Internal. Junit. Runner. RemoteTestRunner. RunTests (RemoteTestRunner. Java: 683)
At org. Eclipse JDT. Internal. Junit. Runner. RemoteTestRunner. Run (390) RemoteTestRunner. Java:
At org. Eclipse JDT. Internal. Junit. Runner. RemoteTestRunner. Main (197) RemoteTestRunner. Java:
Under Caused by: Java. Lang. ClassNotFoundException:
The at Java. Lang. Class. ForName0 (Native Method)
The at Java. Lang. Class.forname (191) Class. Java:
The at org. Hibernate. Util. ReflectHelper. ClassForName (ReflectHelper. Java: 192)
The at org. Hibernate. The dialect. Resolver. DialectFactory. ConstructDialect (DialectFactory. Java: 156)
. 29 more



Code: this is a hibernate. CFG. XML file code
"-//Hibernate/Hibernate Configuration DTD/3.0/EN"
"Http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd" & gt;



JDBC: oracle: thin: @ localhost: 1521: BDQN




- & gt;







Of new o heavyweight directions
  • Related