I hope this is a trivial problem that someone can help me with...
I have been running a web app, built using Netbeans with Tomcat for
months now. The system uses Hibernate for database access.
This week, I erased and rebuilt my desktop system - moved it from Fedora
8 to Fedora 10. I re-installed Netbeans and Tomcat.
Netbeans rebuilds my program without any problem, but when I try to
connect to the database (my login screen comes up fine)
I get this:
*Exception Handler *
*Description: * An unhandled exception occurred during the execution of
the web application. Please review the following stack trace for more
information regarding the error.
*Exception Details: * java.lang.NoClassDefFoundError
Could not initialize class org.hibernate.ejb.Ejb3Configuration
*Possible Source of Error: *
Class Name: /org.hibernate.ejb.HibernatePersistence/
File Name: /HibernatePersistence.java/
Method Name: /createEntityManagerFactory/
Line Number: /124/
|Source not available. Information regarding the location of the
exception can be identified using the exception stack trace below.
|
*Stack Trace: *
|org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:124)
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
com.verisign.ncat.db.Ctl_User.getEntityManager(Ctl_User.java:36)
com.verisign.ncat.db.Ctl_User.validateUser(Ctl_User.java:46)
com.verisign.ncat.dm.User.validate(User.java:256)
com.verisign.ncat.jsp.Page1.b_Login_action(Page1.java:185)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)|
and it goes on for several pages. Netbeans did not complain about
missing libraries or missing classes. I have just downloaded the latest
version of Hibernate and updated my libraries.
In /usr/local/Tomcat, I find this:
[nco...@nbc-penguin Tomcat]$ find . |grep hibernate
./webapps/NCAT/WEB-INF/lib/hibernate-core.jar
./webapps/NCAT/WEB-INF/lib/hibernate-annotations.jar
./webapps/NCAT/WEB-INF/lib/hibernate-commons-annotations.jar
./webapps/NCAT/WEB-INF/lib/hibernate-entitymanager.jar
So the entity-manager is there as far as I can tell.
Can someone tell me what I need to do (or look for) to fix this problem??
Much obliged,
nbc
NAME: Neil B. Cohen (Verisign Inc.)
PHONE: 703-948-4471
DOMAIN: [email protected]
*************************************************************
* Murphy's Philosophy: Smile - tomorrow will be worse...
*
* O'Tooles Commentary: Murphy was an optimist!
*************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]