axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <dexterw...@iwon.com>
Subject RE: Problem deploying webservice- can't find Deserializer
Date Tue, 12 Jul 2005 16:53:31 GMT

Hi,
I have some questions:

What version of jboss are you using?
How are you creating the web services .NET or .WS

 --- On Tue 07/12, Barry Fitzgerald < barfitzgerald@gmail.com > wrote:
From: Barry Fitzgerald [mailto: barfitzgerald@gmail.com]
To: axis-user@ws.apache.org
Date: Tue, 12 Jul 2005 16:11:54 +0100
Subject: Problem deploying webservice- can't find Deserializer

Hi all,<br><br>I've been using axis 1.2 with JBoss for a while now but have seemed
to<br>come up against a brick wall. After using wsdl2java on a custom built<br>wsdl
I have tried to deploy the webservice using the AdminClient.<br><br>The AdminClient
fails with an java.lang.reflect.InvocationTargetException<br><br>By just copying
the relevant part of the deploy.wsdd into the axis<br>server_config.wsdd file and restarting
my application server (JBoss<br>4.0.2). I get the following error:<br><br>15:42:48,823
INFO  [TomcatDeployer] deploy, ctxPath=/axis,<br>warUrl=file:/C:/jboss/jboss-4.0.2RC1/server/default/deploy/axis.war/<br>15:42:52,659
ERROR [[/axis]] StandardWrapper.Throwable<br>java.lang.NoClassDefFoundError: org/apache/axis/encoding/Deserializer<br>
at java.lang.Class.forName0(Native Method)<br>	at java.lang.Class.forName(Class.java:219)<br>
at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:176)<br>	at java.security.AccessController.doPrivileged(Native

Method)<br>	at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)<br>
at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)<br>	at org.apache.axis.deployment.wsdd.WSDDTypeMapping.getLanguageSpecificType(WSDDTypeMapping.java:183)<br>
at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:534)<br>
at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:245)<br>	at
org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:225)<br>	at
org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:191)<br>
at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139)<br>Etc…<br><br>While
this looks like a simple classpath issue I have tried everything<br>I can think of (and
every google and mailing list search I can think<br>of) I've added the axis jars to
the classpath of the jboss install<br>(using the jboss ide for eclipse) and to the tomcat
plugin lib<br>directory. The 
happy axis pages works fine and so do simple web<br>services that require no serialization.<br><br>If
anyone could help with this I'd be very grateful. I've pasted the<br>relevant part of
the wsdd and the wsdl below.<br><br>Thanks,<br><br>Barry<br><br><br><br><br><!--
Services from fulfilOrderService WSDL service --><br><br>  <service name="fulfilOrderPort"
provider="java:RPC" style="document"<br>use="literal"><br>      <parameter
name="wsdlTargetNamespace"<br>value="http://new.webservice.namespace"/><br>
     <parameter name="wsdlServiceElement" value="fulfilOrderService"/><br>   
  <parameter name="wsdlServicePort" value="fulfilOrderPort"/><br>      <parameter
name="className"<br>value="namespace.webservice._new.FulfilOrderBindingImpl"/><br>
     <parameter name="wsdlPortType" value="fulfilOrderPort"/><br>      <parameter
name="typeMappingVersion" value="1.2"/><br>      <operation name="fulfilOrder"

qname="fulfilOrder"<br>returnQName="retNS:FulfilmentRequestSummary"<br>xmlns:retNS="http://new.webservice.namespace"<br>returnType="rtns:FulfilmentRequestType"<br>xmlns:rtns="http://new.webservice.namespace"
><br>        <parameter qname="pns:SalesOrder"<br>xmlns:pns="http://new.webservice.namespace"
type="tns:SalesOrderType"<br>xmlns:tns="http://new.webservice.namespace"/><br>
       <fault name="fulfilOrderFault" qname="fns:SOAFault"<br>xmlns:fns="http://new.webservice.namespace"<br>class="namespace.webservice._new.SOAFaultType"
type="tns:SOAFaultType"<br>xmlns:tns="http://new.webservice.namespace"/><br>
     </operation><br>      <parameter name="allowedMethods" value="fulfilOrder"/><br>
     <parameter name="scope" value="Application"/><br><br>      <typeMapping<br>
       xmlns:ns="http://new.webservice.namespace"<br>        qname="ns:SalesOrderType"<br>
       type="java:namespace.webservice._new.SalesOrderType"<br>        
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"<br>        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"<br>
       encodingStyle=""<br>      /><br>      <typeMapping<br>    
   xmlns:ns="http://new.webservice.namespace"<br>        qname="ns:CustomerType"<br>
       type="java:namespace.webservice._new.CustomerType"<br>        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"<br>
       deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"<br>     
  encodingStyle=""<br>      /><br>      <typeMapping<br>        xmlns:ns="http://new.webservice.namespace"<br>
       qname="ns:FulfilmentRequestType"<br>        type="java:namespace.webservice._new.FulfilmentRequestType"<br>
       serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"<br>        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"<br>
       encodingStyle=""<br>      /><br>      <typeMapping<br>    
   
xmlns:ns="http://new.webservice.namespace"<br>        qname="ns:AddressType"<br>
       type="java:namespace.webservice._new.AddressType"<br>        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"<br>
       deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"<br>     
  encodingStyle=""<br>      /><br>      <typeMapping<br>        xmlns:ns="http://new.webservice.namespace"<br>
       qname="ns:SOAFaultType"<br>        type="java:namespace.webservice._new.SOAFaultType"<br>
       serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"<br>        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"<br>
       encodingStyle=""<br>      /><br>      <typeMapping<br>    
   xmlns:ns="http://new.webservice.namespace"<br>        qname="ns:LineItemGroupType"<br>
       type="java:namespace.webservice._new.LineItemGroupType"<br>        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"<br>
       
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"<br>        encodingStyle=""<br>
     /><br>      <typeMapping<br>        xmlns:ns="http://new.webservice.namespace"<br>
       qname="ns:LineItemType"<br>        type="java:namespace.webservice._new.LineItemType"<br>
       serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"<br>        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"<br>
       encodingStyle=""<br>      /><br>  </service><br><br><br>WSDL:<br><br><br><?xml
