• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trouble accessing a servlet in a jar file

 
Yan Lee
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • 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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic