Adding pre-built JAR files to your EAR in Rational Application Developer

I have the following jars that I want to include on the classpath of my EAR:

  • jaxb-api.jar
  • jaxb-impl.jar
  • jsr172_1.0_api.jar
  • log4j-1.2.15.jar
  • spring.jar

For my Spring/JAXB/Log4J solution. I tried to look into the deployment descriptors to place prebuilt ears but I could not find it.

My solution was to open the MANIFEST.MF file inside the EJB project. You can add jars through the text editor.

My example:

Manifest-Version: 1.0
Class-Path: LoggingUtility.jar
spring.jar
jaxb-api.jar
jaxb-impl.jar
log4j-1.2.15.jar
jsr173_1.0_api.jar

Deploys and runs on WebSphere Application Server with no problem.

Author: dan

Leave a Reply

Your email address will not be published. Required fields are marked *