• 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

Tomcat not seeing servlet

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Using Tomcat 5.0.28 standalone on windows XP with JVM 1.4, I get this error even though I have mapped my servlet in the web.xml file of the web app:


HTTP Status 404 - /loginResponse.do

--------------------------------------------------------------------------------

type Status report

message /loginResponse.do

description The requested resource (/loginResponse.do) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/5.0.28


I've placed my webapp folder in the webapps directory and all the jsp pages run fine as do my POJO's for business logic, any ideas why the servlet code could be causing problems?

The servlet mappings:



It's my first time using Tomcat, been a Resin user for years ...

Thanks,

Stef
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the URL you are using contains "/servlet/" it may be an "invoker" servlet problem. See this FAQ here at the ranch.
Bill
 
Stef Mischook
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Nah, I'm actually posting to the url-pattern I defined in the web-apps web.xml file:



Could the mapping problem have to do with setting the context path for the application?

In ${catalina.home}/conf/Catalina/localhost I've created an .xml file named after my web app that contains this code:

 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
contextPath must be present, otherwise Tomcat will assume you are accessing the default application for that host (the one with no context path).

your path should be action="/myWebApp/loginResponse.do"
 
Stef Mischook
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I reinstalled tomcat and things are working now.

Thanks ...
[ November 22, 2004: Message edited by: Stef Mischook ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic