I have a webapp project (in J2EE) that uses Spring and maven. Usually I run this project in my Eclipse tomcat (for debugging purposes). Now I wanna run this in Heroku and I follow the tutorial in https://devcenter.heroku.com/articles/java-webapp-runner
But when I run the command java -jar target/dependency/webapp-runner.jar target/*.war the following error is giving me:
javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
I have in my project the following files in webapp/WEB-INF: application-context.xml, servlet.xml and web.xml. The jndi configuration in application-context is:
<jee:jndi-lookup id="dataSource" jndi-name="java:comp/env/jdbc/standard"/>
How can I fix this error
org.jnp.interfaces.NamingContextFactoryclass? Can you put that on the classpath? - codefingerorg.jnp.interfaces.NamingContextFactoryclass? - codefinger