Bug 1079084

Summary: [GSS] (6.3.0) 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: Jim Ma <ema>
Status: CLOSED CURRENTRELEASE QA Contact: Kyle Lape <klape>
Severity: unspecified Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.0CC: kkhan, rsvoboda, sgilda, smumford
Target Milestone: ER2   
Target Release: EAP 6.3.0   
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. An error presented when a `war` archive that contained a `web.xml` with a <servlet-class> 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:
: 1079085 (view as bug list) Environment:
Last Closed: 2014-06-28 15:28:42 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:    
Bug Blocks: 1079085, 1086385    

Description Kyle Lape 2014-03-21 00:07:18 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:53 UTC
Alessio Soldano <asoldano> updated the status of jira WFLY-3067 to Resolved

Comment 3 sgilda 2014-05-12 18:25:08 UTC
Changed <filename></filename> tags in Doc Text to ticks (`) to fix Bug 1096865