I am deploying my EAR on WAS 6 having 3 modules, in all of those 3 modules there are many jar files it makes my EAR heavy, to avoid that i want to use Shared Library wizard of Websphere. Please provide me link or tell me what changes i have to make in my code or resource or any .xml files.
I am using below link to configure my JARs in Websphere Websphere Shared Library link 1
Link 2 Link 3
Thanks in advance
This is how shared libray is referenced.
Logon to the Websphere Application Server console.
- Go to Environment -> Shared Libraries
- Create your own Shared Library. Add the classpath pointing to your JAR files.
- Apply and save this configuration.
- Now, Go to Servers -> Application Servers -> Select the server-> Java and Process Management -> ClassLoader.
- Click on that class loader.
- Click on the Shared Library References
- Click on Add.
- Add your shared library.
- Save and restart Websphere Servers.
Thanks all for HELP.. Finally i found solution.
- First remove all .jar files from your EAR even from different
modules.
- Save all .jar files in some location.
- Go to WAS admin console > Environment > Shared Library and
give a suitable name and mention classpath of all the required jar
files. eg C:/libs/ojdbc14.jar. Restart WAS.
- Then deploy your EAR on WAS but don't start it.
- Go to Admin console > Application lists > select your application > Shared Library Reference, there you will see all the modules of your EAR. Select Checkbox next to it and Click Reference Library.
- Here you will see all the Shared library you saved earlier, add them to all modules.
- Now start your application.