IBM Support

Class loading conflicts and class accessibility issues might occur with the j2ee.jar file

Troubleshooting


Problem

The Feature Pack for OSGi Applications and Java™ Persistence API 2.0 provides Java archive (JAR) files that contain the new versions of the OSGi and JPA application programming interfaces (API). A potential problem for developers can exist in using the []j2ee.jar[] file.

Diagnosing The Problem

After you install the feature pack, the j2ee.jar file exists in the washome/feature_packs/jpa/dev/JavaEE directory. The j2ee.jar file contains the Java Platform, Enterprise Edition (Java EE) APIs, including the JPA 2.0 APIs. If you have installed other WebSphere Application Server feature packs, a JAR file with the same name was installed. When you use the j2ee.jar file in your OSGi/JPA feature pack class path along with a JAR file from another installed WebSphere Application Server feature pack, problems can occur. A potential issue is class loading conflicts and the proper classes not being accessed.

Resolving The Problem

To resolve this issue, complete one of the following steps:

  • Install APAR PM14614 for the feature pack.

  • Use the correct JPA 2.0 APIs:
    • Incorrect directory and JAR file:
      washome/feature_packs/jpa/dev/JavaEE/j2ee.jar

    • Correct directory and JAR file:
      washome/feature_packs/jpa/dev/jpa_api.jar

Related Information

[{"Product":{"code":"SSV8AP","label":"WebSphere Application Server V7 Feature Pack for OSGi Applications and Java Persistence API 2.0"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"1.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":" ","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0.0.9","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":" ","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"7.0.0.9","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21431426