users@glassfish.java.net

Re: JACC Provider can't check security for itself

From: <glassfish_at_javadesktop.org>
Date: Thu, 15 May 2008 12:58:31 PDT

Sorry for the ambiguous reference...

I don't get a CNFE, I verified back in the day that the IBM JRE has that class via:

% export JAVA_HOME=${WAS_HOME}/java
% ${JAVA_HOME}/bin/javap sun.security.provider.PolicyFile
Compiled from "PolicyFile.java"
[snip...]
% ${JAVA_HOME}/bin/java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pxi32devifx-20071025a (SR6b))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20071005 (JIT enabled)
J9VM - 20071004_14218_lHdSMR
JIT - 20070820_1846ifx1_r8
GC - 200708_10)
JCL - 20071025

I don't get any exceptions, I am able to get the original policy implementation just fine: com.ibm.ws.security.policy.WSDynamicPolicy_at_674e674e

Interestingly enough, my calls to super.implies works for a lot of startup type permissions:

java.io.FilePermission : ${W}/.../javax.xml.parsers.SAXParserFactory x read from ${W}/lib/startup.jar cid=null
org.osgi.framework.AdminPermission : (id=9) x class from ${W}/.../org.eclipse.osgi_3.2.1.R32x_v20060919.jar cid=null

My current issue is that I get a 403 whenever I go to hit any WebResource, protected or not.

I'm digging on it now, but wanted to touch base.
[Message sent by forum member 'brian_of_fortent' (brian_of_fortent)]

http://forums.java.net/jive/thread.jspa?messageID=274675