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.

Spectrum OneClick shows NoClassDefFoundError for WebswingUil


Article ID: 145413


Updated On:


CA Spectrum CA eHealth


After upgrading to 10.4.1, users are not able to launch OneClick.  An error shows:

SPC-OCC-10267 An unexpected error occurred: java.lang.NoClassDefFoundError; org/webswing/tookit/api/WebswingUtil


The webswing-api.jar was loaded by tomcat but not by the jre.


Release : 10.4.1


We found that the oneclick.jnlp did not have this entry:

 <jar href="lib/webswing-api.jar;no_javaws_cheat"/>

The jnlp had been copied from the 10.3.2 server as it was customized to allow for 32bit/64bit and mac os.  The Webswing utility has been updated in 10.4.1 with a jar file.

The oneclick.jnlp file needs to load this jar.

To resolve this, add this entry to the $SPECROOT/tomcat/webapps/spectrum/oneclick.jnlp file:

 <jar href="lib/webswing-api.jar;no_javaws_cheat"/>

We added that entry to the oneclick.jnlp and the OC client launches