You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Mihamina Rakotomandimby (R12y)" <mi...@lab.vectoris.fr> on 2009/01/28 11:10:36 UTC
public IPadresse is non-local
Hi,
I have a test box on my LAN.
The internet connexion is shared by a router (linksys box)
I test my application locally thourgh "http://localhost".
But when testing, my application displays:
RemoteException occurred in server thread; nested exception is:
java.rmi.AccessException: Registry.Registry.bind disallowed; origin
/<public_ip_adress> is non-local host
"rmiregistry" is just launched and it runs on 1099
The router already NATs to the test box
I found this:
http://www.coderanch.com/t/209942/Distributed-Java/java/RMI-app-behind-NAT-firewall
I use ubuntu packaged Tomcat 6.
I already hacked /etc/default/tomcat6
[...]
JAVA_OPTS="-Djava.awt.headless=true -Xmx512M \
-Djava.rmi.server.hostname=<public_ip_adress>"
TOMCAT6_SECURITY=no
[...]
No more way?
--
Chef de projet chez Vectoris
http://www.google.com/search?q=mihamina+rakotomandimby
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: public IPadresse is non-local
Posted by "Mihamina Rakotomandimby (R12y)" <mi...@lab.vectoris.fr>.
Mihamina Rakotomandimby (R12y) wrote:
>> I have a test box on my LAN.
>> The internet connexion is shared by a router (linksys box)
> Reading one of the last posts of this:
> http://www.generation-nt.com/reponses/rmi-probleme-de-creation-d-un-serveur-sous-linux-ubuntu-entraide-59447.html?page=3#reponse
> It has to do with RMI plying with name resolution...:
Well, it was about a network configuration issue and an unclean tomcat6
installation.
On a clean install and a properly configured network, it works.
--
Chef de projet chez Vectoris
http://www.google.com/search?q=mihamina+rakotomandimby
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: public IPadresse is non-local
Posted by "Mihamina Rakotomandimby (R12y)" <mi...@lab.vectoris.fr>.
Mihamina Rakotomandimby (R12y) wrote:
> Hi,
> I have a test box on my LAN.
> The internet connexion is shared by a router (linksys box)
Reading one of the last posts of this:
http://www.generation-nt.com/reponses/rmi-probleme-de-creation-d-un-serveur-sous-linux-ubuntu-entraide-59447.html?page=3#reponse
It has to do with RMI plying with name resolution...:
My take on the problem is as follows: The java rmi registry gets a
Naming.lookup request, it resolves the request and returns the ip to
the machine running the requested service
Which seem to tell RMI loooks up oninternet and get back, but through
the public adress.
how to avoid that?
--
Chef de projet chez Vectoris
http://www.google.com/search?q=mihamina+rakotomandimby
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org