I want to deploy Navalplan 1.1.3 on Gentoo with Tomcat-7. Because i'm not experienced with Tomcat, i can't figure out why my instalation doesn't work. I guess application or Tomcat coudn't find database definition… Part of log:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL : Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
I have /etc/tomcat-7/Catalina/localhost/navalplan_1.1.3.xml with content like in install guide. What's wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Also, make sure your context is named after your application (in my example, /etc/tomcat7/Catalina/localhost/navalplanner-webapp.xml matches_ /var/lib/tomcat7/webapps/navalplanner-webapp.war_)
Finally, please check JDBC driver is also properly linked in _/usr/share/tomcat7/lib/ _ as the installation manual indicates.
Hope that helps.
Nacho
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello guys,
I want to deploy Navalplan 1.1.3 on Gentoo with Tomcat-7. Because i'm not experienced with Tomcat, i can't figure out why my instalation doesn't work. I guess application or Tomcat coudn't find database definition… Part of log:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL : Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
I have /etc/tomcat-7/Catalina/localhost/navalplan_1.1.3.xml with content like in install guide. What's wrong?
Hello there,
It's very likely your context is misconfigured. Try this:
Also, make sure your context is named after your application (in my example, /etc/tomcat7/Catalina/localhost/navalplanner-webapp.xml matches_ /var/lib/tomcat7/webapps/navalplanner-webapp.war_)
Finally, please check JDBC driver is also properly linked in _/usr/share/tomcat7/lib/ _ as the installation manual indicates.
Hope that helps.
Nacho
Hello Nacho,
Thanks for your suggestions, but the problem was in tomcat-dbcp.jar - there was no such thing after installation from sources. Now it forks fine. :)
Best Regards,
Av