[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] Tomcat Security Manager Problem



Tim,
I already have the AllPermission line but I have had to grant other individual permissions as well?

We just migrated from a Colo RaQ4r to one we own. I think that the Update was not properly installed on the Colo, because we never ran into this problem before.?

I have not tried
permission java.net.SocketPermission "www.obsidian-studios.com:-","listen,resolve,connect";

but doesn't the minus sign stand just for that, like 10 and below, 10-.

I wil give it a shot.

Thanks, keep em comin.

Timothy Stonis wrote:

  If you own this box, I would just crank up the permissions to:

 permission java.security.AllPermission;

  This will give the servlet all permissions. Put this in the
tomcat.policy.custom file as described in the docs. Make sure you install
Update 1.0 for the Developer Kit, too.

 You can also try:

permission java.net.SocketPermission
"www.obsidian-studios.com:-","listen,resolve,connect";

_Tim
On 11/9/01 2:39 PM, "William L. Thomson Jr." <wlt@xxxxxxxxxxxxxxxxxxxx>
wrote:


I cannot seem to make the following error go away. I have tried almost
everything in the tomcat.policy.master file.

I keep getting the following, when using JavaMail.

Ctx( www.obsidian-studios.com: ): Exception in: R(  + /servlet/MyServlet
+ null) - java.security.AccessControlException: access denied
(java.net.SocketPermission mail.obsidian-studios.com resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:2
73)
at java.security.AccessController.checkPermission(AccessController.java:400)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1042)
at java.net.InetAddress.getAllByName0(InetAddress.java:767)
at java.net.InetAddress.getAllByName0(InetAddress.java:748)
at java.net.InetAddress.getAllByName(InetAddress.java:742)
at java.net.InetAddress.getByName(InetAddress.java:679)
at javax.mail.URLName.getHostAddress(URLName.java:445)
at javax.mail.URLName.hashCode(URLName.java:421)
at java.util.Hashtable.get(Hashtable.java:320)
at javax.mail.Session.getPasswordAuthentication(Session.java:640)
at javax.mail.Service.connect(Service.java:217)
at javax.mail.Service.connect(Service.java:135)
at javax.mail.Service.connect(Service.java:87)
at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:93)
at javax.mail.Transport.send0(Transport.java:163)
at javax.mail.Transport.send(Transport.java:81)


Here are some of the scenarios I have attempted so far.

      permission java.net.SocketPermission
"www.obsidian-studios.com:25","resolve";
      permission java.net.SocketPermission
"www.obsidian-studios.com:80","resolve";
      permission java.net.SocketPermission
"www.obsidian-studios.com:110","resolve";

I tried using mail as the host instead of www (both the same machine). I
have used * wildcards as the hostname and port.

I have tried just about everything I know to try.

Any suggestions?


_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers





--
Sincerely,
William L. Thomson Jr.
Obsidian-Studios, Inc.
439 Amber Way
Petaluma, Ca. 94952
Phone 	707.766.9509
Fax 707.766.8989
http://www.obsidian-studios.com