-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
Use cases with classes like this:
@WebServiceRef(name = "Service1")
// Test multiple on type
@WebServiceRefs(
)
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)
- blocks
-
JBWS-2171 ServiceRef injection in EJB3 clients
- Closed
-
JBAS-5655 Annotated element for 'xyz' is niether Method nor Field
- Closed
- is related to
-
EJBTHREE-1424 WebServiceRefHandler doesn't add injectors to the container
- Closed