Compilation failure with wlappc on Webservices using @WebServiceProvider (Doc ID 1296383.1)

Last updated on MAY 24, 2017

Applies to:

Oracle Weblogic Server - Version: 10.3 to 10.3.2
Information in this document applies to any platform.

Symptoms

You will notice that wlappc fails when compiling an application that contains a JAX-WS Webservice that is annotated with javax.xml.ws.WebServiceProvider (@WebServiceProvider).

The following error on wlappc compilation:
appc:
[wlappc] <Nov 9, 2010 4:45:00 PM MST> <Info> <J2EE> <BEA-160186>
<Compiling EAR module 'WebService/xxxxx.war'>
[wlappc] [JspcInvoker]Checking web app for compliance.
[wlappc] <Nov 9, 2010 4:45:01 PM MST> <Info> <HTTP> <BEA-101047>
<[ComplianceChecker] Validating the servlet element with servlet-name named "XxxxServiceServlethttp".>
[wlappc]
[wlappc]
[wlappc] There are 1 nested errors:
[wlappc]
[wlappc] weblogic.servlet.internal.dd.compliance.ComplianceException: The element servlet-class, "xxx.xxxxx.xx.xx.xxxxx.Xxxx" must be a subclass of "javax.servlet.Servlet".
[wlappc] at
weblogic.servlet.internal.dd.compliance.BaseComplianceChecker.addDescriptorError(BaseComplianceChecker.java:74)
[wlappc] at
weblogic.servlet.internal.dd.compliance.BaseComplianceChecker.addDescriptorError(BaseComplianceChecker.java:80)
[wlappc] at
weblogic.servlet.internal.dd.compliance.BaseComplianceChecker.isClassAssignable(BaseComplianceChecker.java:149)
[wlappc] at
weblogic.servlet.internal.dd.compliance.ServletComplianceChecker.checkServlet(ServletComplianceChecker.java:104)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms