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

xiaoxiao2021-03-06  39

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 given as follows: org.hibernate.HibernateException: could not instantiate CacheProvider: net.sf.hibernate.cache.HashtableCache.Provider disadvantage: hibernate2.jar hibernate3.jar and packet structure is completely different, for example: hibernate2 Net.sf.Hibernate.Diaalect.sqlserverDiaLect in Hibernater3 into org.hibernate.dialect.sqlserverDiaLect: Class Not Found: Org.hsqldb.jdbcdriver found in the build.xml file: Copy the hsqldb.jar file to the Hibernater-3.0 / Lib directory. Write hibernate.dialect org.hibernate.dialect.SQLServerDialecthibernate.connection.username spitradehibernate.connection.password in hibernate.properties file spitechnhm hibernate.connection.driver_class com.microsoft.jdbc.sqlserver.SQLServerDriverhibernate.connection.url jdbc: microsoft: sqlserver : //218.244.111.84: 1433; DatabaseName = Spitrade; selectMethod = Cursor Remove HyperSonics QL connection method, it seems to be successful. How to build a database? Main method used to build failed, Exception in thread "main" java.lang.NoClassDefFoundError: org / hibernate / Session java org.hibernate.auction.Main lack classpath cglib.jar hibernate3.jar ehcache.jar commons-collections-2.1.1 . Jar set classpath, report, NOT BINDING FACTORY TO JNDI, NO JNDI Name Configure Http://www.hibernate.org/114.html ----> Using Hibernate with Tomcat and JNDi Hibernate.Connection.DataSource JDBC / SOOS Failure may need to modify the hibernate.cfg.xml file and add jta.jar hibernate.properties Not found to place the hibernate.properties file into the place to be found in ClassPath.

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

New Post(0)