1 Reply Latest reply on Feb 24, 2004 4:11 AM by data

    Tomcat4.1.24 Embedded don't follow simlink

    data Newbie

      Hi,
      I use jboss-3.2.1 + tomcat-4.1.24 embedded.
      The problem is setting the option that let Tomcat to follow file system
      simbolic link, normally forbidden for security reason.
      With stand-alone Tomcat nothing special, adding to
      server.xml after :

      <Context className="...>
      ...

      ...


      it works.

      My problem is to do the same with the bundle version Jboss's Tomcat.
      Inside the dir. $JBOSS_HOME/server/default/deploy/jbossweb-tomcat.sar/META-INF
      exist the file jboss-service.xml with Tomcat config. section:
      ...








      <!-- Access logger -->


      <!-- Default context parameters -->




      <!-- A HTTP/1.1 Connector on port 8080 -->


      <!-- A AJP 1.3 Connector on port 8009 -->






      ...
      I tried adding my context and the allowlinking="true", but nothing. It
      seems to me that jboss ignore my changes.

      Someone with the same problems?

      Thanks in advance.

        • 1. Re: Tomcat4.1.24 Embedded don't follow simlink
          data Newbie

           

          these are the code for Tomcat Stand-alone:
          
          <Resources className="org.apache.naming.resources.FileDirContext" allowLinking="true" />
          
          and this is jboss-service.xml:
          ...
          
          | <attribute name="Config">
          | <Server>
          | <Service name = "JBoss-Tomcat">
          | <Engine name="MainEngine" defaultHost="localhost">
          | <Logger className = "org.jboss.web.catalina.Log4jLogger"
          | verbosityLevel = "warning" category = "org.jboss.web.localhost.Engine"/>
          | <Host name="localhost">
          |
          | <!-- Access logger -->
          | <Valve className = "org.apache.catalina.valves.AccessLogValve"
          | prefix = "localhost_access" suffix = ".log"
          | pattern = "common" directory = "/log" />
          |
          | <!-- Default context parameters -->
          | <DefaultContext cookies = "true" crossContext = "true" override = "true" />
          |
          | </Host>
          | </Engine>
          | <!-- A HTTP/1.1 Connector on port 8080 -->
          | <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
          | port="8080" minProcessors="3" maxProcessors="10"
          | enableLookups="false" acceptCount="10" debug="0"
          | connectionTimeout="20000" useURIValidationHack="false" />
          |
          | <!-- A AJP 1.3 Connector on port 8009 -->
          | <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
          | port="8009" minProcessors="5" maxProcessors="75"
          | enableLookups="false" redirectPort="8443"
          | acceptCount="10" debug="0" connectionTimeout="20000"
          | useURIValidationHack="false"
          | protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
          |
          | </Service>
          | </server>
          | </attribute>
          |
          ...