OK, so sorry to be posting 8000 messages, but I solved my problem, and I believe that
it was the result of a bug in JBoss that I was thankfully able to workaroud.
In org.jboss.web.WebService there is a method:
| protected void startService() throws Exception
| {
| // Host must be set to continue (either by user or detection)
| String address = getHost();
| if (address == null)
| throw new MissingAttributeException("Host");
|
| // Start the WebServer running
| server.start();
| log.info("Started WebServer with address: " + server.getBindAddress() + ":"
+ getPort());
|
| // Set the rmi codebase if it is not already set
| String codebase = System.getProperty("java.rmi.server.codebase");
| if (codebase == null)
| {
| address = ServerConfigUtil.fixRemoteAddress(address);
|
| codebase = "http://" + address + ":" + getPort() + "/";
| System.setProperty("java.rmi.server.codebase", codebase);
| }
| log.info("Using RMI server codebase: " + codebase);
| }
|
What happens is that if you do not set the system property in question, it uses your
configured host (which, by default is jboss.bind.hostname system property). That is
reasonable and correct.
THEN, it puts the address through ServerConfigUtil.fixRemoteAddress, which turns your
host address into a servername. This, IMHO, is incorrect behavior. At least, it
seems incorrect when you've specified the jboss.bind.address to be something other
than the default. Names are for humans. Numbers are for machines. The number is
always correct, wheras the name is dependant on the DNS server and client
configuration, and introducing this dependancy by default seems wrong. Maybe this is
addressed in a later version, but FYI, the solution was to set
java.rmi.server.codebase=http://my_ip_address:8083/
in my SystemPropertiesService MBean.
If there's a bug tracker for JBoss, I'll submit this if anyone agrees with me.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837112#3837112
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837112
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user