NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

setting jboss bind address

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Louis Botterill
Posted via mailing list.





PostPosted: Fri Jun 06, 2008 9:23 am    Post subject: setting jboss bind address Reply with quote

Hi, by default jboss seems to bind to localhost. It uses the {jboss.bind.address} property for it's config. I need it to bind to a physical interface but when I start it in debug from the ide I'm having trouble setting it with a value it will obey.

Reading the docs it seemed I should be able to override the bind address using a jvm argument in the jboss server configuration, such as:

-Djboss.bind.address=0.0.0.0

but that seems to have no effect.

If I do the same, starting jboss from the command line with the -b flag - it works just fine, but then if I want to auto deploy / debug from netbeans it shuts down the already running jboss and starts a new one, this losing the setting I need.

Is this the right way to do it, is it a plain old bug, maybe the jvm options aren't being passed through perhaps?

thanks for any advice or assistance Smile
Back to top
Kurt Olsen
Posted via mailing list.





PostPosted: Fri Jun 06, 2008 9:45 pm    Post subject: setting jboss bind address Reply with quote

Hi,

Try the --host 127.0.0.1 style syntax on the command line for jboss, to
paraphrase:

java org.jboss.Main --host YourHostIpAddrHere

Hope this helps,
Kurt


Louis Botterill wrote:
Quote:
Hi, by default jboss seems to bind to localhost. It uses the
{jboss.bind.address} property for it's config. I need it to bind to a
physical interface but when I start it in debug from the ide I'm
having trouble setting it with a value it will obey.

Reading the docs it seemed I should be able to override the bind
address using a jvm argument in the jboss server configuration, such as:

-Djboss.bind.address=0.0.0.0 <http://0.0.0.0>

but that seems to have no effect.

If I do the same, starting jboss from the command line with the -b
flag - it works just fine, but then if I want to auto deploy / debug
from netbeans it shuts down the already running jboss and starts a new
one, this losing the setting I need.

Is this the right way to do it, is it a plain old bug, maybe the jvm
options aren't being passed through perhaps?

thanks for any advice or assistance Smile
Back to top
George Stoianov
Posted via mailing list.





PostPosted: Mon Jun 09, 2008 5:12 pm    Post subject: setting jboss bind address Reply with quote

This should answer your question:

http://wiki.jboss.org/wiki/JBossRunParameters

On Fri, Jun 6, 2008 at 5:44 PM, Kurt Olsen
<kolsen@concentris-systems.com> wrote:
Quote:
Hi,

Try the --host 127.0.0.1 style syntax on the command line for jboss, to
paraphrase:

java org.jboss.Main --host YourHostIpAddrHere

Hope this helps,
Kurt


Louis Botterill wrote:
Quote:

Hi, by default jboss seems to bind to localhost. It uses the
{jboss.bind.address} property for it's config. I need it to bind to a
physical interface but when I start it in debug from the ide I'm having
trouble setting it with a value it will obey.

Reading the docs it seemed I should be able to override the bind address
using a jvm argument in the jboss server configuration, such as:

-Djboss.bind.address=0.0.0.0 <http://0.0.0.0>

but that seems to have no effect.

If I do the same, starting jboss from the command line with the -b flag -
it works just fine, but then if I want to auto deploy / debug from netbeans
it shuts down the already running jboss and starts a new one, this losing
the setting I need.

Is this the right way to do it, is it a plain old bug, maybe the jvm
options aren't being passed through perhaps?

thanks for any advice or assistance :)


Back to top
Louis Botterill
Posted via mailing list.





PostPosted: Mon Jun 09, 2008 7:01 pm    Post subject: setting jboss bind address Reply with quote

hi,

thanks for the help. Excuse my ignorance but how would I set that parameter so that it gets passed to the start script when Netbeans starts the app server?

I see in the server config I can pass additional JVM options, which is where I tried the system property but where do I set arguments to the launch script?

sorry if I'm being stupid, I just haven't seen where to set it yet Smile


2008/6/9 George Stoianov <gstoyanoff@gmail.com (gstoyanoff@gmail.com)>:
Quote:
This should answer your question:

http://wiki.jboss.org/wiki/JBossRunParameters


On Fri, Jun 6, 2008 at 5:44 PM, Kurt Olsen
<kolsen@concentris-systems.com (kolsen@concentris-systems.com)> wrote:
Quote:
Hi,

Try the --host 127.0.0.1 style syntax on the command line for jboss, to
paraphrase:

java org.jboss.Main --host YourHostIpAddrHere

Hope this helps,
Kurt


Louis Botterill wrote:
Quote:

Hi, by default jboss seems to bind to localhost. It uses the
{jboss.bind.address} property for it's config. I need it to bind to a
physical interface but when I start it in debug from the ide I'm having
trouble setting it with a value it will obey.

Reading the docs it seemed I should be able to override the bind address
using a jvm argument in the jboss server configuration, such as:

-Djboss.bind.address=0.0.0.0 <http://0.0.0.0>

but that seems to have no effect.

If I do the same, starting jboss from the command line with the -b flag -
it works just fine, but then if I want to auto deploy / debug from netbeans
it shuts down the already running jboss and starts a new one, this losing
the setting I need.

Is this the right way to do it, is it a plain old bug, maybe the jvm
options aren't being passed through perhaps?

thanks for any advice or assistance Smile





Back to top
George Stoianov
Posted via mailing list.





PostPosted: Wed Jun 11, 2008 6:17 pm    Post subject: setting jboss bind address Reply with quote

