aspose file tools*
The moose likes Web Services and the fly likes Not able to deploy webservice through deploy.wsdd Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Not able to deploy webservice through deploy.wsdd" Watch "Not able to deploy webservice through deploy.wsdd" New topic
Author

Not able to deploy webservice through deploy.wsdd

ashirvad jain
Ranch Hand

Joined: Nov 09, 2006
Posts: 50

Env: java1.6+tomcat6.0 + apache axis1.4

I have successfully generated server stub for my webservice,using wsdl2java

After changing the stubImpl when i am depoying this generated deploy.wsdd through AxisServlet, its generates

[axis-admin] <Admin>Done processing</Admin>

But when i am checking in http://localhost:8080/axis/servlet/AxisServlet - List method it does not displaying newly deployed webservice.


************deploy.wsdd***********
<!-- Use this file to deploy some handlers/chains and services -->
<!-- Two ways to do this: -->
<!-- java org.apache.axis.client.AdminClient deploy.wsdd -->
<!-- after the axis server is running -->
<!-- or -->
<!-- java org.apache.axis.utils.Admin client|server deploy.wsdd -->
<!-- from the same directory that the Axis engine runs -->

<deployment
xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

<!-- Services from SimpleService WSDL service -->

<service name="SimpleServiceSOAP" provider="java:RPC" style="document" use="literal">
<parameter name="wsdlTargetNamespace" value="http://example.org/SimpleService/"/>
<parameter name="wsdlServiceElement" value="SimpleService"/>
<parameter name="schemaUnqualified" value="http://example.org/SimpleService/"/>
<parameter name="wsdlServicePort" value="SimpleServiceSOAP"/>
<parameter name="className" value="org.example.SimpleService.SimpleServiceSOAPImpl"/>
<parameter name="wsdlPortType" value="SimpleService"/>
<parameter name="typeMappingVersion" value="1.2"/>
<operation name="add" qname="Add" returnQName="retNS:AddResponse" xmlns:retNS="http://example.org/SimpleService/" returnType="rtns:>AddResponse" xmlns:rtns="http://example.org/SimpleService/" soapAction="http://example.org/SimpleService/Add" >
<parameter qname="pns:AddRequest" xmlns:pns="http://example.org/SimpleService/" type="tns:InputType" xmlns:tns="http://example.org/SimpleService/"/>
</operation>
<operation name="substract" qname="Substract" returnQName="retNS:SubstractResponse" xmlns:retNS="http://example.org/SimpleService/" returnType="rtns:>SubstractResponse" xmlns:rtns="http://example.org/SimpleService/" soapAction="http://example.org/SimpleService/Substract" >
<parameter qname="pns:SubstractRequest" xmlns:pns="http://example.org/SimpleService/" type="tns:InputType" xmlns:tns="http://example.org/SimpleService/"/>
</operation>
<parameter name="allowedMethods" value="substract add"/>

<typeMapping
xmlns:ns="http://example.org/SimpleService/"
qname="ns:InputType"
type="javarg.example.SimpleService.InputType"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>
<typeMapping
xmlns:ns="http://example.org/SimpleService/"
qname="ns:>SubstractResponse"
type="javarg.example.SimpleService.SubstractResponse"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>
<typeMapping
xmlns:ns="http://example.org/SimpleService/"
qname="ns:>AddResponse"
type="javarg.example.SimpleService.AddResponse"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>
</service>
</deployment>


and the exception in tomcat log i m getting are as belows:
**************************************************
org.apache.axis.deployment.wsdd.WSDDNonFatalException: java.lang.ClassNotFoundE
ception: org.example.SimpleService.InputType
java.lang.ClassNotFoundException: org.example.SimpleService.InputType
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLo
der.java:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLo
der.java:1204)
at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)
at org.apache.axis.deployment.wsdd.WSDDTypeMapping.getLanguageSpecificT
pe(WSDDTypeMapping.java:183)
at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDSe
vice.java:542)
at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java
253)
at org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:
33)
at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment
java:192)
at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.jav
:78)
at org.apache.axis.utils.Admin.processWSDD(Admin.java:111)
at org.apache.axis.utils.Admin.process(Admin.java:158)
at org.apache.axis.utils.Admin.AdminService(Admin.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvide
.java:126)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java
323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrate
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:45
)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:6
9)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBa
e.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper
alve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContext
alve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.
ava:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.
ava:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVa
ve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.ja
a:212)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.jav
:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proc
ss(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:4
5)
at java.lang.Thread.run(Unknown Source)

at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDSe
vice.java:561)
at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java
253)
at org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:
33)
at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment
java:192)
at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.jav
:78)
at org.apache.axis.utils.Admin.processWSDD(Admin.java:111)
at org.apache.axis.utils.Admin.process(Admin.java:158)
at org.apache.axis.utils.Admin.AdminService(Admin.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvide
.java:126)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java
323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrate
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:45
)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:6
9)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBa
e.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper
alve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContext
alve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.
ava:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.
ava:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVa
ve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.ja
a:212)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.jav
:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proc
ss(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:4
5)
at java.lang.Thread.run(Unknown Source)

at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDSe
vice.java:561)
at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java
253)
at org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:
33)
at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment
java:192)
at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.jav
:78)
at org.apache.axis.utils.Admin.processWSDD(Admin.java:111)
at org.apache.axis.utils.Admin.process(Admin.java:158)
at org.apache.axis.utils.Admin.AdminService(Admin.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvide
.java:126)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java
323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrate
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:45
)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:6
9)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBa
e.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper
alve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContext
alve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.
ava:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.
ava:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVa
ve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.ja
a:212)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.jav
:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proc
ss(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:4
5)
at java.lang.Thread.run(Unknown Source)



Please guide me , where i am wrong.

If need more description i can provide you.

Thank you.






ashirvad jain
Ranch Hand

Joined: Nov 09, 2006
Posts: 50
I have made some changes and now start getting this exception,


at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDSer
vice.java:561)
at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:
253)
at org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:2
33)
at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.
java:192)
at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java
:78)
at org.apache.axis.utils.Admin.processWSDD(Admin.java:111)
at org.apache.axis.utils.Admin.process(Admin.java:158)
at org.apache.axis.utils.Admin.AdminService(Admin.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvider
.java:126)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:
323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454
)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:69
9)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBas
e.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:212)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
5)
at java.lang.Thread.run(Unknown Source)



Can someone suggest me what is reason behind this exception.

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to deploy webservice through deploy.wsdd