Hello,
my problem are the annotation based Endpoints. When implementing an endpoint via inheritance from e.g. AbstractJDomPayloadEndpoint everything works fine. Nevertheless I don't want to create an own class for each endpoint mapping.
But now it happens that as soon as I introduce the @Endpoint annotation the application cannot be deployed anymore. The error is:
cannot Deploy WebApp
Deployment Error for module: WebApp: Exception while loading the app : java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.NoSuchMethodException: net.test.ws.ResourceEndpoint.<init>()%%%EOL%%%
I'm using the glassfish 3.0 application server with java6 sdk. It is quite regardless what kind of spring-ws version (1.5.9 or 2.0.0-M2) I use, the error does not change.
Thanks a lot for your help!!!
jars:
spring-3.0.3
xml-apis-1.3.04
saaj-api-1.3
saaj-impl-1.3
xalan-2.7.1
xercesImpl-2.8.1
spring-ws-servlet.xml:Code:@Endpoint public class ResourceEndpoint { private final HumanResourceService humanResourceService; public ResourceEndpoint(HumanResourceService humanResourceService) { this.humanResourceService = humanResourceService; } @PayloadRoot(localPart="test",namespace="http://www.test.net/ws") public Source test(@XPathParam("//test") String test) { return null; } }
Code:<beans... <bean id="resourceEndpoint" class="net.test.ws.ResourceEndpoint"> <constructor-arg ref="hrService" /> </bean> <bean id="hrService" class="net.test.ws.service.impl.HumanResourceServiceImpl" /> <bean class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping" /> <bean class="org.springframework.ws.server.endpoint.adapter.XPathParamAnnotationMethodEndpointAdapter" /> <bean id="resource" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition"> ...


Reply With Quote
