axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anna Chen <yc...@jgsullivan.com>
Subject RE: Deploy error...
Date Mon, 29 Jul 2002 21:12:26 GMT
Here is the wsdl file:

<?xml version="1.0" ?>
<definitions name="urn:UpdatePrice"
   targetNamespace="urn:webservices.ha.com"
   xmlns:tns="urn:webservices.ha.com"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
   xmlns:typens="urn:webservices.ha.com-type"
   xmlns="http://schemas.xmlsoap.org/wsdl/"
   >

<types>
   <schema targetNamespace="urn:webservices.ha.com-type"
xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
     <complexType name="item">
         <all>
             <element name="sku" type="xsd:string"/>
             <element name="price" type="xsd:double"/>
         </all>
       </complexType>
     <complexType name="items">
                 <all>
                          <element name="item" type="typens:item" 
minOccurs="0" maxOccurs="unbounded"/>
                 </all>
     </complexType>
   </schema>
</types>

<message name="GetProductDataRequest">
  <part name="items" type="typens:items"/>
</message>

<message name="GetProductDataResponse">
   <part name="result" type="xsd:boolean"/>
</message>

<portType name="BrandsDirectCollab">
   <operation name="getProductData">
<input message="tns:GetProductDataRequest"/>
<output message="tns:GetProductDataResponse"/>
   </operation>
</portType>

<binding name="BrandsDirectCollabSOAPBinding" type="tns:BrandsDirectCollab">
   <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
   <operation name="getProductData">
              <soap:operation soapAction=""/>
                 <input>
                   <soap:body use="encoded"
                      namespace="urn:webservices.ha.com"
                      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                 </input>
                 <output>
                   <soap:body use="encoded"
                      namespace="urn:webservices.ha.com"
                      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                 </output>
    </operation>
</binding>
<service name="BrandsDirectCollabService">
    <port name="BrandsDirectCollab" 
binding="tns:BrandsDirectCollabSOAPBinding">
<soap:address location="http://localhost:8080/axis/servlet/AxisServlet"/>
</port>
</service>
</definitions>



And here is the deploy.wsdd file:

<!-- 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 BrandsDirectCollabService WSDL service -->

   <service name="BrandsDirectCollab" provider="java:RPC">
       <parameter name="className" 
value="com.ha.webservices.BrandsDirectCollabSOAPBindingSkeleton"/>
       <parameter name="allowedMethods" value="*"/>

       <typeMapping
         xmlns:ns="urn:webservices.ha.com-type"
         qname="ns:item"
         type="java:com_type.ha.webservices.Item"
         serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
         deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
         encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
       />
       <typeMapping
         xmlns:ns="urn:webservices.ha.com-type"
         qname="ns:items"
         type="java:com_type.ha.webservices.Items"
         serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
         deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
         encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
       />
   </service>
</deployment>

The command is:

java org.apache.axis.client.AdminClient 
-lhttp://localhost:8080/axis/services/AdminService deploy.wsdd


Thanks!!!

Anna






At 04:03 PM 7/29/2002 -0500, you wrote:
>what's the command that you are running look like?
>-----Original Message-----
>From: Anna Chen [mailto:ychen@jgsullivan.com]
>Sent: Monday, July 29, 2002 4:09 PM
>To: axis-user@xml.apache.org
>Subject: Deploy error...
>
>Hi, does anyone know why I am getting this kind of error? Thanks
>
>Sorry, something seems to have gone wrong... here are the details:
>Fault - java.lang.NullPointerException
>AxisFault
>  faultCode: {http://xml.apache.org/axis/}Server.userException
>  faultString: java.lang.NullPointerException
>  faultActor: null
>  faultDetail:
>         stackTrace: java.lang.NullPointerException
>         at 
> org.apache.axis.description.ServiceDesc.createOperationForMethod(ServiceDesc.java:789)

>
>         at 
> org.apache.axis.description.ServiceDesc.createOperationsForName(ServiceDesc.java:719)

>
>         at 
> org.apache.axis.description.ServiceDesc.getSyncedOperationsForName(ServiceDesc.java:699)

>
>         at 
> org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection(ServiceDesc.java:571)

>
>         at 
> org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection(ServiceDesc.java:547)

>
>         at 
> org.apache.axis.description.ServiceDesc.getOperations(ServiceDesc.java:325)
>         at 
> org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:591)
>         at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:310)
>         at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:216)
>         at 
> org.apache.axis.providers.java.JavaProvider.generateWSDL(JavaProvider.java:426) 
>
>         at 
> org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:72)
>         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
>         at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:137)
>         at 
> org.apache.axis.handlers.soap.SOAPService.generateWSDL(SOAPService.java:342)
>         at 
> org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:485)
>         at 
> org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:346)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

>
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

>
>         at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) 
>
>         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:190) 
>
>         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:2347)
>         at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>         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:468)
>         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:174) 
>
>         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:1027) 
>
>         at 
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
>         at java.lang.Thread.run(Thread.java:484)
>
>
>




Mime
View raw message