Hello everybody,
I'm having trouble deploying my first webservice on Axis.  (I bet you hear 
that a lot).  Specifically, I get a 401:unauthorized error when I run 
AdminClient (or the ant task <axis-admin>).  The fine print in the error 
message says "Remote administration access not allowed".  This is strange 
because it is running on my local machine.

I searched the archives of this list, and I found some other people who 
had had the same problem.  There was a solution given that involved editing 
server-config.wsdd to allow remote administrator access.  But I would 
really prefer not to have to do that, as it's a security hole.  I really 
want to find out WHY Axis thinks I am attempting remote access when I am 
actually on the same machine.

I have searched the web and the Axis docs extensively to no avail.  They 
all seem to indicate that I'm doing everything right.  If anyone would be 
willing to help me out a bit here, I will love you forever.

 Details of my setup follow:

I am using Axis 1.1 running inside Tomcat 4.1.18.  It is running on port 
10081 instead of the usual 8080. The happyaxis.jsp page shows that all 
needed components are installed, and one optional piece is missing 
(org.apache.xml.security.Init).

The problem comes when I try to deploy a simple hello-world web service 
using a wsdd (which was generated using wsdl2java).  In ant, I try an 
axis-admin task, as follows:

 <axis-admin 
        port="10081"
        hostname="localhost"    
        xmlfile="./output/axisAutoSource/jono/subcreated/deploy.wsdd"
        debug="true"
        url="http://localhost:10081/services/AdminService";
        username="repotest"
        password="repotest"
        />

I have tried many, many variations on this.  I get the same result if I 
use hostname="localhost" and servletpath="axis/services/AdminService" 
instead of using a URL.  I also get the same result if I use the 
command line java org.apache.axis.client.AdminClient instead of ant.  I 
have done the obvious reality-checks, like making sure that Tomcat is 
running and that the path to deploy.wsdd is correct.

I also enabled the admin servlet by uncommenting the appropriate lines in
web.xml, but that didn't help.  If I go to 
http://localhost:10081/axis/servlet/AdminServlet, I see a page that just 
says:

Server is running

Current load = 1 


I guess I could also try editing server-config.wsdd by hand (i.e. copy it 
over from src/ and then copy the appropriate things into it from my 
deploy.wsdd.)  but I want to be able to deploy with an ant task 
instead of manually.

Thanks in advance, if you read this far!

Reply via email to