I had not checked that, although it is true that the JDK was installed
under the same user (well, now it is; I was using the AIX installed 1.3.1
smit pkg but I since coped it to a work directory). I do not see WHY the
owner of the JDK has to be the the same user as the Tomcat PID owner. I
can see why it would need read access. To be sure, I chmod'd everything to
755/644 to make sure. Still no dice.

I tried to setup another app that uses the same base policy and the error
did not arise. Others did but I was able to write in policy changes that
got rid of them.

Man, this is frustrating.

Ben Ricker

> You probably did this alread, but might want to check the access
> permissions for all directories and files involved.  That stuff gets
> messed up pretty easy.  The user that Tomcat runs under should be the
> same user that the JDK was installed with...  Might be a complicating
> factor??
>
>>>> [EMAIL PROTECTED] 12-29-2004 09:51 >>>
> I am migrating a dozen apps from Solaris and Tomcat 4.0.6 to AIX 5.2
> and
> Tomcat 4.0.6.
>
> Has anyone done this migration? If not, does anyone run Tomcat on AIX
> 5.2
> ( I would assume so)? Do you use IBMs JDK? I am using the 1.3, 64-bit
> J2SDK.
>
> If you do, do you use Java Security (-security on startup)? I am having
> an
> issue with an security exception being thrown. I can fix the exception
> by
> adding the pertinent grant statement but it does not work on the AIX
> version (it does work on Solaris!)?
>
> Here is the error:
>
> Security Violation, attempt to use Restricted Class:
> org.apache.catalina.util.ParameterMap
> java.security.AccessControlException: access denied
> (java.lang.RuntimePermission
> accessClassInPackage.org.apache.catalina.util)
>
> I pinpointed the class in the error msg as being in the server dir. So
> I
> added this grant statement:
>
> grant codeBase "file:${catalina.home}/server/-" {
>         permission java.lang.RuntimePermission
> "accessClassInPackage.org.apache.catalina.util.ParameterMap";
> };
>
> This statement fixes the problem using Solaris and Sun's JDK 1.3. It
> does
> NOT fix the issue in the following IBM JDK:
>
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1)
> Classic VM (build 1.3.1, J2RE 1.3.1 IBM AIX 5L for PowerPC (64 bit
> JVM)
> build caix641311-20011123a (JIT enabled: jitc))
>
> Any ideas?
>
> Ben Ricker
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to