j***@usmint.treas.gov
2006-12-05 16:16:51 UTC
I want to add an external jar file that code in WebSphereCommerceServerExtensionsLogic can reference. I added it to the Stores.war/lib directory but I am getting a "java.lang.NoClassDefFoundError" at runtime. This makes sense, because our directory structure looks like this:
/opt/WebSphere/AppServer/installedApps/stdwcs1/WC_wcsdev.ear/Stores.war/WEB-INF/lib/externalJar.jar
/opt/WebSphere/AppServer/installedApps/stdwcs1/WC_wcsdev.ear/WebSphereCommerceServerExtensionsLogic.jar
So it makes sense that classes within WebSphereCommerceServerExtensionsLogic.jar can't access classes within Stores.war/WEB-INF/lib.
So...where do I add this jar file so that it can be accessed by classes in /opt/WebSphere/AppServer/installedApps/stdwcs1/WC_wcsdev.ear/WebSphereCommerceServerExtensionsLogic.jar?
/opt/WebSphere/AppServer/installedApps/stdwcs1/WC_wcsdev.ear/Stores.war/WEB-INF/lib/externalJar.jar
/opt/WebSphere/AppServer/installedApps/stdwcs1/WC_wcsdev.ear/WebSphereCommerceServerExtensionsLogic.jar
So it makes sense that classes within WebSphereCommerceServerExtensionsLogic.jar can't access classes within Stores.war/WEB-INF/lib.
So...where do I add this jar file so that it can be accessed by classes in /opt/WebSphere/AppServer/installedApps/stdwcs1/WC_wcsdev.ear/WebSphereCommerceServerExtensionsLogic.jar?