jQuery in Action, 2nd edition*
The moose likes Web Services and the fly likes Calling Axis2 WebService deployed on JBoss5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Calling Axis2 WebService deployed on JBoss5" Watch "Calling Axis2 WebService deployed on JBoss5" New topic

Calling Axis2 WebService deployed on JBoss5

Amir Kost

Joined: Aug 19, 2009
Posts: 8

I have an Axis2-1.4 web service deployed on JBoss 5.0. When I call the service from a client I get the following exception: java.net.ConnectException
Connection refused: connect

I can navigate to the WSDL, and if I call the server from the browser with GET it works, but I cannot call it from a client. When I deploy it on Tomcat it works fine.

Can anyone help?


Trilochan Bharadwaj
Ranch Hand

Joined: Feb 02, 2009
Posts: 100
this might help:
Deploying Axis on JBOSS

Unless you have already resolved the issue, if so care to post what was the problem and how was it solved? We might learn something new, who knows...


Addendum: Are you using "https" as opposed to "http", if so can you try without s and see if it makes a difference?
Amir Kost

Joined: Aug 19, 2009
Posts: 8
I solved the problem. The problem was that the generated client used my computer's IP address, and JBoss was configured to run on localhost. There are 2 ways to solve this:

1. The better solution is to make JBoss run on the IP address and not on localhost. This is done by using the parameter -b when running JBoss. For example : run.bat -b

2. For the lazy people among us, if you are using Eclipse's Web Services Explorer you can add an endpoint using localhost instead of the IP address.
I agree. Here's the link: http://aspose.com/file-tools
subject: Calling Axis2 WebService deployed on JBoss5
Similar Threads
axis2 session and .NET wcf
Axis2 wizard problems in eclipse
axis2/webshpere response != axis2/glassfish response........ why?
Axis2 on oc4j problem
Axis-2 (1.4) and NTLM