| Author |
rmi.NoSuchObjectException
|
Andres Gorzelany
Greenhorn
Joined: Aug 29, 2005
Posts: 13
|
|
Hi Guys ! This is the situation: i always ran my application on the same computer as my beans were deployed (JBoss) in this way: and then and finally: Well, the problem is that now i have to run my app not in the same computer as JBoss, so i change "localhost" to "192.168.1.52" but this is i get when i try to start the application:
The exception references to the second Code i write on this post, what i am doing wrong ? do i have to do more to connect to another JBoss Server? Please Help me, Thanks in advance
|
 |
Andres Gorzelany
Greenhorn
Joined: Aug 29, 2005
Posts: 13
|
|
Anyone, please ?
|
 |
Roger Chung-Wee
Ranch Hand
Joined: Sep 29, 2002
Posts: 1683
|
|
|
You need to supply the environment variables to the InitialContext constructor. Check JBoss's documentation for this.
|
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
|
 |
Andres Gorzelany
Greenhorn
Joined: Aug 29, 2005
Posts: 13
|
|
I Already do that, i think.. this is the whole code i wrote: and the same when i try to connect to 192.168.1.52 but changing "localhost" to the IP address... It's the only thing i change, but that do not works... but works ok with localhost.
|
 |
Andres Gorzelany
Greenhorn
Joined: Aug 29, 2005
Posts: 13
|
|
I tried this and i get this that is Really strange!
127.0.0.1 ? i am not connecting to my computer anymore, why i am getting this ? so i tried telnet to 192.168.1.52 on port 1099 and i got:
�?sr?java.rmi.MarshalledObject|??�?c?>??I?hashlocBytest?[BobjBytesq~?xp6<ur?[B�? �T??xp?�?thttp://web:83/q~q~uq~??�?sr org.jnp.server.NamingServer_Stub??xrjava.r mi.server.RemoteStub???��e?xr? java.rmi.server.RemoteObject?a?� a3??xpw4 UnicastRe f2 127.0.0.1 ?J??~?^��r�?x Connection to host lost.
What do you think ? [ September 12, 2005: Message edited by: Andres Gorzelany ]
|
 |
Andres Gorzelany
Greenhorn
Joined: Aug 29, 2005
Posts: 13
|
|
Ok the problem was in my freebsd's hosts file, once i got it right it works fine now
|
 |
James Dean Moore
Greenhorn
Joined: Sep 23, 2005
Posts: 1
|
|
|
can you provide a detailed explaination of how to fix this problem?
|
 |
Andres Gorzelany
Greenhorn
Joined: Aug 29, 2005
Posts: 13
|
|
Well, as i said, the problem was on my FreeBSD HOSTS file: This is an example of good configuration: Be sure of set this right.
|
 |
 |
|
|
subject: rmi.NoSuchObjectException
|
|
|