I can't get this to work.  I have the following directory
structure:
/opt/jakarta/webapps/siteexplorer

Under siteexplorer, I have a symbolic lin named htmldoc.  I can
follow the links manually and everything works.

Here is how the context is defined in the server.xml:
<Context docBase="./siteexplorer" priveleged="false"
path="/siteexplorer" >
    <Resources
className="org.apache.naming.resources.FileDirContext"
allowLinking="true" caseSensitive="false" />
</Context> 


I am running tomcat 4.1.12 on Linux.  I get no messages and I am
NOT starting tomcat with -security.  I even made the following
change to catalina.policy:
grant codeBase
"file:${catalina.home}/webapps/siteexplorer/htmldoc/-" {
        permission java.security.AllPermission;  
};



Does anybody have any clue?

--- Tim Funk <[EMAIL PROTECTED]> wrote:
> Tomcat by default doesn't like symbolic links. Its a security
> vulnerablility. 
> To use sym links - you must tell tomcat to use them.
> 
>
http://marc.theaimsgroup.com/?l=tomcat-user&m=105159411609623&w=2
> 
> -Tim
> 
> Norris Shelton wrote:
> > We have some HTML files that are on another machine.  A link
> was
> > created (htmldoc).
> > 
> > I then modified the server.xml by adding the following to
> the
> > context definition:
> > <Resources
> > className="org.apache.naming.resources.FileDirContext"
> > caseSensitive="false" allowLinking="true"/>
> > 
> > The context will not load (no errors).  I even added an
> entry in
> > the catalina.policy:
> > // The permissions granted to the context WEB-INF/classes
> > directory
> > grant codeBase
> > "file:${catalina.home}/webapps/siteexplorer/htmldoc/-" {
> > };
> > 
> > 
> > If I remove the allowLinking resource, the app starts
> correctly.
> >  Anyone have any ideas on what the problem is.  
> > 
> > =====
> > 
> > Norris Shelton
> > Software Engineer
> > Sun Certified Java 1.1 Programmer
> > Appriss, Inc.
> > ICQ# 26487421
> > AIM NorrisEShelton
> > YIM norrisshelton
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> > 
> >
>
---------------------------------------------------------------------
> > 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]
> 


=====

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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

Reply via email to