geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lin Sun <linsun....@gmail.com>
Subject Re: deployment error from HandlerChainAnnotationHelper.addHandlerChain when running jaxws-war test
Date Tue, 13 Mar 2007 02:20:04 GMT
Hi Tim,
Thanks for looking into it!  I am able to deploy the jaxws-war file now.:-)

Lin
Tim McConnell wrote:
> Lin, should be fixed with GERONIMO-2956 patch, which Jencks just 
> applied....
> Thanks,
> Tim McConnell
> 
> 
> Lin Sun wrote:
>> 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