Thankfully I got a output to tomcat's console that reports this error when I
tried to deploy the service, which is at least a bone -

org.apache.axis.deployment.wsdd.WSDDNonFatalException: java.lang.ClassNotFoundEx
ception: flightCompany.bookFlights.rpcservice.model.FlightList
java.lang.ClassNotFoundException:
flightCompany.bookFlights.rpcservice.modelFlightList
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1407)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1252)
        at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:186)
        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.getLanguageSpecificTy
pe(WSDDTypeMapping.java:183)
 The only thing its only on the console out and not recorded in any of tomcat's
logs so I cant see the error that's befor it. I know that
flightCompany.bookFlights.rpcservice.modelFlightList is in a jar axis's lib
dir.
    And now looking at the generated deploy.wsdd below from wsdl2java I see
flightCompany.bookFlights.rpcservice.modelFlightList should be
flightCompany.bookFlights.rpcservice.mode.lFlightList (missing a dot) and a
more subtle space in type="java:
flightCompany.bookFlights.rpcservice.modelFlightList" just after java:
  I corrected this and lo and behold I've just deployed my service!!
  Why does axis stick in this sneaky space?


Quoting James Taylor <[EMAIL PROTECTED]>:

> Hi,
>    well I reinstalled axis to tomcat's webapp folder and was successfully
> able
> to deploy and undeploy a previous working web service but when I tried to
> deploy the listed service's wsdd file I got the same behaviour as before -
> adminClient saying everything was fine but the service is not listed and not
> in
> axis's server-config.wsdd and axis is not showing any errors like
> classNotFound
> or anything??!!
>    This is what my wsdd is like.
>    Regards,
>            James.
>
> <!-- 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 BookFlightsService WSDL service -->
>
>   <!-- define the logging handler configuration -->
>  <handler name="track" type="java:samples.userguide.example4.LogHandler">
>   <parameter name="filename" value="MyService.log"/>
>  </handler>
>
>
>   <service name="BookFlightsSOAPPort" provider="java:RPC" style="document"
> use="literal">
>       <parameter name="wsdlTargetNamespace"
> value="http://ie/tcd/taylorjw/flightbooking/wsdl"/>
>       <parameter name="wsdlServiceElement" value="BookFlightsService"/>
>       <parameter name="wsdlServicePort" value="BookFlightsSOAPPort"/>
>       <parameter name="className"
> value="flightCompany.bookFlights.rpcservice.BookFlightsSOAPBindingImpl"/>
>       <parameter name="wsdlPortType" value="IBookFlightsPort"/>
>       <operation name="bookFlights" qname="bookFlights"
> returnQName="retNS:bookFlightsResponse"
> xmlns:retNS="http://ie.tcd/taylorjw/flightbooking"; returnType="rtns:anyType"
> xmlns:rtns="http://www.w3.org/2001/XMLSchema"; soapAction="bookFlights" >
>         <parameter qname="pns:bookFlights"
> xmlns:pns="http://ie.tcd/taylorjw/flightbooking"; type="tns:anyType"
> xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
>       </operation>
>       <parameter name="allowedMethods" value="bookFlights"/>
>       <parameter name="scope" value="Session"/>
>
>       <typeMapping
>         xmlns:ns="http://ie.tcd/taylorjw/flightbooking";
>         qname="ns:Flight"
>         type="java: flightCompany.bookFlights.rpcservice.model.Flight"
>         serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
>         deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
>         encodingStyle=""
>       />
>       <typeMapping
>         xmlns:ns="http://ie.tcd/taylorjw/flightbooking";
>         qname="ns:Passenger"
>         type="java: flightCompany.bookFlights.rpcservice.model.Passenger"
>         serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
>         deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
>         encodingStyle=""
>       />
>       <typeMapping
>         xmlns:ns="http://ie.tcd/taylorjw/flightbooking";
>         qname="ns:Booking"
>         type="java: flightCompany.bookFlights.rpcservice.model.Booking"
>         serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
>         deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
>         encodingStyle=""
>       />
>       <typeMapping
>         xmlns:ns="http://ie.tcd/taylorjw/flightbooking";
>         qname="ns:flightList"
>         type="java: flightCompany.bookFlights.rpcservice.modelFlightList"
>         serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
>         deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
>         encodingStyle=""
>       />
>   </service>
> </deployment>
>
>
>
> Quoting James Taylor <[EMAIL PROTECTED]>:
>
> > I've tried to undeploy a registered service in axis using the adminClient
> and
> > it
> >  wouldn't work even though it reported back as done. I then removed the
> > service
> > manually from server-config.wsdd and started axis and it piked up the
> change
> > but when I tried to redeploy the service axis did not pick it up even
> though
> > the adminclient said the service was deployed. I again restarted axis
> several
> > times but could not get the service and looked in server-config.wsdd but
> the
> > service was not there. How might I resolve this?
> >
> > axisDeploy:
> >      [echo] doing deploy task...
> >      [java] Processing file
> > E:\taylorjwDocs\JavaProjects\Development\WorkingJAX
> > RPCmodel\src\flightCompany\bookFlights\rpcservice\deploy.wsdd
> >      [java] <Admin>Done processing</Admin>
> >      [echo] Done...
> >
>
>
> --
> Between the question and the answer lies free will
>


--
Between the question and the answer lies free will

Reply via email to