Bug 1079085

Summary: [GSS] (6.2.x) Webservices DUP is not scanning all visible classes for @WebService annotation
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Kyle Lape <klape>
Component: Web ServicesAssignee: Kyle Lape <klape>
Status: CLOSED CURRENTRELEASE QA Contact: Rostislav Svoboda <rsvoboda>
Severity: unspecified Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.0CC: cdewolf, lcosti
Target Milestone: CR2   
Target Release: EAP 6.2.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
It was discovered that the Webservices DUP in previous versions of JBoss EAP 6 carried a bug that prevented it from scanning all visible classes with the `@WebService` annotation. The error presented when a 'war' archive that contained a 'web.xml' with a &lt;servlet-class&gt; that refers to a JAX-WS endpoint (so the class is annotated with `@WebService`) was located within an 'ear' archive and the 'jar' containing the class was located in the 'ear' archive's 'lib/' directory. The relevant code has been amended in this release to scan more thoroughly for `@WebService` classes and the error no longer presents.
Story Points: ---
Clone Of: 1079084
: 1086385 (view as bug list) Environment:
Last Closed: 2014-06-09 12:46:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1079084    
Bug Blocks: 1067532, 1086385    

Description Kyle Lape 2014-03-21 00:08:42 UTC
Sample use case: You have a .war in an .ear, and the .war has a web.xml with a <servlet-class> that refers to a JAX-WS endpoint, so the class is annotated with @WebService. If that class is packaged in a jar found in the ear's lib directory, the JBossWS DUP won't pick it up, and then Undertow will throw an error like this (except of course the JBossWeb equivalent):

UT010009: Servlet ClientEndpoint of type class com.redhat.gss.jaxws.ClientEndpoint does not implement javax.servlet.Servlet

Comment 1 JBoss JIRA Server 2014-03-24 15:13:54 UTC
Alessio Soldano <asoldano> updated the status of jira WFLY-3067 to Resolved