[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: Timothy Stonis <timothy.stonis@xxxxxxx>
 
- Date: Wed Nov 14 03:31:19 2001
 
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
 
 The Java Update 1.0 allows you to add permission on a per-site basis...
Read the docs (kind of hidden at the bottom of the page). The URL is:
 
 http://developer.cobalt.com/java/java.raq.php
  It seems that you might not need any of this; in your code, the database
URL is set to:
 www.domain.com:3306
  Is there a database there? It looks like you want the URL to be:
 65.108.7.2:3306
_Tim
On 11/13/01 7:31 AM, "Hostmaster of the day" <hostmaster@xxxxxxxxxxxxx>
wrote:
> 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
>