axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milli Marco" <Marco.Mi...@ud-neuemedien.ch>
Subject SPAM5:HTTP Error 401 deploying WSDD
Date Thu, 03 Aug 2006 13:54:36 GMT
Hello

I have recently added web service functionality to web application I
have been developing. 
I encountered no problems generating and deploying the new code in my
development environment. This was achieved by with the following Axis
tools: org.apache.axis.wsdl.Java2WSDL,
org.apache.axis.wsdl.toJava.Emitter, org.apache.axis.client.AdminClient.

The generated code was packed into a Jar file for deployment. These were
the steps taken: 

1. the jar was deployed alongside all Axis dependencies into the
Web-INF/lib directory of the webapp

2. all Axis entries were made in the web.xml of the webapp

3. the previously generated WSDD file was copied onto the target server

4. org.apache.axis.client.AdminClient was launched in a batch file with
the the following content (IP number replaced with x's):

set LOG4J_PROPERTIES_HOME=.
java -classpath
lib\axis.jar;lib\jaxrpc.jar;lib\log4j-1.2.8.jar;lib\commons-logging-1.0.
4.jar;lib\commons-discovery-0.2.jar;lib\saaj.jar;lib\wsdl4j-1.5.1.jar;;%
LOG4J_PROPERTIES_HOME% org.apache.axis.client.AdminClient deploy.wsdd
-lhttp://xxx.xxx.xxx.xxx/webapp/services/AdminService
set LOG4J_PROPERTIES_HOME=

I always get following response:

Processing file deploy.wsdd
Exception: AxisFault
 faultCode: {http://xml.apache.org/axis/}HTTP
 faultSubcode:
 faultString: (401)Unauthorized
 faultActor:
 faultNode:
 faultDetail:
        {}:return code:  401
&lt;?xml version=&quot;1.0&quot;
encoding=&quot;utf-8&quot;?&gt;&lt;soapenv:Enve
lope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;
xmlns:x
sd=&quot;http://www.w3.org/2001/XMLSchema&quot;
xmlns:xsi=&quot;http://www.w3.or
g/2001/XMLSchema-instance&quot;&gt;&lt;soapenv:Body&gt;&lt;soapenv:Fault
&gt;&lt;
faultcode
xmlns:ns1=&quot;http://xml.apache.org/axis/&quot;&gt;ns1:Server.Unauth
orized&lt;/faultcode&gt;&lt;faultstring&gt;Remote administrator access
is not al
lowed!&lt;/faultstring&gt;&lt;detail&gt;&lt;ns2:hostname
xmlns:ns2=&quot;http://
xml.apache.org/axis/&quot;&gt;pe2500-web01&lt;/ns2:hostname&gt;&lt;/deta
il&gt;&l
t;/soapenv:Fault&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;
        {http://xml.apache.org/axis/}HttpErrorCode:401

Does the cause lie in the setup of the target server, or is the
something faulty in my procedure?

Thank you very much for your help


Marco Milli


Mime
View raw message