I have an ear deployed to WebSphere Application Server Community Edition which uses spring to load different interfaces. For production all those classes are loaded inside the ear. I'm trying to override those classes with another class in a jar outside the EAR.
I placed my jar in /var/shared/lib and have a deployment dependency which I thought would include those folder's into the classpath:
<sys:dependencies>
<sys:dependency>
<sys:groupId>org.apache.geronimo.configs</sys:groupId>
<sys:artifactId>sharedlib</sys:artifactId>
</sys:dependency>
</sys:dependencies>
What am I missing? The spring results in a NoClassDef stating the class cannot be found.
Websphere has a shared library feature. Add your jar in shared library and then add that library in your application usin websphere admin console.
To add
Use
shared library
for this task. Use this book for guidence.