geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan <xhh...@gmail.com>
Subject Re: JAXWS web service deployment
Date Thu, 04 Jun 2009 15:06:11 GMT
If you use the annotation WebService in you SEI, set the wsdlLocation could
avoid the WSDL generation.
Ivan

2009/6/4 james.bond.007 <eric.manuguerra@gmail.com>

>
> Hi
>
> I have added the jaxws annotations in a service class in order to turn it
> into a web service. I have followed the geronimo documentation to do so
> (
> http://cwiki.apache.org/GMOxDOC21/developing-a-jax-ws-pojo-web-service.html
> ).
> The project is build with Maven, and I have integrated jaxws-maven-plugin.
>
> When I build the service Maven module, the wsdl file and ws sources are
> generated correctly.
>
> When I package the whole project in a war and I deploy it on Geronimo, I
> get
> the followig stack :
>
> 2009-06-04 13:55:34,880 INFO  [JAXWSServiceBuilder] Configuring JAX-WS Web
> Service: DocumentService at /share-web-0.2.5-SNAPSHOT/document
> 2009-06-04 13:55:34,880 DEBUG [Axis2Builder] Service null does not have
> WSDL. Generating WSDL...
> 2009-06-04 13:55:34,896 DEBUG [WsdlGenerator] Executing wsgen: [C:\Program
> Files\Java\jdk1.5.0_16\jre\bin\java, -classpath,
>
> ...
>
> , -keep, -wsdl, -d,
>
> D:\geronimo-tomcat6-javaee5-2.1.4\repository\com\itesoft\share\share-web\0.2.5-SNAPSHOT\share-web-0.2.5-SNAPSHOT.war\1717007400,
> -servicename,
> {http://impl.document.service.share.itesoft.com/}DocumentService<http://impl.document.service.share.itesoft.com/%7DDocumentService>
> ,
> com.itesoft.share.service.document.impl.DocumentServiceImpl]
> 2009-06-04 13:55:36,677 DEBUG [Deployer] Deployment failed: plan=null,
>
> module=D:\geronimo-tomcat6-javaee5-2.1.4\var\temp\share-web-0.2.5-SNAPSHOT.war
> org.apache.geronimo.common.DeploymentException: Unable to generate the wsdl
> file using wsgen.
>        at
>
> org.apache.geronimo.jaxws.builder.WsdlGenerator.generateWsdl(WsdlGenerator.java:351)
>        at
>
> org.apache.geronimo.axis2.builder.Axis2Builder.initialize(Axis2Builder.java:222)
>        at
>
> org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.configurePOJO(JAXWSServiceBuilder.java:175)
>        at
>
> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:447)
>        at
>
> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:165)
>        at
>
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647)
>        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255)
>        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at
>
> org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
>        at
>
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
>        at
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
>        at
>
> org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
>        at
>
> org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
>        at java.lang.Thread.run(Thread.java:595)
> Caused by: java.io.IOException: CreateProcess: "...
>
>        at java.lang.ProcessImpl.create(Native Method)
>        at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
>        at java.lang.ProcessImpl.start(ProcessImpl.java:30)
>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
>        at
>
> org.apache.geronimo.jaxws.builder.WsdlGenerator.forkWsgen(WsdlGenerator.java:386)
>        at
>
> org.apache.geronimo.jaxws.builder.WsdlGenerator.generateWsdl(WsdlGenerator.java:329)
>        ... 18 more
>
> Why Geronimo is failing to generate the wsdl ?
>
> Is there a way to turn off this wsdl generation, since it is already
> present
> in the war file ?
>
> Best regards,
> Eric
> --
> View this message in context:
> http://www.nabble.com/JAXWS-web-service-deployment-tp23870470s134p23870470.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


-- 
Ivan

Mime
View raw message