• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlets and RMI calls

 
Sachin Deshpande
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a servlet (tomcat server) which is supposed to make RMI calls to RMI-Services (located in the same machine for now). But when looking up for a service, I am getting a java.security.AccessControlException: access denied (java.net.SocketPermisssion 127.0.0.1:1099 connect,resolve)
What changes should i do to make the calls successful via the servlet?
Thanx in advance
 
Sean MacLean
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is related to the security policy that allows the application to make socket connections (what RMI is doing in the background). Here are a couple of links that should help out.
http://www.ccs.neu.edu/home/kenb/com3337/rmi_tut.html#start
[Servlet specific] http://www.mail-archive.com/java-apache-users@list.working-dogs.com/msg07422.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!