[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] Eclipselink persistence.xml on Tomcat 6.0 error
|
Hello
What is the eclipselink property for the old property
name="toplink.session.customizer"?
And is this an eclipselink or tomcat bug?
Leon
Leon Derks wrote:
Hello
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:
http://forums.java.net/jive/message.jspa?messageID=158622
There was also found a solution by adding <property
name="toplink.session.customizer"
value="com.company.application.JPAToplinkSessionCustomizationUtil"/>
to the persistence.xml
But is this with eclipselink still necessary?
Leon
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users