version="1.0" encoding="UTF-8"?><br><definitions xmlns="http://schemas.xmlsoap.org/wsdl/"<br>xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"<br>xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"<br>xmlns:xs="http://www.w3.org/2001/XMLSchema"<br>xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"<br>xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"<br>xmlns:y="http://new.webservice.namespace"<br>targetNamespace="http://new.webservice.namespace"><br>

<types><br>		<xs:schema targetNamespace="http://new.webservice.namespace"><br>
		<xs:element name="SalesOrder" type="y:SalesOrderType"/><br>			<xs:complexType
name="AddressType"><br>				<xs:sequence><br>					<xs:element name="addressLine1"
type="xs:string"/><br>					<xs:element name="addressLine2" type="xs:string"/><br>
				<xs:element name="addressLine3" type="xs:string"/><br>					<xs:element
name="addressLine4" type="xs:string"/><br>					<xs:element name="postcode" type="xs:string"/><br>
			</xs:sequence><br>			</xs:complexType><br>			<xs:complexType
name="CustomerType"><br>				<xs:sequence><br>					<xs:element name="customerID"
type="xs:string"/><br>					<xs:element name="title" type="xs:string"/><br>
				<xs:element name="initial" type="xs:string"/><br>					<xs:element name="familyName"
type="xs:string"/><br>					<xs:element name="emailAddress" type="xs:string"/><br>
				<xs:element name="notificationChannel" type="xs:string"/><br>					<xs:element

name="notificationFormat" type="xs:string"/><br>				</xs:sequence><br>
		</xs:complexType><br>			<xs:complexType name="LineItemType"><br>
			<xs:sequence><br>					<xs:element name="orderLineNo" type="xs:integer"/><br>
				<xs:element name="productID" type="xs:string"/><br>					<xs:element name="quantity"
type="xs:integer"/><br>				</xs:sequence><br>			</xs:complexType><br>
		<xs:complexType name="LineItemGroupType"><br>				<xs:sequence><br>
				<xs:element name="lineItem" type="y:LineItemType" maxOccurs="unbounded"/><br>
			</xs:sequence><br>			</xs:complexType><br>			<xs:complexType
name="SalesOrderType"><br>				<xs:sequence><br>					<xs:element name="orderID"
type="xs:string"/><br>					<xs:element name="dateCreated" type="xs:date"/><br>
				<xs:element name="status" type="xs:string"/><br>					<xs:element name="customer"
type="y:CustomerType"/><br>					<xs:element name="lineItems" type="y:LineItemGroupType"/><br>
				<xs:element name="shipToAddress" 
type="y:AddressType"/><br>					<xs:element name="billToAddress" type="y:AddressType"/><br>
			</xs:sequence><br>			</xs:complexType><br>			<xs:element name="FulfilmentRequestSummary"
type="y:FulfilmentRequestType"/><br>			<xs:complexType name="FulfilmentRequestType"><br>
			<xs:sequence><br>					<xs:element name="fulfilmentRequestID" type="xs:string"/><br>
				<xs:element name="dateCreated" type="xs:date"/><br>					<xs:element name="status"
type="xs:string"/><br>				</xs:sequence><br>			</xs:complexType><br>
		<xs:element name="SOAFault" type="y:SOAFaultType"/><br>			<xs:complexType
name="SOAFaultType"><br>				<xs:sequence><br>					<xs:element name="errorCode"
type="xs:string"/><br>					<xs:element name="errorDescription" type="xs:string"/><br>
				<xs:element name="errorDate" type="xs:date"/><br>					<xs:element name="errorTime"
type="xs:time"/><br>				</xs:sequence><br>			</xs:complexType><br>
	</xs:schema><br>	</types><br>	<message name="fulfilOrderRequest"><br>
	<part 
name="request" element="y:SalesOrder"/><br>	</message><br>	<message
name="fulfilOrderResponse"><br>		<part name="response" element="y:FulfilmentRequestSummary"/><br>
</message><br>	<message name="fulfilOrderFault"><br>		<part name="fault"
element="y:SOAFault"/><br>	</message><br>	<portType name="fulfilOrderPort"><br>
	<operation name="fulfilOrder"><br>			<input message="y:fulfilOrderRequest"/><br>
		<output message="y:fulfilOrderResponse"/><br>			<fault name="fulfilOrderFault"
message="y:fulfilOrderFault"/><br>		</operation><br>	</portType><br>
<binding name="fulfilOrderBinding" type="y:fulfilOrderPort"><br>		<soap:binding
style="document"<br>transport="http://schemas.xmlsoap.org/soap/http"/><br>
	<operation name="fulfilOrder"><br>			<soap:operation/><br>			<input><br>
			<soap:body use="literal"/><br>			</input><br>			<output><br>
			<soap:body use="literal"/><br>			</output><br>			<fault name="fulfilOrderFault"><br>
			<soap:fault name="fulfilOrderFault" use="literal"/><br>
 	
		</fault><br>		</operation><br>	</binding><br>	<service
name="fulfilOrderService"><br>		<port name="fulfilOrderPort" binding="y:fulfilOrderBinding"><br>
		<soap:address location="http://localhost:8080/warehouse1/fulfillorder"/><br>
	</port><br>	</service><br></definitions><br>

_______________________________________________



Mime
View raw message