• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

dynamic WEB-INF/lib

 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

There are two applications deployed on the Websphere 5.1.1: Application1.ear and Application2.ear.
Application2.ear has a web application Web.war which uses a servlet filter whose class is in a jar which is in Application1.ear.

How to make the jar from Application1.ear visible to the Web Container for the Web.war. Currently the jar is simply copied from the Application1.ear to the WEB-INF/lib of the web application from Application2.ear.

This is problematic as any update of the jar file requires updating the Application 2.ear. Is there any way to simply "link", add to the web containter classpath's selected jar(s) from other applications?

Thanks,
Cristian

PS: Putting the jar in the server's classpath or in ws.ext.dirs will not work, as the jar contains references to classes from other jars, and so on. And this will make the jars visible for all the othere applications but I want to make the jar visible just for Application2.ear . Gaaaaaa...
 
All that thinking. Doesn't it hurt? What do you think about this tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic