Skip to main content

[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

	Hi, the eclipselink property is


            <property name="eclipselink.session.customizer" value="org.eclipse.persistence.example.unified.integration.JPAEclipseLinkSessionCustomizer"/>
		// Change from Composite to String_Lookup

	I ran into the same Composite/String JNDI issue when deploying to JBoss 4.2.2 and required the use of a similar SessionCustomizer like the post, however deploying to OC4J 11 did not require one.  It looks like these issues may be due to the Tomcat and JBoss implementations as OC4J works fine without it.  I am going to checkout Tomcat 6 and reproduce this issue.


-----Original Message-----
From: Leon Derks [mailto:leon.derks@xxxxxxxxxx]
Sent: Thursday, April 24, 2008 2:25 AM
To: EclipseLink User Discussions
Subject: Re: [eclipselink-users] Eclipselink persistence.xml on Tomcat
6.0 error


What is the eclipselink property for the old property 
And is this an eclipselink or tomcat bug?


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: 
> 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?
> Leon
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx

eclipselink-users mailing list

Back to the top