You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/03/01 20:36:55 UTC

DO NOT REPLY [Bug 6797] New: - Class loader fails if it can't read entire tree upto a classfile

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6797>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6797

Class loader fails if it can't read entire tree upto a classfile

           Summary: Class loader fails if it can't read entire tree upto a
                    classfile
           Product: Tomcat 4
           Version: 4.0.2 Final
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: chris@lists.jakdaw.org


If I run tomcat under it's own user and have a webapp in /home/user/webapp/ -
with file permissions like:

/home/user        drwx--x--x
/home/user/webapp drwxr-xr-x

Then the class loader will fail to load any classes (which might be on the disk
at /home/user/webapp/WEB-INF/classes/com/domain/Class.class) without a
meaningful error.

Changing permissions to:

/home/user	  drwxr-xr-x
/home/user/webapp drwxr-xr-x

Will fix the problem but there's no reason at all why the class loader should
require anything more than "x" permission to the directories in which a class
path lies.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>