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

RE: [cobalt-developers] Java Server Application using PostgreSQL: Success Stories?



Thanks for your help, by the way....

I tried your test code (Paul Adamson) and passed with flying colors again.
Now I suspect, given the error I got, that the tomcat.policy file is to
blame....Here is the error snippet and the policy snippet:

-----POLICY SNIPPET------

grant codeBase "file:/home/sites/site5/web/-" {
  permission java.net.SocketPermission "localhost:1024-",
"listen,connect,resolve";
  permission java.util.PropertyPermission "*", "read,write";
  permission java.lang.RuntimePermission "accessClassInPackage.sun.io";
  permission java.io.FilePermission "/home/sites/site5/web/-",
"read,write,delete";
};

-----ERROR SNIPPET-------

Attempt (1 of 5) failed to create new connections set at startup:
Something unusual has occured to cause the driver to fail. Please report
this exception: Exception: java.security.AccessControlException: access
denied (java.net.SocketPermission localhost resolve)
Stack Trace:

java.security.AccessControlException: access denied
(java.net.SocketPermission localhost resolve)
at ...