Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
JSP - A mailing list about Java Server Pages specification and reference
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Error moving JPA app from Tomcat 5.5.12 to Tomcat 5.0.30

Error moving JPA app from Tomcat 5.5.12 to Tomcat 5.0.30

2006-11-14       - By Ren? Schade

 Back
I have a wellworking Tomcat JPA application running on Tomcat 5.5.12.



As far as I know, it should be possible to deploy it on 5.0.30 as well. But
when running a Servlet I get the error:



javax.persistence.PersistenceException: java.io.FileNotFoundException Source code of java.io.FileNotFoundException: JAR
entry META-INF/persistence.xml not found in /[path removed]/ROOT/WEB-INF/lib
/entities.jar
       org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java
:247)
       org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory
(HibernatePersistence.java:120)
       javax.persistence.Persistence.createEntityManagerFactory(Persistence
.java:51)
       javax.persistence.Persistence.createEntityManagerFactory(Persistence
.java:33)
       com.hypergenic.weboverblik.servlets.WeboverblikServlet.<init>(Unknown
Source)
       com.hypergenic.weboverblik.servlets.Admin.<init>(Unknown Source)
       sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
       sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
       java.lang.reflect.Constructor Source code of java.lang.reflect.Constructor(Constructor.java:494)

           java.lang.Class Source code of java.lang.Class(Class.java:350



persistence.xml IS located in the entities.jar-file.

What could be wrong?

Regards,
Ren?


©2008 junlu.com - Jax Systems, LLC, U.S.A.