on-internet
← Community

NameNotFoundException: Name is not bound in this Context. Unable to find

Stack Overflow ·

I'm having a problem with the deploy of an application (war file) in tomcat. the application has defined a reference to the JNDI datasource, in web.xml and SpringDataJPAContext.xml (application works ok on jboss). For my part, I am defining the datasource inside tomcat, in server.xml and in a file inside conf/Catalina/localhost ([name-application].xml). Within the application I have defined... in WEB-INF/web.xml: <resource-ref> <description>JDBC Data Source</description> <res-ref-name>mydb</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> <mapped-name>java

Comments

Sign in or sign up to comment and upvote.

No comments yet.