File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes unable to make connection to jboss under eclipse when using external IP address Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "unable to make connection to jboss under eclipse when using external IP address" Watch "unable to make connection to jboss under eclipse when using external IP address" New topic
Author

unable to make connection to jboss under eclipse when using external IP address

Bonnie Kenison
Greenhorn

Joined: Jan 31, 2011
Posts: 7
I am running JBoss 5.1.0 GA. When I start up jboss in a command window ( run -b 0.0.0.0), I can bring up my application via http://localhost:8080 OR via http://<my computers ip>:8080. However, when I run JBoss 5.1.0 inside Eclipse (so I can debug), my application only loads using localhost. I am using Eclipse Helios SR1. I have found the server's view for Jboss-5.1.0.GA. When I click on the "launch configuration" link, I can see the parameters used to start up jboss. The defaults are "--configuration=default -b localhost". If I try to switch from -b localhost to -b 0.0.0.0, it won't take.

Can Eclipse only debug in localhost mode?

Bonnie Kenison
Greenhorn

Joined: Jan 31, 2011
Posts: 7
Nevermind. I see that clicking "Apply" does not really apply the changes. I have to click "Apply" AND quit the servers view and opt to save. If I click to view the launch settings before doing all of that, they revert to the defaults. I am happily debugging with an external IP address, thanks anyway.
Csaba Toth
Greenhorn

Joined: Sep 13, 2010
Posts: 6
I noticed the Apply button right away, but that doesn't work for me. I cannot start JBoss properly if I specify a bind IP address: JBoss seems up and running, but Eclipse's JBoss plugin doesn't see it running (it's in the "Starting..." state forever, and eventually it shuts the instance down because of the timeout; note: I know how to set the timeout), and also when I start any EJB operation my enterprise application pukes. Localhost works fine, but that doesn't make me happy, I need to access the debugged JBoss instance from an external application, and my JBoss is not visible unless I bind it to my external IP address.

My questions:
1. First of all: why should I specify a bind address manually with the "-b" switch in the "Open launch configuration"'s "Argument" tab if there's an "Address" field right away on the "Server Properties" section on the main page of the server configuration. It seems that that latter Address field is just ignored, but why is it there then? -> that's why I had to dig into the "Open launch configuration". Any thoughts?
2. I try to debug a JBoss 5.1.0.GA-jdk6. When I say New Server in the Server view I select JBoss 5.0 server type. I cannot see specific type for 5.1, is this OK?
Right now I'm using Indigo J2EE Edition with m2e plugin.

Any help would be appreciated.
Csaba Toth
Greenhorn

Joined: Sep 13, 2010
Posts: 6
I forgot to install JBoss Tools. After that I have server configuration profile for 5.1 too. However after start it still cannot sense the JBoss started. Fortunately there's a pop-up setting how the plugin should poll the presence of the server, if I set this to JMX from "port", the plugin can sense the server and acknowledge that it started. I still need to try EJB communication if it will screw up anything.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: unable to make connection to jboss under eclipse when using external IP address