We are going to use WebSphere 8.0 app server in our development.
Our web app uses Amazon aws java sdk, that in turns uses Apache http-client 4.1.
But WebSphere also has http-client classes in its libraries that seems clash with http-client located in our web-app.
I've found next list of http-client classes distributed with WebSphere:
\WebSphere\AppServer\plugins\com.ibm.ws.prereq.jaxrs.jar (http-client 4.0.1)
\WebSphere\AppServer\runtimes\com.ibm.jaxrs.thinclient_8.0.0.jar
So, my question is: How to load classes located in my app first instead of provided by WebSphere app container?
From Admin Console go to:
Applications > Websphere Enterprise Applications > YourApplication > Manage Modules > YourModule
and change the "Class loader order" to parent last.
Then restart the application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With