This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

where to add jar files  RSS feed

 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The WEB-INF/lib directory is where your application's libraries should be deployed. As Bear said, the servlet jar must be removed.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, the JSP jar, if you also put that there.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!