Webservices subsystem is not scanning all visible classes for @WebService annotation
Issue
I have an EAR with a WAR and a jar found in the ear's lib/ directory. The web.xml of the WAR refers to a JAX-WS endpoint class that is located in the jar that is in the ear's lib/ directory. Upon deployment I get this error:
14:49:00,262 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/TestService].[AuthService]] (http-localhost.localdomain/127.0.0.1:58320-1) JBWEB000235: Allocate exception for servlet TestService: java.lang.ClassCastException: com.test.TestService cannot be cast to javax.servlet.Servlet
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.0.x
- 6.1.x
- 6.2.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.