Dear users and developers, 

I'm using CAS and it's working great out-of-the-box. 

Nevertheless, several services and apps are installed on the platform for which 
a common header is required. This common header is also required for CAS. 

So, a common folder "themes" - containing css, images, etc. - has been created 
and is shared through apps (on different locations) using symbolic links. 

The use of symbolic links is OK with php apps hosted on Apache. 

But for Tomcat, that is not the case. The symlinks have been created in the CAS 
webapp, but they are not followed (when files are used instead of symlinks it 
works OK).

After a search, I found that symlinks can be followed by Tomcat 
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html - it says:
"allowLinking : If the value of this flag is true, symlinks will be allowed 
inside the web application, pointing to resources outside the web application 
base path. If not specified, the default value of the flag is false."

The problem is that I don't know how to define this property.

I created a file /etc/tomcat5.5/Catalina/localhost/cas.xml

<Context path="/cas" docBase="/usr/share/tomcat5.5/webapps/cas/" 
reloadable="true" crossContext="true" allowLinking="true">
        <Resources className="org.apache.naming.resources.FileDirContext" />
</Context>

When I restart Tomcat, it works great, symlinks are followed. But when I reboot 
the platform or redeploy cas.war, the file 
/etc/tomcat5.5/Catalina/localhost/cas.xml is removed. 

I have tried to move /etc/tomcat5.5/Catalina/localhost/cas.xml to 
/usr/share/tomcat5.5/webapps/cas/META-INF/context.xml but when I restart 
Tomcat, CAS does not work anymore (no ressource found). 

So, could you help to enable symbolic links with Tomcat 5.5 and CAS server 
3.3.1 in a persistent way ? 

Thanks for your help, 

Best regards !

Config: Debian Lenny 
Tomcat 5.1
OpenJDK 6
CAS Server 3.3.1
-- 
You are currently subscribed to cas-dev@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev

Reply via email to