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:273)
        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?

-- 
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

_______________________________________________
cobalt-developers mailing list
[EMAIL PROTECTED]
http://list.cobalt.com/mailman/listinfo/cobalt-developers

Reply via email to