I have a similar problem, If I run my JBoss4 server on windows, and compile it all there, everything works fine, the app client also works from the other machines on the network, but when I convert it to compile and run on linux, the client app can't connect to the linux jboss4 server. What's up with that?
My windows machine runs Win2K, JBoss4.x, and no firewalls, My linux machine runs Redhat 9.0, JBoss4.x and also no fire walls. The other problem is that my client app tries to connect to the localhost when I try running the linux client-app. here is my jndi.properties file | java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory | java.naming.provider.url=jnp://192.168.0.19:1099 | java.naming.factory.url.pkgs=org.jboss.naming.client | j2ee.clientName=ExampleGUI | and here is the exception it throws | javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: | java.net.ConnectException: Connection refused: connect] | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:663) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520) | at javax.naming.InitialContext.lookup(Unknown Source) | at org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:114) | at $Proxy0.lookup(Unknown Source) | at javax.naming.InitialContext.lookup(Unknown Source) | at ImportAgentGUI.actionPerformed(Unknown Source) | at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) | at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) | at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) | at javax.swing.DefaultButtonModel.setPressed(Unknown Source) | at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) | at java.awt.Component.processMouseEvent(Unknown Source) | at javax.swing.JComponent.processMouseEvent(Unknown Source) | at java.awt.Component.processEvent(Unknown Source) | at java.awt.Container.processEvent(Unknown Source) | at java.awt.Component.dispatchEventImpl(Unknown Source) | at java.awt.Container.dispatchEventImpl(Unknown Source) | at java.awt.Component.dispatchEvent(Unknown Source) | at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) | at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) | at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) | at java.awt.Container.dispatchEventImpl(Unknown Source) | at java.awt.Window.dispatchEventImpl(Unknown Source) | at java.awt.Component.dispatchEvent(Unknown Source) | at java.awt.EventQueue.dispatchEvent(Unknown Source) | at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) | at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) | at java.awt.EventDispatchThread.pumpEvents(Unknown Source) | at java.awt.EventDispatchThread.pumpEvents(Unknown Source) | at java.awt.EventDispatchThread.run(Unknown Source) | Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: | java.net.ConnectException: Connection refused: connect | at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source) | at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source) | at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source) | at sun.rmi.server.UnicastRef.invoke(Unknown Source) | at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:544) | ... 30 more | Caused by: java.net.ConnectException: Connection refused: connect | at java.net.PlainSocketImpl.socketConnect(Native Method) | at java.net.PlainSocketImpl.doConnect(Unknown Source) | at java.net.PlainSocketImpl.connectToAddress(Unknown Source) | at java.net.PlainSocketImpl.connect(Unknown Source) | at java.net.SocksSocketImpl.connect(Unknown Source) | at java.net.Socket.connect(Unknown Source) | at java.net.Socket.connect(Unknown Source) | at java.net.Socket.<init>(Unknown Source) | at java.net.Socket.<init>(Unknown Source) | at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source) | at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source) | ... 36 more | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877940#3877940 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877940 ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user