java - How to configure classloader for ear in websphere 6.1 (specifically wsdl4j) - Stack Overflow: "You have three simple steps to accomplish this
Place the jar file in the ear, we typically create a lib directory, but that is not necessary.
Update the manifest for the war to include this jar file.
Set the classloading policy for your ear to PARENT_LAST. This is required to load your local (to the ear) classes before those loaded by the server.
Edit: As an alternative, since you are only using the EAR to wrap the WAR and not actually sharing the jar file.
Put the jar in the lib directory of the WAR.
Set the classloading policy for your ear to PARENT_LAST. This is required to load your local (to the ear) classes before those loaded by the server. I do this via RAD by editing the application.xml file. It is IBM specific configuration, so if you are not using RAD you will have to figure out what files to change manually.
This should leave you with a consistent war between app servers."
'via Blog this'
No comments:
Post a Comment