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
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21431426