facebook

Running JBoss, _not_ restricted to 127.0.0.1

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #270371 Reply

    nalbion
    Member

    Until I upgraded from JBoss 4.0.5 to 4.2.0 and MyEclipse 5.1 to 5.5 I was able to deploy my web app to local host, and then browse to it at 127.0.0.1:8080 or 192.168.1.1:8080 or myRealAddress:8080. Now, all that works is 127.0.0.1:8080.

    I’m not sure if it’s a JBoss problem or a myEclipse problem, but surely it should be something I can set using myEclipse?

    #270397 Reply

    Riyad Kalla
    Member

    This is likely a JBoss setting somewhere. MYEclipse doesn’t set any of this information, it simply runs the main class of the app server and connects the debugger to it.

    #270414 Reply

    nalbion
    Member

    I’ve discovered that (probably right from the start) the problem has been with my workspace
    (C:\Documents and Settings\nick\workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings).

    If I open a new workspace, I’m able to set the Application Server properties using the MyEclipse GUI, but if I open the old workspace the Application Servers menu won’t open. To acheive my objective, I could edit the file “com.genuitec.eclipse.easie.jboss4.prefs” and add/set the line “SERVER_STARTUP_ARG=-c default -b 0.0.0.0”.

    I haven’t had a chance to test this yet, but I’m pretty confident I’m on the right track. Obviously, I’d much prefer to be able to use the MyEclipse GUI to make these changes rather than go hunting for the text files.

    #270455 Reply

    Steve Prior
    Member

    I was just chasing this last night.

    The behavior of JBoss changed with version 4.2.0 to only accept connections from localhost by default for security reasons. The -b option overrides this and allows you to specify the bind to address. So the correct way to work around this is to go to the JBoss config screen in MyEclipse and set the optional program arguments to -b <address>. Why you can’t get to that option with your old workspace would be a MyEclipse issue.

    #270474 Reply

    Riyad Kalla
    Member

    sprior,
    Thank you for the followup… I wasn’t even aware of this change in JBoss 4.2.0

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Running JBoss, _not_ restricted to 127.0.0.1

You must be logged in to post in the forum log in