cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <>
Subject Re: Building Cocoon 2 - warnings, exceptions and errors
Date Fri, 14 Jul 2000 12:22:13 GMT
"N. Sean Timm" wrote:
> >* When trying to access *.xml pages, get this:
> - java.lang.IllegalAccessException:
> >org/apache/cocoon/Cocoon...
> Not sure on this one...

Check the permissions of the jar file and the directories it's in.
UNIX will not allow you access to many files if it was created by
root and used by another user.

Try 'ls -l' to get the permissions on the jar and surrounding
directory.  If you get a result that looks like this:

-rwxr-x--- root root  9287532  cocoon.jar

that means that the user 'root' has read/write/execute privilege,
the group 'root' has read/execute privilege, and nobody else has
any privilege at all.

Something more useful would be to change it's mode like this:

chmod 755 cocoon.jar

Which still only allows the user and root to delete/modify the
file, but everyone else can read and execute.

Do that for the surrounding directory too, because sometimes
you can't read the directory which will also give you the
IllegalAccessException even if the file itself is OK.

And lastly, did you do _anything_ to the java.policy file?

View raw message