Java Integration Stage NoClassDefFoundError:
Posted: Thu Apr 21, 2016 8:52 pm
Hello,
I am trying to call a Java Program by extending processor class. When I ran the job by bundling a simple java program to invoke a public API it worked fine and I got a response back from the java program.
Then I tried a java program to call a Real API using the same method of bundling the java program into a .jar file and copying it to a location and giving that location as the class path in the java integration stage.
When I run the job, it is failing with a Class definition not found error below. Since it worked when I called the Public API, I assume it should work the same way in the second case as well. Am I missing something? I made sure the below class archive file and the class are available in the bundle .jar file. I appreciate any help on this.
IntValueGenerator: java.lang.NoClassDefFoundError: javax.ws.rs.core.MultivaluedMap
at java.lang.J9VMInternals.verifyImpl (J9VMInternals.java)
at java.lang.J9VMInternals.verify (J9VMInternals.java: 72)
at java.lang.J9VMInternals.initialize (J9VMInternals.java: 134)
at java.lang.J9VMInternals.newInstanceImpl (J9VMInternals.java)
at java.lang.Class.newInstance (Class.java: 1345)
at com.ibm.is.cc.javastage.connector.CC_JavaConnection.connect (CC_JavaConnection.java: 158)
I am trying to call a Java Program by extending processor class. When I ran the job by bundling a simple java program to invoke a public API it worked fine and I got a response back from the java program.
Then I tried a java program to call a Real API using the same method of bundling the java program into a .jar file and copying it to a location and giving that location as the class path in the java integration stage.
When I run the job, it is failing with a Class definition not found error below. Since it worked when I called the Public API, I assume it should work the same way in the second case as well. Am I missing something? I made sure the below class archive file and the class are available in the bundle .jar file. I appreciate any help on this.
IntValueGenerator: java.lang.NoClassDefFoundError: javax.ws.rs.core.MultivaluedMap
at java.lang.J9VMInternals.verifyImpl (J9VMInternals.java)
at java.lang.J9VMInternals.verify (J9VMInternals.java: 72)
at java.lang.J9VMInternals.initialize (J9VMInternals.java: 134)
at java.lang.J9VMInternals.newInstanceImpl (J9VMInternals.java)
at java.lang.Class.newInstance (Class.java: 1345)
at com.ibm.is.cc.javastage.connector.CC_JavaConnection.connect (CC_JavaConnection.java: 158)