[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-developers] tomcat.policy.custom file
- Subject: RE: [cobalt-developers] tomcat.policy.custom file
 
- From: "alpo" <alpo@xxxxxxxxxxxxxxxxxx>
 
- Date: Wed Nov 14 05:56:23 2001
 
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
 
Hi,
Connect to your MySQL server as to localhost instead to www.domain.com
and keep default permissions. But if you need connect to MySQL through
www.domain.com add this line to your permissions:
  permission java.net.SocketPermission "www.domain.com:1024-",
"listen,connect,accept,resolve";
Regards,
Alex
> I fixed the problem with
> 
> permission java.security.AllPermission;
> 
> How can I restrict these permission to site8
> of the RaQ only.
> 
> Is there another way to enable remote db access
> without granting root permission ?
> 
> Thanks for any help.
> 
> Dave (HotD**)
> 
> *********************************************************************
> Hi,
> 
> I'm trying to enable JAVA remote mySQL access by adding the following
> permission :
> 
> permission java.net.SocketPermission
> "65.108.7.2:1024-","accept,listen,resolve";
> 
> I created a tomcat.policy.custom file and entered this text.
> 
> After restart Tomcat crashed.
> 
> I changed the permission to
> 
> permission java.net.SocketPermission
> "65.108.7.2:1024-","listen,connect";
> 
> and got the same result.
> 
> What can I do to get rid of that problem :
> 
> javax.servlet.ServletException: Cannot connect to MySQL server on
> www.domain.com:3306. Is there a MySQL server running on the
> machine/port you are trying to connect to?
> (java.security.AccessControlException)
> 
> Thank you very much for a hint.
> 
> Dave (HotD**)
> 
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers