Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

WEB-INF - Jar of Jars

 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mine is a web application. I have created a Jar containing some custom code and a few 3rd party jars. I have copied the custom jar to WEB-INF/lib folder. The 3rd party jars inside my jar are not visible to the application during deployment/runtime? I have no idea how to make them visible. Please help.

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65545
110
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any jars in WEB-INF/lib at application startup will be part of the application classpath.
 
Pete Nelson
Ranch Hand
Posts: 147
Debian Eclipse IDE Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't bundle the third-party jars inside your custom jar file - your servlet container will not be able to find them there. Simply put those third party jar files in your WEB-INF/lib along side your jar file of custom code.
 
Why fit in when you were born to stand out? - Seuss. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!