Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache/Tomcat not running servlet

 
Raj Puri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can run my application fine on Tomcat but once I try to run against Apache that has been configured with Tomcat(5.x) I can run JSP but call to servlet says page not found, also images are missing. Seems Apache can not see any other location except webapps/myapp i.e. where my jsp's are hosted. Images are in webapps/myapp/images and servlets in webapps/myapp/WEB-INF/classes/servlets etc per tomcat standards. Even though these directores are loaded in conf of apache still seems apache can not process them. Application works fine on Tomcat however.

Any hints?
 
Harish Kashyap
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
verify you have made all the necessary changes in httpd.conf of apache.

providing the snippet of httpd.conf would be helpful in actually identifying the problem
 
Md Fizal
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In ${catalina.home}/conf/web.xml check if you have InvokerServlet is commented out
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic