Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Web Application Server Lib folder?

 
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Under tomcat , jetty ,weblogic ,...etc
You put your jar files in the lib directory under WEB-INF .
But I am wondering if I create a folder under lib and add jar files to it will it process those jar files to as if they in the top lib folder.

I am trying to seperate the jar files out so I know which ones to update more easily but when I create a subdirectory under lib and start the server I get.

These error's

As you can see the classes/jar's need to be exactly in the lib folder not under it!



What I want to know is how to seperate the birt jar files from the other jar files I have?
 
Marshal
Posts: 25818
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Sam Doder wrote:I am trying to seperate the jar files out so I know which ones to update more easily...


Well, as you already know (by experiment) is that you have to put all your jar files in the WEB-INF/lib directory. I'm not sure what you mean by "update more easily" but couldn't you just write the names of those jar files on a piece of paper and tack it to your bulletin board?
 
Sam Doder
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes , But it is not easy to constantly write down every jar need to go their when people are constantly modifying and updating their jar files.

I am working at a company that finds it really hard to keep track of what version of a jar file it needs. Some times the applications won't run correctly with out the correct jar file version.
Yet other applications won't run with older version of jar files.

I just want an easy way to keep track of what the minimal jar files you need.

What I thought is a sub folder under the WEB-INF/lib file would load the same as just being in the WEB-INF/lib top level folder. That way I could seperate out the different jar files into sub-folders to keep track of the versions ,...etc etc

My be it works for only some web application servers. Wondering if their is any other folders I could create under WEB-INF/ to work the same as lib folder.

 
Bartender
Posts: 9615
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you use source control (if you don't you should!)? For the projects I manage, I check in the entire build environment, including the third-party dependencies in the WEB-INF/lib directory. That way, when one updates their sandbox or the production server, they've got the correct version of the code and all the dependencies.
 
You can't expect to wield supreme executive power just because
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic