My JBoss server is running on port 80. I'm using the AdminClient class for deploying and because I think that AmindClient is using by default the port 8080, I have used the code:
AdminClient admin = new AdminClient(); Call call = admin.getCall(); call.setTargetEndpointAddress("http://localhost:80/axis/servic es/AdminService" ); String result = admin.process(new String[] { "deploy.wsdd" });
but still I'm receiving AxisFault exception, Connection refused: connect.
I have tried in the console to run the AdminClient:
and I'm receiving NullPointerException, but no "connect exception". Can someone tell me how can I change the port in the code and how can I make to not receive any more the AxisFault exception? Thanks