[jboss-jira] [JBoss JIRA] Closed: (EJBTHREE-1426) Injection and @WebServiceRef on types
Alexey Loubyansky (JIRA)
jira-events at lists.jboss.org
Mon Jun 23 11:50:29 EDT 2008
[ http://jira.jboss.com/jira/browse/EJBTHREE-1426?page=all ]
Alexey Loubyansky closed EJBTHREE-1426.
---------------------------------------
Resolution: Done
Fixed.
> Injection and @WebServiceRef on types
> -------------------------------------
>
> Key: EJBTHREE-1426
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-1426
> Project: EJB 3.0
> Issue Type: Bug
> Reporter: Alessio Soldano
> Assigned To: Alexey Loubyansky
> Fix For: AS 5.0.0.CR1
>
>
> Use cases with classes like this:
> @WebServiceRef(name = "Service1")
> // Test multiple on type
> @WebServiceRefs( { @WebServiceRef(name = "Service2"), @WebServiceRef(name = "Port1", type = TestEndpoint.class) })
> public class TestEndpointClientTwo
> {
> // provide logging
> private static final Logger log = Logger.getLogger(org.jboss.test.ws.jaxws.webserviceref.TestEndp
> ointClientTwo.class);
> // Test on field
> @WebServiceRef(name = "Service3")
> static Service service3;
> ...
> result in this exception being thrown:
> Caused by: java.lang.IllegalStateException: Annotated element for 'env/Service1' is niether Method n
> or Field: class org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo
> at org.jboss.injection.WebServiceRefHandler.addInjector(WebServiceRefHandler.java:113)
> at org.jboss.injection.WebServiceRefHandler.loadXml(WebServiceRefHandler.java:82)
> at org.jboss.ejb3.clientmodule.ClientENCInjectionContainer.processMetaData(ClientENCInjectio
> nContainer.java:319)
> at org.jboss.ejb3.clientmodule.ClientENCInjectionContainer.<init>(ClientENCInjectionContainer.java:164)
> at org.jboss.ejb3.deployers.Ejb3ClientDeployer.deploy(Ejb3ClientDeployer.java:122)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list