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

Run Servlet in Tomcat

 
Priya Singh
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
I am setting up environment to test HelloServlet.java.
I created classes dir in root\web-inf to place my .java n .class file but still i m gettin 404 error (file not found) in IE . i know this is a common prob but right now i m not gettin it thru .. i checked with web.xml also .. please suggest something asap
thanks
 
Gowrishankar Mudaliar
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Report post to moderator
Ideally it should work. If not enter the classes folder to the classpath (in catalina.sh/catalina.bat)and restart tomcat. That should do it.
 
Priya Singh
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Report post to moderator
thanks for the prompt reply,
but where should i add the classes in catalina.bat ?
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
please continue this on the cross-post in Apache/Tomcat.
http://www.coderanch.com/t/81710/Tomcat/running-servlets-tomcat
 
    Bookmark Topic Watch Topic
  • New Topic