-
1. Re: Binding an address causes error
kconner Nov 28, 2008 3:56 AM (in response to hiningenteki)No idea, what is in the logs? What is the reason for the failure?
-
2. Re: Binding an address causes error
hiningenteki Nov 28, 2008 4:08 AM (in response to hiningenteki)This is what I found in the server log:
Reason: org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleException: Unexpected naming context exception from prepareMessageReceiver
What's that? :) -
3. Re: Binding an address causes error
kconner Nov 28, 2008 4:33 AM (in response to hiningenteki)It's an unexpected naming context exception from prepareMessageReceiver of course ;)
Are you saying that this is all that is in the logs and that there is no further information? What is the real reason for the failure?
If you want a very wild guess then you have something that is explicitly specifying its JNDI context to 127.0.0.1 and that this is no longer available now that you have bound it to another port. Of course this is just a wild guess and may not be correct.
It may also help if you can tell us what version of the software you are running, just in case it is relevant. -
4. Re: Binding an address causes error
hiningenteki Nov 28, 2008 4:40 AM (in response to hiningenteki)OK, OK, I get it.
The further study of the logs revealed to me that there had beenjavax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]
But can you tell me the difference between a locally running JBoss and the one bound to a certain IP/hostname? I swear there are no applications using the port in question. There is no firewall either.
The JBoss version is 4.2.1. :) -
5. Re: Binding an address causes error
hiningenteki Nov 28, 2008 8:48 AM (in response to hiningenteki)The error is reproducible on different computers. I'm tempted to think that there's something in configuration files that holds the keys to the solution but I still have no idea.
-
6. Re: Binding an address causes error
kconner Nov 28, 2008 9:03 AM (in response to hiningenteki)If you are using ESB 4.2.1 then it does not have support for properties and, therefore, will not work with -b.
This was addressed in https://jira.jboss.org/jira/browse/JBESB-1309 nearly a year ago.
Can you update to a later version? -
7. Re: Binding an address causes error
kconner Nov 28, 2008 9:06 AM (in response to hiningenteki)You should also look for any references to localhost in your jboss-esb.xml files.
In general you should not be specifying the JNDI parameters so that they can default to those used by the current server, that is unless you are deliberately referencing a remote JNDI server :) -
8. Re: Binding an address causes error
hiningenteki Dec 1, 2008 5:10 AM (in response to hiningenteki)The issue is successfully resolved. :) It was all about configuration files where localhost was specified everywhere.
Sorry to have disturbed you, lads. -
9. Re: Binding an address causes error
kconner Dec 1, 2008 6:50 AM (in response to hiningenteki)"hiningenteki" wrote:
Sorry to have disturbed you, lads.
No problems, thanks for letting us know that it is resolved.