wood burning stoves 2.0*
The moose likes Web Services and the fly likes Not able to redeploy my web service in eclipse 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 redeploy my web service in eclipse" Watch "Not able to redeploy my web service in eclipse" New topic
Author

Not able to redeploy my web service in eclipse

Kacee Saxena
Ranch Hand

Joined: Mar 04, 2008
Posts: 54
Hello Friends,

I am not able to re-deploy my web service in eclipse 3.5. When i launch it for the first time (Run on server option ) it works fine. But successive deployments are not working.
It errors out saying -

description The requested resource (/testService2/) is not available.
HTTP Status 404 - /testService2/

Thsi is my deploy.wsdd file (wsdl)
==================
<code>

<?xml version="1.0" encoding="UTF-8"?><!-- 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 HelloServiceService WSDL service -->

<service name="HelloService" provider="java:RPC" style="wrapped" use="literal">
<parameter name="wsdlTargetNamespace" value="http://test.com"/>
<parameter name="wsdlServiceElement" value="HelloServiceService"/>
<parameter name="schemaQualified" value="http://test.com"/>
<parameter name="wsdlServicePort" value="HelloService"/>
<parameter name="className" value="com.test.HelloService"/>
<parameter name="wsdlPortType" value="HelloService"/>
<parameter name="typeMappingVersion" value="1.2"/>
<operation xmlnsperNS="http://test.com" xmlns:retNS="http://test.com" xmlns:rtns="http://www.w3.org/2001/XMLSchema" name="getName" qname="operNS:getName" returnQName="retNS:getNameReturn" returnType="rtns:string" soapAction="">
<parameter xmlns:pns="http://test.com" xmlns:tns="http://www.w3.org/2001/XMLSchema" qname="pns:name" type="tns:string"/>
</operation>
<parameter name="allowedMethods" value="getName"/>

</service>
</deployment>

</code>

What am i missing ?

I created another test webservice, facing same problem with it as well.

Please help

R Srini
Ranch Hand

Joined: Feb 19, 2010
Posts: 215
Hi. In case you are using Axis 1.5.1 - I had the same problem (don't remember what I had to do to fix it) when using Axis 1.5.1 with Eclipse. The Axis tools in Eclipse support Axis 1.4. So I had to use Axis 1.4 for it to work with Eclipse tooling.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to redeploy my web service in eclipse
 
Similar Threads
org.xml.sax.SAXException: SimpleDeserializer encountered a child element
The AXIS engine could not find a target service to invoke
Why XSL failed to transform the XML when root node has namespace defined?
Axis Complex Type
deploy.wsdd AxisFault