geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lin Sun <linsun....@gmail.com>
Subject deployment error from HandlerChainAnnotationHelper.addHandlerChain when running jaxws-war test
Date Mon, 12 Mar 2007 15:06:05 GMT
Hi,

I am getting a deployment error at 
andlerChainAnnotationHelper.addHandlerChain with the jaxws-war test case 
  (located at testsuite\webservices-testsuite\jaxws-tests\jaxws-war).

This is new with the webservice annotation support dropped in very 
recently.   I got this error as the method and field are both null and 
serviceRefName.equals(""), thus  getInjectionJavaType(method, field) 
(line 195) is called.

I'd appreciate if someone can provide a workaround for this.  Thanks, Lin

10:46:39,328 DEBUG [HandlerChainAnnotationHelper] addHandlerChain( 
<xml-fragment
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/
ns/javaee/web-app_2_5.xsd" version="2.5" 
xmlns:xsi="http://www.w3.org/2001/XMLSc
hema-instance" xmlns:jav="http://java.sun.com/xml/ns/javaee">
   <jav:display-name>Geronimo POJO WS War</jav:display-name>
   <jav:servlet>
     <jav:display-name>Geronimo POJO WS</jav:display-name>
     <jav:servlet-name>POJOServlet</jav:servlet-name>
 
<jav:servlet-class>org.apache.greeter_control.GreeterImpl</jav:servlet-class
 >
     <jav:load-on-startup>0</jav:load-on-startup>
   </jav:servlet>
   <jav:servlet-mapping>
     <jav:servlet-name>POJOServlet</jav:servlet-name>
     <jav:url-pattern>/servlet</jav:url-pattern>
   </jav:servlet-mapping>
   <jav:env-entry>
     <jav:description>Welcome message</jav:description>
     <jav:env-entry-name>greeting</jav:env-entry-name>
     <jav:env-entry-type>java.lang.String</jav:env-entry-type>
     <jav:env-entry-value>Hello</jav:env-entry-value>
   </jav:env-entry>
   <jav:service-ref>
     <jav:service-ref-name>services/Greeter</jav:service-ref-name>
     <jav:service-interface>javax.xml.ws.Service</jav:service-interface>
     <jav:wsdl-file>WEB-INF/wsdl/greeter_control.wsdl</jav:wsdl-file>
   </jav:service-ref>
</xml-fragment>,
org.apache.greeter_control.GreeterImpl,
null,
null ): Entry

....

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.HandlerChainAnnotation
Helper.addHandlerChain(HandlerChainAnnotationHelper.java:195)
         at 
org.apache.geronimo.j2ee.deployment.annotation.HandlerChainAnnotation
Helper.processHandlerChain(HandlerChainAnnotationHelper.java:114)
         at 
org.apache.geronimo.j2ee.deployment.annotation.HandlerChainAnnotation
Helper.processAnnotations(HandlerChainAnnotationHelper.java:91)
         at 
org.apache.geronimo.naming.deployment.SwitchingServiceRefBuilder.proc
essAnnotations(SwitchingServiceRefBuilder.java:197)
         at

Mime
View raw message