Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Java 2 Security.

12 views
Skip to first unread message

gauz09

unread,
Jun 22, 2004, 2:56:41 PM6/22/04
to
Hi all,

I am trying to implement Jav 2 Security for my application using
was.policy file. I am using following declaration :

grant codeBase "file:{application}" {
permission java.security.AllPermission;
};

Enabled the "Enforce Java 2 Security" for the server and started the
server successfully. It is giving me an AccessControllerException when
I try to run my application.

I thought "AllPermission" allows us to give all the permissions to an
enterprise application on the WebSphere Server.
Please let me know your experience on it.

Thanks in advance...


Gauzy

anbose1

unread,
Aug 3, 2004, 1:19:32 PM8/3/04
to
I am havinf the same problem. If you find the solution. will you pl. let me know?
thanks in advance
anb...@us.ibm.com

CER

unread,
Aug 6, 2004, 4:40:19 AM8/6/04
to
anbose1 <anb...@us.ibm.com> wrote in message news:<1692390513.1091553572144.JavaMail.wasadmin@swg3ws006>...

> I am havinf the same problem. If you find the solution. will you pl. let me know?
> thanks in advance
> anb...@us.ibm.com

Hi All,
Where did you modify the was,policy ? I mean directory .

If you use the default values in the EAR deployment process, you
should change the was.policy stored on
$WAS_HOME/config/cells/$CELL_NAME/applications/$APP_NAME.ear/deployments/$APP_NAME/META-INF
.

if you have ND you must use the config directory of your ND .

After doind this , you must restart your App.Server.

Bye.

youcefb9

unread,
Aug 6, 2004, 6:21:11 AM8/6/04
to
You dont need to manually edit the file on the directory.
you just need to ship was.policy in your ear file and this will get joined by other policy file used by websphere to create a full and complete policy file. the policy files used, or to be precise unioned, are:
- app.policy (the default that applies to all j2ee applications) I cannot remember where is located.
- was.policy located under the app server properties directrory, and
- java.ploicy located under java jre security folder.

0 new messages