Forums Register Login

where to add jar files

+Pie Number of slices to send: Send
I did a small prject using jsp & servlet.
i added servlet-api.jar and mysql-connector-java-3.0.16-ga-bin.jar to jar files in my project.
but these jar files located in hard drive.
when i am going to make a war file and deployee it it gives some error?
i think it is because to this thing?
how to resolve this?
+Pie Number of slices to send: Send
 

Samanthi perera wrote:i added servlet-api.jar ... to jar files in my project.


Remove it. The container provides this jar and adding it to your application will create no end of problems!
+Pie Number of slices to send: Send
The WEB-INF/lib directory is where your application's libraries should be deployed. As Bear said, the servlet jar must be removed.
+Pie Number of slices to send: Send
Also, the JSP jar, if you also put that there.
When evil is afoot and you don't have any arms you gotta be hip and do the legwork, but always kick some ... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2105 times.
Similar Threads
What is the classpath for Tomcat 5.5?
jar files
IllegalAccessError in JstlCoreTLV
Getting an exception in Hibernate as I try to integrate Struts2 and Hibernate3
How to include jars in command line classpath?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 01:47:42.