• 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

servlet error

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have created an app in tomcat webapps directly. it's working with *.jsp. but it seems i can't call a any of my servlet.
http://127.0.0.1:8080/catalog/servlet/ShowImage
it returns a "HTTP Status 404"
description The requested resource (/catalog/servlet/ShowImage) is not available.
is there still any special configuration that i should make?
thanks
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is there a WEB-INF file in that DIR
 
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
That /servlet/ usage usually requires that the "invoker" servlet be turned on for that application. See the tomcat-home/conf/web.xml file - search for "invoker"
Bill
 
Jay Richards
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks.
i have to put invoker setting in the web.xml of my app.
just wondering why resin does not require it.
thanks again for the help...
 
William Brogden
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
That gets us into the history of Servlets - the first API, servers and books made extensive use of the /servlet/ convention.
However, as the API evolved, Sun wanted to make servlet/JSP applications (and J2EE applications) very standardized, easily "plugged in" to servers, and transparent (not obviously servlets). Not using the /servlet/ convention helps with all three.
Starting with Tomcat 4 (as I recall) the invoker was no longer on by default in order to help this transition.
Bil
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic