[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - follow symbolic links just in one single war file

karink do-not-reply at jboss.com
Thu Jun 21 11:52:48 EDT 2007


Hi,
I am using JBoss 4.0.5 with Tomcat 5.5.9 embedded.
I would like to deploy an exploded war file having some symlinks to some static content. For all other deployed war files deployed in the same application server following the symbolic links should not be able.

I read several forums entries about this issue giving the solution to 
configure the stuff in the global server.xml file in the default context
like that
  <DefaultContext allowLinking="true"/>	

As I would like to have it just for my single war file, this could not be the solution for me.

I tried deploying a context.xml file in WEB-INF directory of my war file with
the following content

<Context>
  | <Resources className="org.apache.naming.resources.FileDirContext"
  |             allowLinking="true" docBase="" />
  | </Context>

Debugging it, I see that the context.xml is loaded, but nevertheless following the symbolic link fails.

Any help is really appreciated 
Regards Karin

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056571#4056571

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056571



More information about the jboss-user mailing list