Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 6.0 fails to read symlink symbolic link file

 
chanzeb cecak
Greenhorn
Posts: 6
Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 986
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not clear on which file you are trying to "link" to.
 
chanzeb cecak
Greenhorn
Posts: 6
Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic