wood burning stoves*
The moose likes Tomcat and the fly likes Tomcat Mapping to Libraries 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 » Products » Tomcat
Bookmark "Tomcat Mapping to Libraries" Watch "Tomcat Mapping to Libraries" New topic

Tomcat Mapping to Libraries

Ranganath .S.Junpal
Ranch Hand

Joined: Jan 16, 2005
Posts: 52
Hello everyone,

I have done a project using servlets, jsp, Xml. I have an Ant to deploy in the Tomcat/webapps. The Problem is that if i deploy the .war file created by the ant in different system. Its not able to find my Libraries.. I have different Libraries for getters/setters, JDBC connect establishment and etc. My Jsp/servlet files are not able to find or map itself in to these packages.. it says "com.blah.blah" is invalid.. where in com.blah.blah is my package..
I have set all the required path, classpath , and i have added the required .jar files etc. I am using Eclipse 3.1.2 with lomboz plugin. I am using tomcat 4.1.
When i copy the whole tomcat content to the targeted machine. My project works fine.. But still i wanna know how it is getting mapped..
I think we need to map this user defined library through the web.xml file . But I dont know how to go about it..
If any one is aware of this please help me..
Thank you
Mishra Anshu
Ranch Hand

Joined: Sep 16, 2003
Posts: 224
Add your jars in the WEB-INF/lib directory, if you have not .

"Ignorance is bliss"
Ranganath .S.Junpal
Ranch Hand

Joined: Jan 16, 2005
Posts: 52
that done.. I have added all my .jar filed in web-inf/lib still it doesnt work..

Thank you
[ March 31, 2006: Message edited by: Ranganath .S.Junpal ]
wood burning stoves
subject: Tomcat Mapping to Libraries
Similar Threads
Dynamnic web project using Ant
Configuring a MySQL DataSource in Tomcat5
Beginner to Liferay 5.2.3
Struts Application Deployment
Problem with Deployment in Tomcat 5.0