You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Luc Foisy <Lu...@technical-magic.com> on 2004/09/27 19:50:41 UTC
Linking to smbmount into context classes directory
We are mounting a windows share onto a RedHat box, trying to symlink it in multiple context WEB-INF/classes directories
It was working for us with tomcat 4, but can not get it to work right with tomcat 5
The smb mount:(not quite sure if its alright to have it here, but thats where it was put)
/home/tomcat/webapp/mount/tmc2ksbs/smbmountpoint
The context:
/home/tomcat/webapp/crm
We are using the following to create the link to the mount:
ln -s /home/tomcat/webapps/mount/tmc2ksbs/smbmountpoint /home/tomcat/webapps/crm/WEB-INF/classes
When trying to access the context are crm, can not compile jsps because packages in the classes directory can not be found.
This is the context xml in /home/tomcat/conf/Catalina/localhost/
<Context
className="org.apache.catalina.core.StandardContext"
cachingAllowed="false"
charsetMapperClass="org.apache.catalina.util.CharsetMapper"
cookies="true"
crossContext="false"
debug="0"
docBase="crm"
mapperClass="org.apache.catalina.core.StandardContextMapper"
path="/crm"
privileged="false"
reloadable="false"
swallowOutput="true"
useNaming="true"
wrapperClass="org.apache.catalina.core.StandardWrapper">
<Logger
className="org.apache.catalina.logger.FileLogger"
debug="0"
directory="logs"
prefix="crm_log."
suffix=".txt"
timestamp="true"
verbosity="1"
/>
<Resources
className="org.apache.naming.resources.FileDirContext"
allowLinking="true"
docBase=""
/>
</Context>
We were assuming the allowLinking was what was letting us do this with tomcat 4, since I believe the documentation read that you needed this to allow sym linking to other places.
Anyone have some marvelous insight they could offer?
Luc