What happens if you copy htmldoc to its symlink location and not use the sym link? Do you still get the same error? If you do - then the error has nothing to do with symlinks.

-Tim (Grasping at straws)

Norris Shelton wrote:
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.



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



Reply via email to