I am not sure what OS you are using but on lunix you just need to do:
run.sh -b <host-name>

I assume the run.bat will function the same way. Give it a try.
Regards,
George

On Mon, Jun 9, 2008 at 3:00 PM, Louis Botterill
<chillipower.uk@gmail.com> wrote:
Quote:
hi,

thanks for the help. Excuse my ignorance but how would I set that parameter
so that it gets passed to the start script when Netbeans starts the app
server?

I see in the server config I can pass additional JVM options, which is where
I tried the system property but where do I set arguments to the launch
script?

sorry if I'm being stupid, I just haven't seen where to set it yet :)


2008/6/9 George Stoianov <gstoyanoff@gmail.com>:
Quote:

This should answer your question:

http://wiki.jboss.org/wiki/JBossRunParameters

On Fri, Jun 6, 2008 at 5:44 PM, Kurt Olsen
<kolsen@concentris-systems.com> wrote:
Quote:
Hi,

Try the --host 127.0.0.1 style syntax on the command line for jboss, to
paraphrase:

java org.jboss.Main --host YourHostIpAddrHere

Hope this helps,
Kurt


Louis Botterill wrote:
Quote:

Hi, by default jboss seems to bind to localhost. It uses the
{jboss.bind.address} property for it's config. I need it to bind to a
physical interface but when I start it in debug from the ide I'm having
trouble setting it with a value it will obey.

Reading the docs it seemed I should be able to override the bind
address
using a jvm argument in the jboss server configuration, such as:

-Djboss.bind.address=0.0.0.0 <http://0.0.0.0>

but that seems to have no effect.

If I do the same, starting jboss from the command line with the -b flag
-
it works just fine, but then if I want to auto deploy / debug from
netbeans
it shuts down the already running jboss and starts a new one, this
losing
the setting I need.

Is this the right way to do it, is it a plain old bug, maybe the jvm
options aren't being passed through perhaps?

thanks for any advice or assistance :)




Back to top
Louis Botterill
Posted via mailing list.





PostPosted: Wed Jun 11, 2008 9:17 pm    Post subject: setting jboss bind address Reply with quote

ok thanks. Yes run.bat and run.sh do function the same way in that respect and the -b option works fine in stand alone mode without any issue.

The problem I had with that is that, if I start jboss externally from the command line to pass that command line argument - when I come to launch my web app for debugging the IDE closes the running JBoss so it can start a new one - and this then loses the arguments. So my question was, were can I set that such that it's passed to the start script. I guess I could edit the start script but I'd rather not do this if possible.
Back to top
George Stoianov
Posted via mailing list.





PostPosted: Thu Jun 12, 2008 3:26 pm    Post subject: setting jboss bind address Reply with quote

On Wed, Jun 11, 2008 at 5:16 PM, Louis Botterill
<chillipower.uk@gmail.com> wrote:
Quote:
ok thanks. Yes run.bat and run.sh do function the same way in that respect
and the -b option works fine in stand alone mode without any issue.

The problem I had with that is that, if I start jboss externally from the
command line to pass that command line argument - when I come to launch my
web app for debugging the IDE closes the running JBoss so it can start a new
one - and this then loses the arguments. So my question was, were can I set
that such that it's passed to the start script. I guess I could edit the
start script but I'd rather not do this if possible.



I do not see an option in NB to do that though I am clicking on server
and Properties, so to me the script is the only option... There is a
box for VM options check if that will work provided those are provided
to the run script, which they should be.... I think
Back to top
Louis Botterill
Posted via mailing list.





PostPosted: Thu Jun 12, 2008 4:15 pm    Post subject: setting jboss bind address Reply with quote

That's the weird thing, the JVM options that are supposed to work (setting the properties) didn't seem to work for me Sad

I'd much prefer that to fiddling with the start script really.

I might try again later, it really should work unless somehow the JVM args are lost and not passed to the jvm or something in the start script overrides them - which takes me back to the start of this posting really - why doesn't it work like I'd expect?
Back to top
Kurt Olsen
Posted via mailing list.





PostPosted: Thu Jun 12, 2008 6:32 pm    Post subject: setting jboss bind address Reply with quote

Because proper attention to detail, and quality was lacking, yet release
authority was granted to the netbeans build...
(Trying to hide from all the rotten-tomatoes that are being thrown my
way! Smile
Kurt

Louis Botterill wrote:
Quote:
That's the weird thing, the JVM options that are supposed to work
(setting the properties) didn't seem to work for me :(

I'd much prefer that to fiddling with the start script really.

I might try again later, it really should work unless somehow the JVM
args are lost and not passed to the jvm or something in the start
script overrides them - which takes me back to the start of this
posting really - why doesn't it work like I'd expect?
Back to top
senderj



Joined: 10 Oct 2008
Posts: 22

PostPosted: Fri Oct 10, 2008 7:36 am    Post subject: Reply with quote

Louis,

Did you find the answer to your problem?? I would like to do the same with JBoss from Netbean. If you resolved it, please share your answer.
Back to top
snooze-g



Joined: 29 Apr 2010
Posts: 1
Location: Armenia

PostPosted: Thu Apr 29, 2010 9:29 am    Post subject: easy way is ........ don't do it :) Reply with quote

The solution is easy just rename run.bat for example to run-b.bat.
Create another run.bat file and put this line to it:
run-b.bat -b IPADDRESS

to be able to execute run.bat you need to put run-b.bat path to your PATH environment variable or just in run.bat specify full path of your run-b.bat.

ENJOY :)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo