Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Eclipselink persistence.xml on Tomcat 6.0 error


Today I tried to run my application on Tomcat 6.0

I replaced the connection properties in persistence.xml into <non-jta-data-source>java:comp/env/jdbc/appDS</non-jta-data-source>

When I use <non-jta-data-source>jdbc/appDS</non-jta-data-source> I get an "javax.naming.NameNotFoundException: Name jdbc is not bound in this Context"

When I use <non-jta-data-source>java:comp/env/jdbc/appDS</non-jta-data-source> I get an "javax.naming.NamingException: This context must be accessed throught a java: URL"

This is the same problem as described in:

There was also found a solution by adding <property name="toplink.session.customizer" value=""/> to the persistence.xml

But is this with eclipselink still necessary?


Back to the top