IBM Support

A ClassNotFoundException exception occurs when using wsadmin to install an EAR file that includes SAR files

Troubleshooting


Problem

When you use wsadmin tooling to install an enterprise archive (EAR) file that contains a Session Initiation Protocol (SIP) application archive (SAR) files and leverages SIP annotations, you might encounter the following ClassCastExpection exception: [] java.lang.TypeNotPresentException: Type javax.servlet.sip.annotation.SipApplication not present ... Caused by: java.lang.ClassNotFoundException: javax.servlet.sip.annotation.SipApplication []

Cause

The SIP container within the Version 7.0.0.5 base enablement code contains changes that are required to properly enable the function for the Feature Pack for Communications Enabled Applications.

Diagnosing The Problem

When you attempt to deploy the EAR file, you might see exceptions with text that is similar to the following exceptions:

java.lang.TypeNotPresentException:
Type javax.servlet.sip.annotation.SipApplication not present
at
com.ibm.oti.reflect.AnnotationHelper.getAnnotation
(AnnotationHelper.java:38)
at
com.ibm.oti.reflect.AnnotationHelper.getDeclaredAnnotations
(AnnotationHelper.java:50)
at
java.lang.Class.getDeclaredAnnotations
(Class.java:1628)
at
java.lang.Class.getAnnotations
(Class.java:1589)
at
java.lang.Class.getAnnotation
(Class.java:1569)
at
com.ibm.ws.sip.container.annotation.
SipModuleAnnotationProcessor.processSipApplicationAnnotations
(SipModuleAnnotationProcessor.java:282)
...more...
Caused by: java.lang.ClassNotFoundException:
javax.servlet.sip.annotation.SipApplication
at
java.lang.Class.forName(Class.java:169)
at
com.ibm.oti.reflect.AnnotationHelper.getAnnotation
(AnnotationHelper.java:33)

Resolving The Problem

To resolve this problem, complete the following steps:

  1. Download one of the following fixes from the IBM WebSphere Application Server Support site:

  2. Use the applicable Update Installer (UPDI) for your operating system to apply the update to your installation. You can use the following Update Installers:

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Administrative Scripting Tools (for example: wsadmin or ANT)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0.0.5","Edition":"Feature Pack for CEA","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21394389