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?
Joined: Jan 31, 2011
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.
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.
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.
Joined: Sep 13, 2010
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.