jndi database connection with jpa and eclipselink

前端 未结 5 2009
误落风尘
误落风尘 2021-02-15 11:01

I try to setup a database connection in java with JNDI in combination with eclipseLink/JPA on Tomcat 5.5. I already configured the JNDI resource in web.xml and context.xml.

5条回答
  •  北恋
    北恋 (楼主)
    2021-02-15 11:56

    I think you need to code a workaround for the javax.naming.NamingException: This context must be accessed throught a java: URL exception as detailed at http://wiki.eclipse.org/EclipseLink/Examples/JPA/Tomcat_Web_Tutorial#Session_Customizer

    Also see this link which debugs through the problem

    http://forums.java.net/jive/message.jspa?messageID=158622

提交回复
热议问题