Record an error in the Hibernate 3 learning process (unfinished)

xiaoxiao2021-03-06  40

1. Unzip the hibernate-3.0beta1.zip file 2. Copy msbase.jar, msutil.jar, mssqlserver.jar files to the Hibernater-3.0 / lib directory 3. Edit ETC / Hibernate.properties (not in src directory). As follows: 4. Run Hibernater-3.0 / Builder EG An error is as follows: org.hibernate.hibernateException: could not instantiate cacheprovider: net.sf.hibernate.cache.hashtablecache.Provider

After a loss: hibernate2.jar and hibernate3.jar package structure completely different: net.sf.hibernate.diaalect.sqlserverDiaLect in Hibernate2 becomes org.hibernate.diaalect.sqlserverDiaAlaforct.sqlserverDiaAlaforct.sqlserverDiaAlaforct.sqlserverDiaAlafor

Reporting: Class Not Found: Org.hsqldb.jdbcdriver found in the build.xml file: Copy the hsqldb.jar file to Hibernater Under the -3.0 / lib directory.

Write hibernate.diaalect org.hibernate.diaalect.sqlserverdialectualibernate.connection.parname abchibernate.connection.Password ABC in hibernate.properties file

hibernate.connection.driver_class com.microsoft.jdbc.sqlserver.SQLServerDriverhibernate.connection.url jdbc: microsoft: sqlserver: //127.0.0.1: 1433; DatabaseName = spitrade; SelectMethod = cursor

Remove the Hypersonics QL connection method, it seems to be successful.

How to build a database? Use the main method to establish failed, Exception in Thread "Main" java.lang.noclassdeffounderror: org / hibernate / session

Java Org.Hibernate.Auction.main lacks classpath cglib.jar Hibernate3.jar Ehcache.jar Commons-Collections-2.1.1.jar

SET CLASSPATH After reporting: Not binding factory to jndi, no jndi name configured

http://www.hibernate.org/114.html ----> Using Hibernate with Tomcat and JNDi

Hibernate.Connection.DataSource JDBC / SOOS failed to modify the hibernate.cfg.xml file and increase JTA.jar

Hibernate.properties NOT Found is successful in the place where the hibernate.properties file is placed in ClassPath.

转载请注明原文地址:https://www.9cbs.com/read-75167.html

New Post(0)