|
| 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 standa-lone Tomcat nothing special, adding to
server.xml after <Context>:
<Context className="...>
....
<Resources className="org.apache.naming.resources.FileDirContext" allowLinking="true" />
....
</Context>
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:
....
<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 = "${jboss.server.home.dir}/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>
....
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? How can I configure TomcatEmbedded of
JBoss?
Thanks in advance.
|
|