You need to run with a security manager...
-Djava.security.policy=/dir to policy file/java.policy
to your application's command line
The policy file should contain the required permissions for your application.
I appreciate the reply but don't know how to do this for a web application - this isn't a stand alone client with a command line. I've tried opening up the java.policy file and server.policy security to give all permissions but this seems to make no difference. Any further insights or info would be appreciated.
I don't know how clean this is, but if you need to add system properites like that at startup time you can do that for your web apps in jboss/bin/run.sh . You could also at run time call System.setProperty() (for setting the policy) and System.setSecurityManager() (for setting RMISecurityManager) in some startup block. If you are using JBoss 3, look for "# Setup JBoss sepecific properties" in run.sh and you will see where you can add system properties like the examples in the previous post.