Tuesday, December 2, 2008

JBoss web service blocked

If you have a web service in JBoss of which you can access the WSDL but keep getting "connection refused" error when accessing the service, then the culprit is normally this:


C:\jboss-4.2.2.GA\bin\run.bat -b 0.0.0.0


or


C:\jboss-4.2.2.GA\bin\run.bat


A solution - at least what worked for me - was to use the actual IP of the machine like so:


C:\jboss-4.2.2.GA\bin\run.bat -b 192.168.1.11


Its funny how modifying JBoss startup scripts did not affect the "-b" option above. However specifying it on the command line works fine.