ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Using CORBA API for Spectrum 21.2.8 we recieve a java.lang.NoClassDefFoundError: org/jdom2/JDOMException

book

Article ID: 237027

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

We updated a first test system with Spectrum 21.2.8..
 
We use some customer build java applications.
We see an java exception, which is also seen on original spectrum SSORB Development API examples.
 
We follow the spectrum documentation to compile and run the application.
 
source /opt/SPECTRUM/spectrum80.env
 
cd $SPECROOT/SDK/examples/SSORB/DevelopmentAPI
 
CLASSPATH=".:$SPECROOT/lib/global100.jar:$SPECROOT/lib/ssorb100.jar:$SPECROOT/lib/ssorbutil100.jar:$SPECROOT/lib/vbhelper100.jar:$SPECROOT/lib/vbjorb.jar:$SPECROOT/lib/vbsec.jar:$SPECROOT/lib/util100.jar:$SPECROOT/lib/utilnet100.jar:$SPECROOT/lib/utilsrv100.jar:$SPECROOT/lib/lm.jar:$SPECROOT/lib/cryptojFIPS.jar:$SPECROOT/lib/sanct6.jar:$SPECROOT/lib/sanctuary.jar:$SPECROOT/lib/utilapp100.jar:"
 
$SPECROOT/Java/bin/javac -classpath $CLASSPATH GetDomainID.java
 
$SPECROOT/Java/bin/java -classpath $CLASSPATH GetDomainID
 
java.lang.NoClassDefFoundError: org/jdom2/JDOMException
        at com.aprisma.visibroker.VBrokerCORBAHelper.initializeIOR(VBrokerCORBAHelper.java:278)
        at com.aprisma.visibroker.VBrokerCORBAHelper.init(VBrokerCORBAHelper.java:169)
        at GetDomainID.main(GetDomainID.java:43)
Caused by: java.lang.ClassNotFoundException: org.jdom2.JDOMException
        at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        ... 3 more
 
When I add $SPECROOT/lib/jdom-2.0.6.1.jar to the classpath the exception is gone away.
 
Is this the right JAR file?

 

 

Cause

Missing jdom-2.0.6.1.jar file in the CLASSPATH

Environment

Release : 21.2.8

Component : Spectrum Integrations CORBA API

Resolution

Please include the jdom-2.0.6.1.jar file into the CLASSPATH, this requirement has been added to the docs now and will be updated in the $SPECROOT/SDK/examples/SSORB/DevelopmentAPI/CLASSPATHs file starting in Spectrum 21.2.10.

Additional Information

Docs have been updated to show missing jdom.x.x.x.jar file.

 

CORBA API Docs