-
1. Re: Unable to access JBoss 4.20.GA from Browser
peterj May 17, 2007 5:08 PM (in response to nagatn)Please note that 4.2 binds to localhost by default (see the readme file), thus any attempts to access it using some other host name will not work. Not sure if that is the cause of your problem or not.
-
2. Re: Unable to access JBoss 4.20.GA from Browser
nagatn May 17, 2007 5:13 PM (in response to nagatn)I cahnged localhost to ipaddr in the config files, and tried accessing using ipaddr, but that hasn't helped. What surprises me is - access from a browser within the same box is fine, but not from another box. The boxes are all in the same network LAN.
-
3. Re: Unable to access JBoss 4.20.GA from Browser
nagatn May 17, 2007 5:14 PM (in response to nagatn)And no firewalls are involved, either.
-
4. Re: Unable to access JBoss 4.20.GA from Browser
peterj May 17, 2007 5:19 PM (in response to nagatn)To change the binding address, start the app server as follows:
run -b your-host-name -
5. Re: Unable to access JBoss 4.20.GA from Browser
nagatn May 17, 2007 5:30 PM (in response to nagatn)Good point. I have tried that just now, and am still facing the same issue.
I see this line in JBoss console - not sure why "%2F127.0.0.1" is appended -
12:02:08,422 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-vito%2F127.0.0.1-8080 -
6. Re: Unable to access JBoss 4.20.GA from Browser
nagatn May 17, 2007 5:32 PM (in response to nagatn)I have tried with "-b fully-qualified-host-name" as well. Same issue.
-
7. Re: Unable to access JBoss 4.20.GA from Browser
peterj May 17, 2007 5:37 PM (in response to nagatn)Please post the exact run command you are using.
-
8. Re: Unable to access JBoss 4.20.GA from Browser
nagatn May 17, 2007 5:40 PM (in response to nagatn)I have tried these -
> cd $JBOSS_HOME/bin
> ./run.sh -b my-host-name
and
> cd $JBOSS_HOME/bin
> ./run.sh -b my-fully-qualified-host-name # includes domain-name
Both have same issue (initially reported issue) -
9. Re: Unable to access JBoss 4.20.GA from Browser
peterj May 17, 2007 5:42 PM (in response to nagatn)The name of your host is my-host-name? What are the contents or your /etc/hosts file?
-
10. Re: Unable to access JBoss 4.20.GA from Browser
peterj May 17, 2007 5:57 PM (in response to nagatn)I am running 4.2 on Fedora Core 6. Here is how I start it up:
$ ./run.sh -b usmv-johnsop1l
And in the console log I see:
06:55:41,952 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-usmv-johnsop1l%2F192.59.193.117-8080
I suspect that your host name, vito, in /etc/hosts is set to 127.0.0.1. -
11. Re: Unable to access JBoss 4.20.GA from Browser
nagatn May 17, 2007 6:31 PM (in response to nagatn)There's a bug!
> run -b # works fine!
> run -b # doesn't work
> run -b # doesn't work
Thanks very much for all your help, specially on the "-b" option when starting JBoss. -
12. Re: Unable to access JBoss 4.20.GA from Browser
nagatn May 17, 2007 6:34 PM (in response to nagatn)Repat posting, this time eliminating "<>" chars, to avoid html rendering issues in posting.
There's a bug!
> run -bIPADDR # works fine!
> run -bHOSTNAME # doesn't work
> run -bFULLY.QUALIFIED.HOST.NAME # doesn't work
Thanks very much for all your help, specially on the "-b" option when starting JBoss. -
13. Re: Unable to access JBoss 4.20.GA from Browser
tsar_bomba May 18, 2007 1:46 PM (in response to nagatn)I'm trying to figure this issue out myself, hopefully someone here can help.
I've got 4.2.0 working on a test machine but I can only access it from that machine using "localhost".
Now, I'd like to push 4.2.0 to production but it uses a fully qualified domain name which is public-facing. I'm using JavaService on Win 2003 server to control JBoss as a windows service - so I'm not using the "run" files, per se.
Is there a configuration setting I'm missing to set JBoss 4.2.0 to resolve to a real domain name? I'd like to call it up in a browser as both the machine name (e.g. http://servername:8080/appname) and as the domain name (e.g. http://www.mysite.com/appname).
I have this setup perfectly in JBoss 4.0.5 in production, currently...but obviously there have been changes.
Can someone at least point me to the docs? I tried changing the host name(s) in server.xml but it didn't have any effect after restarting JBoss.
Thanks! -
14. Re: Unable to access JBoss 4.20.GA from Browser
peterj May 18, 2007 2:50 PM (in response to nagatn)JavaService stores the startup information for the app server in the registry, so you can always tweak the settings in there to add the "-b host-name" option. Documentation is at http://javaservice.objectweb.org/js_doc_frame.html