File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
    Bookmark Topic Watch Topic
  • New Topic

Run Servlet in Tomcat

 
Priya Singh
Ranch Hand
Posts: 33
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic