Adding custom JARs to the EAR project
Configure access to third-party JARS from within the WebSphere Commerce EAR by adding custom JARs to the EAR project.
Procedure
- Copy the custom JAR to the root directory of the EAR project.
- Define the JAR as a Utility JAR
- Open the Java EE perspective.
- In the Enterprise Explorer view, expand WebSphere Commerce; right-click WebSphereCommerceServer; then click Open.
- In the Application Deployment Descriptor editor, select Manage Utility JARs.
- Use the Java EE Module Dependencies to add the JAR.
- Add the new JAR to the class path by adding it to the MANIFEST.MF file.
- Select this file Stores\WebContent\META-INF\MANIFEST.MF.
- Open the JAR Dependency Editor.
- Ensure that your JAR is checked.
- Republish the WebSphere Commerce application.