Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

abt tomcat 404 error ..

 
Akshatha Nayak
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys ,

i have already installed tomcat 5
i know its installed properly ..coz i'm getting tomcat main page for
http://localhost:8080/
but if i try to deploy my servlet( under weapps directory) .its giving 404 error ..
what shud i do ?
i went thr' the configuring tomcat page in coreservlet.com .. according to that site i changed ../conf/servlet.xml & also conf/web.xml.. & then installed tomcat ..
but still i'm not able to figure out what the problem is ? i still cant deploy my servlet ..
pls guide me .. tell me what i'm doing wrong here ...
 
Joyce Lee
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Akshatha,

I encountered this 404 problem while installing tomcat 5.0.28. I realized that I didn't uncomment <servlet> and <servlet-mapping> for the invoker in conf/web.xml.

Basically, this is what I've done:
----------------------------------
1) SET CATALINA_HOME=c:\tomcat-5.0.28
2) Set the CLASSPATH=c:\tomcat-5.0.28\common\lib\servlet-api.jar
3) Set PATH=c:\tomcat-5.0.28\bin
4) Modify conf/server.xml by adding <DefaultContext reloadable="true" />
5) Modify conf/web.xml by uncommenting <server> and <server-mapping> for invoker
6) Reboot the system or manually run the autoexec.bat
7) Try out this: http://localhost:8080/servlets-examples/

You can refer to step 4 and 5 here and here.

Joyce
[ October 01, 2004: Message edited by: Joyce Lee ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic