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.

java.lang.ClassCastException with JAXWS version 2.2.11.


Article ID: 127036


Updated On:


CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE


WILY Agent in tomcat applications giving below exceptions. These issues are seen for the apps which are using JAXWS version 2.2.11.
Once the WILY Agent is disabled on the Tomcat Servers, we are not seeing this issue and the apps are working fine.

Stacktrace:] with root cause java.lang.ClassCastException: cannot be cast to at at at at at at at at


Newer versions of JAX-WS (2.2.6 or higher) expect usage of instead of java.util.HashMap


CA APM 10.3 - All agents, Collectors and MOMĀ 


Configure SPM Compatibility With JAX-WS 2.2.6 or Higher

Newer versions of JAX-WS (2.2.6 or higher) expect usage of instead of java.util.HashMap. To avoid a ClassCastException when your application makes a webservice call, uncomment the following configuration property in the IntroscopeAgent.profile file:

This change does not have any impact on cross-process or cross-JVM transaction tracing. It will also not break the old functionality. If the application has two JAX-WS implementations for different features of the application, both will work when this property is enabled.

Additional Information