• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

abt tomcat 404 error ..  RSS feed

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
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 ...
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.

[ October 01, 2004: Message edited by: Joyce Lee ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!