I am having a problem with using RemoteBeans on a Server. The EARs all work. I deployed them on one Server, and the RemoteBean on a remote server outside of my network. I could use the bean without any problem.
Now i try to deploy the bean on a server within my network. I can locate the Bean an reveive a Proxy. But after the first invocation, i receive ConnectionException.
The text below is from the server which does not work. The invoker locater is initiated with 127.0.0.1. But the working server uses its public IP. Could this be the Problem? How can I Fix this?
Anyone an idea?
17:40:57,816 INFO [Server] Starting JBoss (MX MicroKernel)...
17:40:57,853 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
17:40:57,856 INFO [Server] Home Dir: /www/hz_dev/jboss
17:40:57,856 INFO [Server] Home URL: file:/www/hz_dev/jboss/
17:40:57,858 INFO [Server] Patch URL: null
17:40:57,858 INFO [Server] Server Name: default
17:40:57,858 INFO [Server] Server Home Dir: /www/hz_dev/jboss/server/default
17:40:57,859 INFO [Server] Server Home URL: file:/www/hz_dev/jboss/server/default/
17:40:57,859 INFO [Server] Server Log Dir: /www/hz_dev/jboss/server/default/log
17:40:57,859 INFO [Server] Server Temp Dir: /www/hz_dev/jboss/server/default/tmp
17:40:57,860 INFO [Server] Root Deployment Filename: jboss-service.xml
17:40:59,337 INFO [ServerInfo] Java version: 1.5.0_08,Sun Microsystems Inc.
17:40:59,365 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_08-b03,Sun Microsystems Inc.
17:40:59,365 INFO [ServerInfo] OS-System: Linux 2.4.26,i386
17:41:00,535 INFO [Server] Core system initialized
17:41:06,275 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
17:41:09,987 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://127.0.0.1:3873/]
17:41:11,400 INFO [AspectDeployer] Deployed AOP: file:/www/hz_dev/jboss/server/default/deploy/ejb3-interceptors-aop.xml
17:41:29,124 INFO [WebService] Using RMI server codebase: http://hzlx4.asv.de:8083/
17:41:34,705 INFO [Embedded] Catalina naming disabled
I checked the tcp Traffic between the JBoss Servers.
The one with the remote bean does reset the connection after Syncing.
So it really seems to be the problem that it only accepts on 127.0.0.1.
Id be very happy if someone can tell me how to fix this. I need it to get run till friday.
Its not the firewall. All the ports are open.
See http://www.jboss.com/index.html?module=bb&op=viewtopic&t=93668 and see if my telnet suggestion helps any.
Also, you could try setting the -Djava.net.preferIPv4Stack=true JVM option. Setting that seems to fix a multitude of network-related problems on Linux.
Thanks, but the JVM Option did not solve the problem :-(
I tried the telnet session to port to 3873 for the reason, that i do not have problems with the lookup but with the invoking on the proxy.
-> Connection refused as the ethereal trace said too. How can i make the server listzen on the public device?
Any further ideas?