My goal is to deploy configure a groovy service in tomcat using spring. I started using the java_first_spring_support samples. I deployed it into tomcat and started to modify it a bit. I added the files HelloWorld.groovy & HelloWorldImpl.groovy in webapps/spring_http/WEB-INF/classes. I then modified the beans.xml so that it look like this:
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:lang="http://www.springframework.org/schema/lang" xmlns:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.0.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> <import resource="classpath:META-INF/cxf/cxf.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> <lang:groovy id="helloworld" script-source="classpath:HelloWorld.groovy" scope="prototype"/> <lang:groovy id="helloworldImpl" script-source="classpath:HelloWorldImpl.groovy" scope="prototype"/> <bean id="hello" class="demo.spring.HelloWorldImpl" /> <jaxws:endpoint id="helloEndPoint" implementor="#helloworldImpl" address="/HelloWorld" /> <!-- <jaxws:endpoint id="helloEndPoint" implementor="#hello" address="/HelloWorld" /> --> </beans> Starting tomcat and looking the logs is fine except that my WSDL is almost empty (see below). Any idea what I am doing wrong ? <wsdl:definitions name="HelloWorldImplService" targetNamespace="http://unknown.namespace/"> <wsdl:portType name="HelloWorldImpl"> </wsdl:portType> <wsdl:binding name="HelloWorldImplServiceSoapBinding" type="tns:HelloWorldImpl"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> </wsdl:binding> <wsdl:service name="HelloWorldImplService"> <wsdl:port binding="tns:HelloWorldImplServiceSoapBinding" name="HelloWorldImplPort"> <soap:address location="http://localhost:8080/spring_http/HelloWorld"/> </wsdl:port> </wsdl:service> </wsdl:definitions> -- Best Regards Guillaume http://cheztog.blogspot.com
