Ok, here comes the stack trace:

07.09.2006 19:55:19 de.hackemesser.frieshouse.client.Manager getContext
  | INFO: Creating jndi context
  | javax.naming.CommunicationException [Root exception is 
java.rmi.ConnectException: Connection refused to host: 127.0.0.2; nested 
exception is: 
  |     java.net.ConnectException: Connection refused: connect]
  |     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
  |     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
  |     at javax.naming.InitialContext.lookup(Unknown Source)
  |     at de.hackemesser.frieshouse.client.Manager.getCore(Manager.java:41)
  |     at 
de.hackemesser.frieshouse.client.ManagerView.getStocklevel(ManagerView.java:420)
  |     at 
de.hackemesser.frieshouse.client.ManagerView.getStockLevelDisplay(ManagerView.java:154)
  |     at 
de.hackemesser.frieshouse.client.ManagerView.getMenu(ManagerView.java:144)
  |     at 
de.hackemesser.frieshouse.client.ManagerView.initialize(ManagerView.java:117)
  |     at 
de.hackemesser.frieshouse.client.ManagerView.<init>(ManagerView.java:106)
  |     at de.hackemesser.frieshouse.client.Manager.main(Manager.java:20)
  | Caused by: java.rmi.ConnectException: Connection refused to host: 
127.0.0.2; 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:625)
  |     ... 9 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)
  |     ... 15 more


Here comes the jndi.properties (client side)
# jndi.properties
  |       
  | java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  | # java.naming.provider.url=localhost
  | java.naming.provider.url=jnp\://192.168.0.2\:1099
  | java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  | 

this is how I create my context in Manager.class:
                if (ctx == null) {
  |                     log.info("Creating jndi context");
  |                     ctx = new InitialContext();
  |             }

and this is my first lookup which fails:
                                        core = (CoreServiceRemote) 
getContext().lookup(
  |                                                     "CoreService/remote");

Any idea?

Thanks,
Kai

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970156#3970156

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970156
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to