[ 
https://issues.apache.org/jira/browse/GERONIMO-3002?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim McConnell updated GERONIMO-3002:
------------------------------------

    Attachment: GERONIMO-3002.patch

Problem duplicated and resolved using a modified testcase (GreeterImpl.java) 
from the webservices-testsuite. The patch simply enforces the specification 
that Class-level annotations for @WebServiceRef (and @HandlerChain) annotations 
cannot specify injection target(s). 

> Error processing @WebServiceRefs annotation
> -------------------------------------------
>
>                 Key: GERONIMO-3002
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3002
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>            Reporter: Jarek Gawor
>         Assigned To: Tim McConnell
>         Attachments: GERONIMO-3002.patch
>
>
> I'm getting the following exception when @WebServiceRefs(..) annotation is 
> specified at class level:
> Caused by: java.lang.IllegalArgumentException: You must supply exactly one of 
> Me
> thod, Field
>         at 
> org.apache.geronimo.j2ee.deployment.annotation.AnnotationHelper.getIn
> jectionJavaType(AnnotationHelper.java:46)
>         at 
> org.apache.geronimo.j2ee.deployment.annotation.WebServiceRefAnnotatio
> nHelper.addWebServiceRef(WebServiceRefAnnotationHelper.java:249)
>         at 
> org.apache.geronimo.j2ee.deployment.annotation.WebServiceRefAnnotatio
> nHelper.processWebServiceRefs(WebServiceRefAnnotationHelper.java:159)
>         at 
> org.apache.geronimo.j2ee.deployment.annotation.WebServiceRefAnnotatio
> nHelper.processAnnotations(WebServiceRefAnnotationHelper.java:85)
> My understanding is that for the *s annotations the deployment descriptor is 
> updated however the values are not injected at runtime. Therefore, the 
> injectionTarget element in xml should not be generated for such annotations.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to