Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Anyone using EL with newer Tomcat Servlet Environment and JNDI datasource?

Hello,
does anyone use current EclipseLink version with a up-to-date Tomcat Servlet Container and JNDI non-jta-datasource?
I try to get this working for some hours now...
- EclipseLink 2.5.2 (also tried 2.5.0)
- Tomcat 8.0.14 (but also 7.0.40 tried)

The Tomcat configuration is working. I can lookup the datasource in my application code. But EclipseLink throws a NullPointerException in its JNDIConnector.connect(...). I've reported this as https://bugs.eclipse.org/bugs/show_bug.cgi?id=447264

I've also tried https://wiki.eclipse.org/EclipseLink/Examples/JPA/Tomcat_Web_Tutorial#Session_Customizer.
Result: Same NPE.

I'm using now a Jetty Container 9.2.3 with EclipseLink 2.5.2 and the same WAR just works.

Is there any trick to get this working in Tomcat?

Thanks
Markus


Back to the top