You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by V D <st...@drexel.edu> on 2004/11/14 19:25:50 UTC

Cannot run AdminClient

Running axis 1.2 RC, when I deploy the attachment example, I got the 
follow error:

Processing file attachdeploy.wsdd
Exception: AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.net.ConnectException: Connection refused: connect
 faultActor:
 faultNode:
 faultDetail:
        
{http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Conne
ction refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
        at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
        at java.net.Socket.connect(Socket.java:452)
....

 From web browser, I can see the service running fine fine at:

http://localhost/axis/

Click on Validate, there's no error.

Go to the AdminServer:
http://localhost/axis/servlet/AdminServlet

It shows:


    Server is running

Current load = 1

When deploy the file, I did copy the classes in the attachment folder to 
the classes folder in the axis'app.  I also change the bat file's port 
8080 to port 80.

What could be the cause of the problem?

Thanks,

vh.






Re: Cannot run AdminClient

Posted by Vy Ho <st...@drexel.edu>.
>
> could you please show me, how you are doing that ?


Which one that you would like me to show?  How I run the Admin locally 
in the WEB-INF? Or the way I run the AdminClient?

For the Admin, first I copy all class files for the webservice into the 
class folder inside WEB-INF.  Next, copy the the deploy.wsdd generated 
by the Wsdl2Java to WEB-INF.  Next, I run this bat file under WEB-INF in 
the windows environment:

@echo off
set APATH="."
set 
CPATH=.;"%APATH%\lib\axis.jar";"%APATH%\lib\wsdl4j.jar";%APATH%\lib\commons-logging.jar;%APATH%\lib\log4j-1.2.8.jar;%APATH%\lib\commons-discovery.jar;%APATH%\lib\jaxrpc.jar;%APATH%\lib;%APATH%\lib\saaj.jar;%APATH%\lib\activation.jar;%APATH%\lib\mail.jar
c:\j2sdk1.4.0\bin\java -classpath %CPATH% org.apache.axis.utils.Admin 
server <mydeployfile>.wsdd

For the AdminClient, I make sure that the webserver that runs Axis's 
webservice is running.  Next, copy all webservice class files into the 
classes folder inside the WEB-INF.  Next, a folder where I have the 
generated wsdd file and all my class files, I call this bat file under 
windows environment:

@echo off
set APATH="C:\Tomcat\webapps\axis\WEB-INF"
set 
CPATH=.;"%APATH%\lib\axis.jar";"%APATH%\lib\wsdl4j.jar";%APATH%\lib\commons-logging.jar;%APATH%\lib\log4j-1.2.8.jar;%APATH%\lib\commons-discovery.jar;%APATH%\lib\jaxrpc.jar;%APATH%\lib;%APATH%\lib\saaj.jar;%APATH%\lib\activation.jar;%APATH%\lib\mail.jar
c:\j2sdk1.4.0\bin\java -classpath %CPATH% 
org.apache.axis.client.AdminClient <mydeploy file>.wsdd

Please note that the 2nd method, using AdminClient did not work for me.  
The first method works with the attacment example shipped with axis, but 
also failed with my case.  I manually copied the <service> </service> 
text inside my wsdd file and pasted into the config file inside WEB-INF 
and it all works now, although it's not be best way to do it.





Re: Cannot run AdminClient

Posted by hans lux <ld...@lohndirekt.de>.
Vy Ho wrote:

> This is really strange isn't it?  Followed some instruction on the 
> web, I was able to generate deployed information directly in the 
> config file (run Admin in the WEB-INF).  This method modify the config 
> file directly, and not using the web interface.  This works for the 
> attachment example.  However, come to my deployment file, it chokes.  
> No error though. It says successfully, but when open the config file, 
> I don't see any new service added.  One difference I notice between my 
> file and the attachment example was that my deploy file has 3 port 
> types (3 services) in a same file.  So, I just open the config file, 
> and my deploy file, and copy and paste over the service declarations.  
> This is fine for one shot, but I don't think it's a good way of doing 
> things.  Please someone shed somelight.  I start to think the Admin 
> and the AdminClient has some serious bug here.

could you please show me, how you are doing that ?

Re: Cannot run AdminClient

Posted by Vy Ho <st...@drexel.edu>.
This is really strange isn't it?  Followed some instruction on the web, 
I was able to generate deployed information directly in the config file 
(run Admin in the WEB-INF).  This method modify the config file 
directly, and not using the web interface.  This works for the 
attachment example.  However, come to my deployment file, it chokes.  No 
error though. It says successfully, but when open the config file, I 
don't see any new service added.  One difference I notice between my 
file and the attachment example was that my deploy file has 3 port types 
(3 services) in a same file.  So, I just open the config file, and my 
deploy file, and copy and paste over the service declarations.  This is 
fine for one shot, but I don't think it's a good way of doing things.  
Please someone shed somelight.  I start to think the Admin and the 
AdminClient has some serious bug here.