Posted: Thu Jan 23, 2014 7:17 am Post subject: NoClassDefRFoundError: javax/resource/spi/
Knight
Joined: 27 Oct 2003 Posts: 561
Developed and successfully tested a PCFAgent monitoring app using NetBeans and deployed the executable JAR for this app to another Windows server. When running this JAR I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/resource/spi/ConnectionRequestInfo. FYI the I get the same error on the Windows server where the app was developed. The app successfully runs from within the NetBeans IDE via the run project menu.
At a loss as to how to resolve this error: googling the web for info on javax/resource/spi I believe that the missing class is related to jca. In NetBeans, I build and test successfully with no import for javax and no classpath for jca JAR files.
The executable jar was built by NetBeans with the following information messages:
Created dir: C:\Users\j.b.davis\Documents\NetBeansProjects\ListChannelStatus\dist
Copying 1 file to C:\Users\j.b.davis\Documents\NetBeansProjects\ListChannelStatus\build
Not copying library C:\Program Files (x86)\IBM\WebSphere MQ\java\lib\jca , it's a directory.
Copy libraries to C:\Users\j.b.davis\Documents\NetBeansProjects\ListChannelStatus\dist\lib.
Building jar: C:\Users\j.b.davis\Documents\NetBeansProjects\ListChannelStatus\dist\ListChannelStatus.jar
To run this application from the command line without Ant, try:
java -jar "C:\Users\j.b.davis\Documents\NetBeansProjects\ListChannelStatus\dist\ListChannelStatus.jar"
NOTE: MQ\java\lib\jca was not copied to the lib directory because it is a directory - obviously where the problem lies. But the jca directory is empty in the MQ distribution: C:\Program Files (x86)\IBM\WebSphere MQ\java\lib -
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum