• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat 6.0 fails to read symlink symbolic link file

 
Greenhorn
Posts: 6
Oracle Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1067
2
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Let's go to the waterfront with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic