• 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

Trouble accessing a servlet in a jar file

 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have written utility that can be used in various applications (utility.jar). It is servlet driven(like struts).

I also wrote a web app to ensure the utility.jar can be practically used.
The utility.jar is in the WEB-INF/lib of the web-app. The web.xml has a <servlet> and <servlet-mapping> that points to the servlet in utility.jar.

However, the web app is not able to locate the servlet in utility.jar. I have checked to ensure that the servlet mapping is ok by pointing the <servlet-mapping> towards another servlet in the web-app and it seems to locate it.

For some reason, it is not able to locate the servlet in the utility.jar. Is there something specific that I need to do when packaging my utility.jar so that the servelt class inside it can be located?

Thanks for the help.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is your servlet class packaged?
Are you listing the fully qualified (package/class) in the servlet-class node of you web.xml?
 
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic