aspose file tools*
The moose likes Tomcat and the fly likes Tomcat 6.0 fails to read symlink symbolic link file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 6.0 fails to read symlink symbolic link file" Watch "Tomcat 6.0 fails to read symlink symbolic link file" New topic
Author

Tomcat 6.0 fails to read symlink symbolic link file

chanzeb cecak
Greenhorn

Joined: Jun 04, 2013
Posts: 5
This is what I have my /tomcat/conf/context.xml
<Context>
<Resource name="jdbc/black"
driverClassName="oracle.jdbc.OracleDriver"
auth="Container"
type="javax.sql.DataSource"
url=......................
username="blah"
password="whoaaa"/>

<Resource name="jdbc/brown"
.
.
<Resource name="jdbc/purple"

.
.
<Context path="/appname" override="true" docBase="appname" reloadable="false" crossContext="true" allowLinking="true"/>
</Context>


I tried to add /tomcat/webapps/appname/META-INF/context.xml ( still doesnt work)

<Context>
<Context path="/appname" override="true" docBase="appname" reloadable="false" crossContext="true" allowLinking="true"/>
</Context>


but my app still cannot read the symbolically linked file but if replaced with the real file , works fine.
My tomcat version is 6.0.14 on linux.
Any ideas where the issue might be?
All help is very much appreciated.
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 984

Not clear on which file you are trying to "link" to.


Please ignore post, I have no idea what I am talking about.
chanzeb cecak
Greenhorn

Joined: Jun 04, 2013
Posts: 5
yeah under our /webapp/appname/WEB-INF. my symlink is pointing to the real location of the a properties file.
Tomcat simply doesn not want to read this file through the symlink....
checked permissions..OK
file & tomcat owner...OK.
made sure allowLinking=True is in the context, still cannot read it.
is it jdk1.6.0_16??
chanzeb cecak
Greenhorn

Joined: Jun 04, 2013
Posts: 5
it was a bad xml file. fixed that and it worked fine.wrong context declaration( syntax was OK though) prohibited the entire line to be ignored hence the symlink wasn't being read(mainly the allowLinking=true)
once fixed , it got picked up.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 6.0 fails to read symlink symbolic link file
 
Similar Threads
Tomcat application won't start with MySQL Connection Pooling
can't get access to mysql database
include doesn't recognize relative path from sub folder
hot deployment refuses to work
How to do Communication between two web applications