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