Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Jar Files in common/lib

843841Apr 6 2004 — edited Feb 4 2005
I've got a jar file in my tomcats common/lib that contains common functions used by numerous webapps in different contexts. This arrangements works perfectly.

However, occasionally, I want to deploy customized versions of the classes in my common/lib jar, with web app specific ones, however....

Believing that deploying jar files with the same classes, in the same packages, into both the webapps folder and the lib folder would cause problems, I deliberately changed the package names of the files going to the webapps folder.. Unfortunately, because my code does not reference the classes by full package name, when I deploy the jar file into the web apps lib folder, its still picking up the classes with the same names, but different packages from the common/lib folder.

The only way I have been able to get around this is by renaming the actual class files too.
Am I doing something wrong ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 4 2005
Added on Apr 6 2004
6 comments
328 views