[jboss-user] [JNDI/Naming/Network] - Re: TopLink on JBoss: Cannot create toplink session
mfobrien
do-not-reply at jboss.com
Mon Feb 23 13:08:51 EST 2009
Hi,
Verify that the connector on the session is set to JNDIConnector.STRING_LOOKUP and not COMPOSITE_NAME_LOOKUP which would be the default that worked previosly with OC4J.
you may be experiencing a common configuration issue with application servers that are based on the Catalina (Tomcat) servlet container where the lookupType must be STRING_LOOKUP.
Hibernate may default to STRING_LOOKUP as the lookupType because it normally runs in JBoss which is Catalina based - so it will work out of the box on JBoss.
See the following EclipseLink on JBoss tutorial where we describe configuring the eclipselink.session.customizer so that the lookupType on ideally both JTA and non-JTA datasource connectors are changed from " COMPOSITE_NAME_LOOKUP" to "STRING_LOOKUP".
http://wiki.eclipse.org/EclipseLink/Examples/JPA/JBoss_Web_Tutorial#Session_Customizer
The following page describes the use of JNDIConnector.STRING_LOOKUP in general for all Catalina based servers.
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Tomcat_Web_Tutorial#Session_Customizer
Also verify that the *-ds.xml config files are setup using the following section as a guide.
http://wiki.eclipse.org/EclipseLink/Examples/JPA/JBoss_Web_Tutorial#JNDI_JTA.2Fnon-JTA_Server_DataSource_Setup
thank you
/michael
www.eclipselink.org
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4212372#4212372
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212372
More information about the jboss-user
mailing list