This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes accessing jar files accross servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "accessing jar files accross servlets" Watch "accessing jar files accross servlets" New topic
Author

accessing jar files accross servlets

shobhit garg
Ranch Hand

Joined: Mar 07, 2004
Posts: 42
Hi ,

I have two servlets accessing a common jar file.
now do we need to place these jar files in the
lib of each of the respective servlets or can we place it
in a common location .
Each of the servlet is a part of seperate apps.

Also I would like to know if the java servlet spec says something in this regard.

Regards,
Shobhit
Rao Raghu
Ranch Hand

Joined: Jan 05, 2007
Posts: 100
Its simple. Try keeping it in a common lib for both i.e common/lib folder of Tomcat. If it doesn't work, you can keep a copy in the WEB-INF/lib of each application.



RAGHU<br /> <br />"When the going gets tough, the tough get going"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: accessing jar files accross servlets
 
Similar Threads
Common jar files to b eplaced in a .Ear Format
IllegalAccessError in JstlCoreTLV
How to include jars in command line classpath?
javax.Servlet.. Oh where, oh wher can it be?
Appropriate classpath settings