Java App Servers
--
Questions
--
Followers
Top Experts
I am stuck here so someone might really help me.
I have an .ear file which has the following
(a) .war file.
(b) .jar file. (Project Utility Jar's)
(c) .jar files (Utility Jar's )
I have more than one projects so we have to have many .ear files.
Now here is the problem.
With each .ear we keep all the Utility Jar files under the .ear eg. commons-beanutil.jar,commo
Now the same .jar are replaced across all .ear file since they are contained in the .ear file.
Thus if we upgrade a version it is a headache since other projects want to get the newer version. - and the newer version is only local to this .ear file.
It is getting ugly since the applications (.ears) are increasing ...
If anyone can figure out a way where we can have a common repository all the Utitly Jar files which can used across all the .ear files it will be great ....
Thanx a lot,
RK
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Better, and more standard approach:
For WAS 4.x, pub your jars in <appserver home>/lib/app directory. Â Do the same in your WSAD environment. Â The path is a little different: Â <WSAD home>plugins\com.ibm.etool
Then in your web and EJB projects, right click the project, do "java build path", then on the "libraries" tab, click "add variable". Â There will be a variable like WAS_PLUGINDIR (depends on version) ... pick that and click extend to add /lib/app/jarname.jar to the path.
You don't have to change the runtime classpath cuz it's automatically picked up.
For WAS 5.x and 6.x, you have to add a shared library on the server. Â The /lib/app is no longer supported there. Â Go to AdminConsole, expand "Environment" node, then click on "shared libraries". Â Point to a path for your jars. Â Actually it can be any path, but since it's a shared library it can be pointed to from any of your apps AND you can change the location of the jars just by changing the ONE shared library entry. Â In WTE (in WSAD), the easiest way to do the same thing is open your server config, check "enable admin console" on the second tab, save and restart your server, then right click on your server node and choose "run admin console". Â This will give you the exact same console as used for the full WAS. Â Do everything the same way.
Finally, for 5.x and 6.x, in you WSAD project follow the same instructions as for WSAD 4 above.
HTH!
I mean this sounds so much more hectic ...






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Java App Servers
--
Questions
--
Followers
Top Experts
Java application servers that support the Java EE platform and features include JOnAS from Object Web, WildFly (formerly JBoss AS) from JBoss, Geronimo from Apache, TomEE from Apache, Resin Java Application Server from Caucho Technology, Blazix from Desiderata Software, Enhydra Server from Enhydra.org, and GlassFish from Oracle. Commercial Java app servers include WebLogic by Oracle, WebSphere from IBM and the open source JBoss Enterprise Application Platform (JBoss EAP) by Red Hat.