Spectrum OneClick shows NoClassDefFoundError for WebswingUil
search cancel

Spectrum OneClick shows NoClassDefFoundError for WebswingUil

book

Article ID: 145413

calendar_today

Updated On:

Products

CA Spectrum CA eHealth

Issue/Introduction

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

Environment

Release : 10.4.1

Cause

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

Resolution

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