• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

abt tomcat 404 error ..

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ...
 
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic