This content has been marked as final.
Show 3 replies
-
1. Re: Policy File in method EJB Container
starksm64 Feb 11, 2004 9:02 PM (in response to andre_stos_oliveira)Only if you configure JBoss to run with a Java2 security manager. It does not run with a security manager by default.
-
2. Re: Policy File in method EJB Container
andre_stos_oliveira Feb 12, 2004 6:39 AM (in response to andre_stos_oliveira)Scott,
I know. I configure JBosss to run with a Java2 Security Manager, but not throws SecurityException, in case EJB Container.
But, I have JSP, in a WEB Container named WEB1, with same functionality.
My policy file:
grant codeBase "file:/C:/JBoss/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/EAR1.ear/WEB1.war/-" {
// Allow everything for now
permission java.io.FilePermission "c:\\temp\\test.txt", "read,write";
};
The JSP file tries write file in a directory c:\temp2. When a JSP run throws SecurityException (acess denied, file doesn't permission "write" ).
Can you help me, in case EJB?
Thanks.
Andre -
3. Re: Policy File in method EJB Container
andre_stos_oliveira Feb 16, 2004 2:57 PM (in response to andre_stos_oliveira)Can somebody help me?