Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic