Jboss - mapping IP instead of localhost - works from within eclipse But not from run.bat without options -


i start jboss server within eclipse , able bind computer name [ ip address] , when try start using run.bat , binds 127.0.0.1 .

from run.bat :

*info  [webservice] using rmi server codebase : http://127.0.0.1:8083/* 

from within eclispe :

*info  [webservice] using rmi server codebase: http://myip:8083/*  

so eclipse uses different files , whereas run.bat uses separate ones .


my analysis :


when server starts , run.jar called , inside there main.class

c:\jboss-5.0.1.ga\jboss-5.0.1.ga\bin\run.jar

and in : org.jboss.main , sets property 127.0.0.1 :

this.props.setproperty("jboss.bind.address", "127.0.0.1"); system.setproperty("jboss.bind.address", "127.0.0.1"); 

then checks if option i.e. -b or else has been specified , if uses .

so understand , why jboss without options connects 127.0.0.1 , option connects specified ip .

but still cannot understand why eclipse connect ip . not specifying options , or maybe don't know . if can point me or maybe have own implementation of jboss , or different files set ??

the answer being can set in eclipse . guess got set server or default set .

enter image description here

and since set -b 0.0.0.0 .. works .

wel took me close 2 hours figure out . hope stumbles on quicker .

there lot of other threads , don't specify step .

hope helps .


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -