axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandro Bernardini <sandr...@sparc20.ing.unimo.it>
Subject HELP: bad deploy with tag typeMapping in wsdd
Date Mon, 09 Sep 2002 18:07:35 GMT
I use Tomcat 4.0.1 and Axis RC1.

When I publish my service (Complex)
  java org.apache.axis.client.AdminClient deploy_Complex.wsdd

where deploy_Complex.wsdd is the follow:
 <deployment
    xmlns="http://xml.apache.org/axis/wsdd/"
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
   
  <service name="Complex_servizio" provider="java:RPC">
      <parameter name="className" value="Complex.Complex_server"/>
      <parameter name="allowedMethods" value="getComplex"/>
      <parameter name="methodName" value="getComplex"/>
      
      <typeMapping
        xmlns:ns="http://Complex.my_axis.samples"
        qname="ns:Complex"
        type="java:Complex.Complex"
        serializer="Complex.ComplexSerFactory"
        deserializer="Complex.ComplexDeserFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      />
  </service>
 </deployment>
 
I have the follow error:

- Processing file deploy_Complex.wsdd
- Exception:
AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.userException
 faultString: org.apache.axis.deployment.wsdd.WSDDException: 
java.lang.ClassCastException: Complex.ComplexSerFactory
java.lang.ClassCastException: Complex.ComplexSerFactory
	at 
org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(BaseSerializerF
actory.java:280)
	at 
org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:5
01)
	at 
org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:636)
	at 
org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:233)
	at 
org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:242)
	at 
org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:120)
	at org.apache.axis.utils.Admin.processWSDD(Admin.java:154)
	at org.apache.axis.utils.Admin.process(Admin.java:227)
	at org.apache.axis.utils.Admin.AdminService(Admin.java:108)
	at java.lang.reflect.Method.invoke(Native Method)
	at 
org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvider.java:162)
	at 
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:276)
	at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:153)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:123)
	at 
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:431)
	at org.apache.axis.server.AxisServer.invoke(AxisServer.java:314)
	at 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:558)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:335)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:247)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:193)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
43)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:2
01)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java
:170)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163
)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011
)
	at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
	at java.lang.Thread.run(Thread.java:484)

 faultActor: null
 faultDetail: 
	stackTrace: org.apache.axis.deployment.wsdd.WSDDException: 
java.lang.ClassCastException: Complex.ComplexSerFactory
java.lang.ClassCastException: Complex.ComplexSerFactory
	at 
org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(BaseSerializerF
actory.java:280)
	at 
org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:5
01)
	at 
org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:636)
	at 
org.apache.axis.deployment.wsdd.WSDDService.&lt;init&gt;(WSDDService.java:233)
	at 
org.apache.axis.deployment.wsdd.WSDDDeployment.&lt;init&gt;(WSDDDeployment.java:
242)
	at 
org.apache.axis.deployment.wsdd.WSDDDocument.&lt;init&gt;(WSDDDocument.java:120)
	at org.apache.axis.utils.Admin.processWSDD(Admin.java:154)
	at org.apache.axis.utils.Admin.process(Admin.java:227)
	at org.apache.axis.utils.Admin.AdminService(Admin.java:108)
	at java.lang.reflect.Method.invoke(Native Method)
	at 
org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvider.java:162)
	at 
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:276)
	at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:153)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:123)
	at 
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:431)
	at org.apache.axis.server.AxisServer.invoke(AxisServer.java:314)
	at 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:558)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:335)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:247)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:193)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
43)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:2
01)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java
:170)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163
)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011
)
	at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
	at java.lang.Thread.run(Thread.java:484)

	at 
org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:5
16)
	at 
org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:636)
	at 
org.apache.axis.deployment.wsdd.WSDDService.&lt;init&gt;(WSDDService.java:233)
	at 
org.apache.axis.deployment.wsdd.WSDDDeployment.&lt;init&gt;(WSDDDeployment.java:
242)
	at 
org.apache.axis.deployment.wsdd.WSDDDocument.&lt;init&gt;(WSDDDocument.java:120)
	at org.apache.axis.utils.Admin.processWSDD(Admin.java:154)
	at org.apache.axis.utils.Admin.process(Admin.java:227)
	at org.apache.axis.utils.Admin.AdminService(Admin.java:108)
	at java.lang.reflect.Method.invoke(Native Method)
	at 
org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvider.java:162)
	at 
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:276)
	at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:153)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:123)
	at 
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:431)
	at org.apache.axis.server.AxisServer.invoke(AxisServer.java:314)
	at 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:558)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:335)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:247)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:193)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
43)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:2
01)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java
:170)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163
)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011
)
	at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
	at java.lang.Thread.run(Thread.java:484)


org.apache.axis.deployment.wsdd.WSDDException: java.lang.ClassCastException: 
Complex.ComplexSerFactory
java.lang.ClassCastException: Complex.ComplexSerFactory
	at 
org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(BaseSerializerF
actory.java:280)
	at 
org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:5
01)
	at 
org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:636)
	at 
org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:233)
	at 
org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:242)
	at 
org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:120)
	at org.apache.axis.utils.Admin.processWSDD(Admin.java:154)
	at org.apache.axis.utils.Admin.process(Admin.java:227)
	at org.apache.axis.utils.Admin.AdminService(Admin.java:108)
	at java.lang.reflect.Method.invoke(Native Method)
	at 
org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvider.java:162)
	at 
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:276)
	at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
	at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:153)
	at org.apache.axis.SimpleChain.invoke(SimpleChain.java:123)
	at 
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:431)
	at org.apache.axis.server.AxisServer.invoke(AxisServer.java:314)
	at 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:558)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:335)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:247)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:193)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
43)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:2
01)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java
:170)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163
)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011
)
	at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
	at java.lang.Thread.run(Thread.java:484)

	at 
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:135)
	at 
org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationCo
ntextImpl.java:932)
	at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
	at 
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.jav
a:1550)
	at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDoc
umentScanner.java:1204)
	at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java
:381)
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
	at 
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContext
Impl.java:219)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:535)
	at org.apache.axis.Message.getSOAPEnvelope(Message.java:368)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2103)
	at org.apache.axis.client.Call.invoke(Call.java:2073)
	at org.apache.axis.client.Call.invoke(Call.java:1287)
	at org.apache.axis.client.AdminClient.process(AdminClient.java:318)
	at org.apache.axis.client.AdminClient.process(AdminClient.java:297)
	at org.apache.axis.client.AdminClient.process(AdminClient.java:304)
	at org.apache.axis.client.AdminClient.process(AdminClient.java:255)
	at org.apache.axis.client.AdminClient.main(AdminClient.java:340)


May I do something?
Thank you.




Mime
View raw message