[jboss-user] [JNDI/Naming/Network] - Problems with register/lookUp via JNP
beckmanm
do-not-reply at jboss.com
Fri Dec 22 16:20:45 EST 2006
Hello,
I'm using the jboss-4.0.5.GA (default mode) with suse-linux 10.0 for few weeks without any relevant problems.
(wihout any customization of properties/ Start+Stop-Scripts and so on ...)
(I think there was no relevant adjustment on my jboss since that time)
For a short time I have some serious problems to register/invoke RMI-Objects.
Likewise the remote-invocation of stateless/stateful session beans doesn't work.
(The deployment of SessionBeans and MBeans itself works fine on each time!)
All these things worked properly in former times and hangs now on rebind resp. on lookUp. and use all the URL in the same manner:
jnp://127.0.0.1:1099
and use following code to prepare rebind/lookup:
properties.put(InitialContext.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
properties.put(InitialContext.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
properties.put(InitialContext.PROVIDER_URL, "jnp://127.0.0.1:1099");
Context ctx = new InitialContext(properties);
In contrast - the JBoss-Admin-Url: http://127.0.0.1:8080/jmx-console/ works fine
The server.log shows no error at start up (if it starts JRMP):
/j2ee/jboss/jboss-4.0.5.GA/server/default/log$ cat server.log | grep -i rmi
2006-12-22 21:48:50,933 DEBUG [org.jboss.system.ServiceController] Creating service jboss.rmi:type=RMIClassLoader
2006-12-22 21:48:50,933 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.rmi:type=RMIClassLoader dependents are: []
2006-12-22 21:48:51,046 DEBUG [org.jboss.naming.NamingService] Creating NamingServer stub, theServer=org.jnp.server.NamingServer at 1758500,rmiPort=1098,clientSocketFactory=null,serverSocketFactory=org.jboss.net.sockets.DefaultSocketFactory at fbc4815d[bindAddress=/0.0.0.0]
2006-12-22 21:48:51,103 DEBUG [org.jboss.naming.NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, RMI=/0.0.0.0:1098, backlog=50, no client SocketFactory, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory at fbc4815d[bindAddress=/0.0.0.0]
2006-12-22 21:48:51,191 DEBUG [org.jboss.system.ServiceController] starting service jboss.rmi:type=RMIClassLoader
2006-12-22 21:48:51,191 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.rmi:type=RMIClassLoader dependent components: []
2006-12-22 21:48:51,289 DEBUG [org.jboss.invocation.jrmp.server.JRMPInvoker] RMI Port='4444'
2006-12-22 21:48:52,282 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.metadata.MetaDataLibrary] added type-mapping: InformixDB
2006-12-22 21:48:59,432 DEBUG [org.jboss.system.ServiceConfigurator] considering XATerminatorName with object name jboss:service=TransactionManager
2006-12-22 21:48:59,442 DEBUG [org.jboss.system.ServiceConfigurator] considering XATerminatorName with object name jboss:service=TransactionManager
2006-12-22 21:49:02,101 DEBUG [org.jboss.web.WebPermissionMapping] Qualified url patterns: {/=PatternInfo[pattern=/,type=3,isOverriden=false,qualifiers=[PatternInfo[pattern=/restricted/*,type=1,isOverriden=false,qualifiers=[]]]], /restricted/*=PatternInfo[pattern=/restricted/*,type=1,isOverriden=false,qualifiers=[]]}
2006-12-22 21:49:03,403 DEBUG [org.jboss.web.WebPermissionMapping] Qualified url patterns: {/=PatternInfo[pattern=/,type=3,isOverriden=false,qualifiers=[]]}
2006-12-22 21:49:04,075 DEBUG [org.jboss.web.WebPermissionMapping] Qualified url patterns: {/=PatternInfo[pattern=/,type=3,isOverriden=false,qualifiers=[]]}
2006-12-22 21:49:04,278 DEBUG [org.jboss.web.WebPermissionMapping] Qualified url patterns: {/=PatternInfo[pattern=/,type=3,isOverriden=false,qualifiers=[PatternInfo[pattern=/restricted/*,type=1,isOverriden=false,qualifiers=[]]]], /restricted/*=PatternInfo[pattern=/restricted/*,type=1,isOverriden=false,qualifiers=[]]}
2006-12-22 21:49:06,005 DEBUG [org.jboss.system.ServiceConfigurator] JndiName set to jmx/invoker/RMIAdaptor in jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory
2006-12-22 21:49:06,018 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss.jmx:alias=jmx/rmi/RMIAdaptor with code: org.jboss.naming.NamingAlias
2006-12-22 21:49:06,019 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss.jmx:alias=jmx/rmi/RMIAdaptor
2006-12-22 21:49:06,020 DEBUG [org.jboss.system.ServiceConfigurator] FromName set to jmx/rmi/RMIAdaptor in jboss.jmx:alias=jmx/rmi/RMIAdaptor
2006-12-22 21:49:06,021 DEBUG [org.jboss.system.ServiceConfigurator] ToName set to jmx/invoker/RMIAdaptor in jboss.jmx:alias=jmx/rmi/RMIAdaptor
2006-12-22 21:49:06,021 DEBUG [org.jboss.system.ServiceController] recording that jboss.jmx:alias=jmx/rmi/RMIAdaptor depends on jboss:service=Naming
2006-12-22 21:49:06,033 DEBUG [org.jboss.system.ServiceController] Creating service jboss.jmx:alias=jmx/rmi/RMIAdaptor
2006-12-22 21:49:06,034 DEBUG [org.jboss.naming.NamingAlias] Creating jboss.jmx:alias=jmx/rmi/RMIAdaptor
2006-12-22 21:49:06,034 DEBUG [org.jboss.naming.NamingAlias] Created jboss.jmx:alias=jmx/rmi/RMIAdaptor
2006-12-22 21:49:06,034 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.jmx:alias=jmx/rmi/RMIAdaptor dependents are: []
2006-12-22 21:49:06,037 DEBUG [org.jboss.system.ServiceController] starting service jboss.jmx:alias=jmx/rmi/RMIAdaptor
2006-12-22 21:49:06,037 DEBUG [org.jboss.naming.NamingAlias] Starting jboss.jmx:alias=jmx/rmi/RMIAdaptor
2006-12-22 21:49:06,038 DEBUG [org.jboss.util.naming.Util] atom: RMIAdaptor
Content: jmx/invoker/RMIAdaptor
2006-12-22 21:49:06,038 DEBUG [org.jboss.util.naming.Util] Bound link jmx/rmi/RMIAdaptor to jmx/invoker/RMIAdaptor
2006-12-22 21:49:06,038 DEBUG [org.jboss.naming.NamingAlias] Started jboss.jmx:alias=jmx/rmi/RMIAdaptor
2006-12-22 21:49:06,039 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.jmx:alias=jmx/rmi/RMIAdaptor dependent components: []
2006-12-22 21:49:06,055 DEBUG [org.jboss.invocation.jrmp.server.JRMPProxyFactory] Bound proxy under jndiName=jmx/invoker/RMIAdaptor
2006-12-22 21:49:06,166 DEBUG [org.jboss.web.WebPermissionMapping] Qualified url patterns: {/=PatternInfo[pattern=/,type=3,isOverriden=false,qualifiers=[]]}
2006-12-22 21:49:11,773 DEBUG [org.jboss.ejb.EjbModule] creating binding for sessions/SLMatheservice:stateless-rmi-invoker
2006-12-22 21:49:11,810 DEBUG [org.jboss.ejb.EjbModule] creating binding for sessions/CallingMatheservice:stateful-rmi-invoker
2006-12-22 21:49:11,922 DEBUG [org.jboss.ejb.StatefulSessionContainer] Mapped multipliziere HASH 455983099to public int j2eeWithJBoss.chap9.CallingMatheserviceBean.multipliziere(int,int) throws java.rmi.RemoteException
2006-12-22 21:49:12,331 DEBUG [org.jboss.ejb.EjbModule] creating binding for sessions/SFMatheservice:stateful-rmi-invoker
2006-12-22 21:49:12,439 DEBUG [org.jboss.web.WebPermissionMapping] Qualified url patterns: {/=PatternInfo[pattern=/,type=3,isOverriden=false,qualifiers=[]]}
I tried to do a raw-connect via telnet (to exclude simple network problems) - it works properly :
marko at linux:/data/marko$ telnet localhost 1099
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
??srjava.rmi.MarshalledObject|????IhashlocBytest[BobjBytesq~xp???ur[B??T?xp'??thttp://localhost:8083/q~q~uq~??sr org.jnp.server.NamingServer_Stubxrjava.rmi.server.RemoteStub????xrjava.rmi.server.RemoteObject???
a3xpw:
UnicastRef2192.168.129.200J?\???h?xConnection closed by foreign host.
I see in server.log that a lot of service are bound on URL:0.0.0.0.
Should I adjust this via jboss.bind.address-Property to 127.0.0.1?
Any idea - to solve my problem ...?
Thx in advance - marko
PS: enlosed my network-setup:
root at linux:/data/marko$ ifconfig
dsl0 Protokoll:Punkt-zu-Punkt Verbindung
inet Adresse:84.140.77.222 P-z-P:217.0.116.104 Maske:255.255.255.255
UP PUNKTZUPUNKT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:2322 errors:0 dropped:0 overruns:0 frame:0
TX packets:2499 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 Sendewarteschlangenlänge:3
RX bytes:1044318 (1019.8 Kb) TX bytes:365229 (356.6 Kb)
eth0 Protokoll:Ethernet Hardware Adresse 00:13:CE:A4:F9:F5
inet6 Adresse: fe80::213:ceff:fea4:f9f5/64 Gültigkeitsbereich:Verbindung
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7600 errors:0 dropped:0 overruns:0 frame:0
TX packets:9074 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 Sendewarteschlangenlänge:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Basisadresse:0x8000 Speicher:a8401000-a8401fff
eth1 Protokoll:Ethernet Hardware Adresse 00:15:58:09:26:10
inet6 Adresse: fe80::215:58ff:fe09:2610/64 Gültigkeitsbereich:Verbindung
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4557 errors:0 dropped:0 overruns:0 frame:0
TX packets:5158 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 Sendewarteschlangenlänge:1000
RX bytes:2757356 (2.6 Mb) TX bytes:973226 (950.4 Kb)
Interrupt:11
lo Protokoll:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1590 errors:0 dropped:0 overruns:0 frame:0
TX packets:1590 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 Sendewarteschlangenlänge:0
RX bytes:244407 (238.6 Kb) TX bytes:244407 (238.6 Kb)
root at linux:/data/marko$ netstat -r
Kernel IP Routentabelle
Ziel Router Genmask Flags MSS Fenster irtt Iface
217.0.116.104 * 255.255.255.255 UH 0 0 0 dsl0
loopback * 255.0.0.0 U 0 0 0 lo
default 217.0.116.104 0.0.0.0 UG 0 0 0 dsl0
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995956#3995956
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995956
More information about the jboss-user
mailing list