[GLASSFISH-5173] Resource injection fails in web service on URL specified in web.xml servlet mapping. Created: 17/Jun/08  Updated: 06/Mar/12

Status: Open
Project: glassfish
Component/s: web_services
Affects Version/s: 9.1peur2
Fix Version/s: not determined

Type: Bug Priority: Minor
Reporter: nikolaj_a Assignee: Bhakti Mehta
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: All
Platform: Macintosh

Attachments: Java Source File FailedInjectionWebService.java    
Issuezilla Id: 5,173


It seems that all resource injection fails on a web service implementation class when it is accessed by
the servlet mapping URL. Also, GlassFish automatically creates and alternative URL (why is this?) which
can be found in the admin GUI, where resource injection works perfectly.

Resource injection should work when a web service is called on the URL specified in the web.xml
servlet mapping.

As a workaround, is it possible to somehow change the automatically assigned URL, possibly via
webservices.xml or the like?

See also last post in http://forums.java.net/jive/thread.jspa?threadID=38298

Best regards,

Comment by nikolaj_a [ 17/Jun/08 ]

Created an attachment (id=1562)
Example source file illustrating the failed resource injection, and a possible workaround.

Comment by sanandal [ 11/Jan/09 ]

"Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1
release whose primary release driver is SailFin.
This issue will be scrubbed after this release and will be given the right
priority for the next release."

Comment by Tom Mueller [ 06/Mar/12 ]

Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.

Generated at Thu Jul 02 00:31:47 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.