Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes Authentication ,Authorization  Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Authentication ,Authorization  Problem" Watch "Authentication ,Authorization  Problem" New topic
Author

Authentication ,Authorization Problem

Sandeep Vaid
Ranch Hand

Joined: Feb 27, 2006
Posts: 390
I am using WAS 6.1. I have used the custom registry. I am able to set the user and group in Admin Console but when i start my server, it gives me the error



I found some links which states that i need to set permissions in dynamic policy files :
1. http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.nd.iseries.doc/info/iseriesnd/ae/rsec_rpolicydir.html

2. http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/tsec_dynamic.html

I set permissions in most of the dynamic policy files (including app.policy) as :
grant codeBase "file:${application}" {
permission java.io.FilePermission "c:/sv user files/users.props", "read";
permission java.io.FilePermission "c:/sv user files/groups.props", "read";
};

Please let me know the solution...
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

I'm not sure about the spaces in the directory name. First try moving the files to c:\users.props and refer to them as such. You can also (for the sake of testing) set "*", "read"
Also, do the files need to be outside the application? You may want to try adding the permissions to the java.policy or server.policy as these will restrict the access before the application.policy

just thoughts.
Sandeep Vaid
Ranch Hand

Joined: Feb 27, 2006
Posts: 390
David, I tried removing the spaces and "*", "read" but it didn't work that way.
It's not the requirement that i must set these permissions in app.policy.
Anything will do for me as far as it works..
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Do these properties need to be outside the web app? Must easier if you can be put them in the WEB-INF or WEB-INF/classes directories
 
 
subject: Authentication ,Authorization Problem
 
Similar Threads
Errors in publishing to the WAS 6.1 server
WAS Server startup fails with Initialization error
SRVE0255E: A WebGroup/Virtual Host to handle /ApplicationName has not been defined
websphere is always in starting mode in RAD7...
Errors while starting WAS services