<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Following symbolic links in Tomcat</title>
	<atom:link href="http://www.isocra.com/2008/01/following-symbolic-links-in-tomcat/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.isocra.com/2008/01/following-symbolic-links-in-tomcat/</link>
	<description>Thoughts and tutorials on web design, Java, Javascript and project management</description>
	<lastBuildDate>Sat, 04 Feb 2012 18:33:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Eze</title>
		<link>http://www.isocra.com/2008/01/following-symbolic-links-in-tomcat/comment-page-1/#comment-2932</link>
		<dc:creator>Eze</dc:creator>
		<pubDate>Wed, 25 Jan 2012 00:10:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.isocra.com/new/2008/01/following-symbolic-links-in-tomcat/#comment-2932</guid>
		<description>Just so you know, you can do this for all webapps by editing the context.xml in /etc/tomcat6/ (in Ubuntu)

&lt;!-- The contents of this file will be loaded for each web application --&gt;

   ... more stuff here ...
</description>
		<content:encoded><![CDATA[<p>Just so you know, you can do this for all webapps by editing the context.xml in /etc/tomcat6/ (in Ubuntu)</p>
<p>&lt;!&#8211; The contents of this file will be loaded for each web application &#8211;&gt;</p>
<p>   &#8230; more stuff here &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: knightBreed</title>
		<link>http://www.isocra.com/2008/01/following-symbolic-links-in-tomcat/comment-page-1/#comment-1620</link>
		<dc:creator>knightBreed</dc:creator>
		<pubDate>Wed, 17 Aug 2011 02:51:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.isocra.com/new/2008/01/following-symbolic-links-in-tomcat/#comment-1620</guid>
		<description>What about webapps that use struts and/or spring? These do not have a traditional layout, i.e. there will not be a single context.xml file to modify...</description>
		<content:encoded><![CDATA[<p>What about webapps that use struts and/or spring? These do not have a traditional layout, i.e. there will not be a single context.xml file to modify&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sprokkie</title>
		<link>http://www.isocra.com/2008/01/following-symbolic-links-in-tomcat/comment-page-1/#comment-1239</link>
		<dc:creator>sprokkie</dc:creator>
		<pubDate>Fri, 01 Oct 2010 10:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.isocra.com/new/2008/01/following-symbolic-links-in-tomcat/#comment-1239</guid>
		<description>i think i will make a cron to copy to rsync the file into the ROOT folder
that should work</description>
		<content:encoded><![CDATA[<p>i think i will make a cron to copy to rsync the file into the ROOT folder<br />
that should work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DenisH</title>
		<link>http://www.isocra.com/2008/01/following-symbolic-links-in-tomcat/comment-page-1/#comment-1238</link>
		<dc:creator>DenisH</dc:creator>
		<pubDate>Fri, 01 Oct 2010 10:14:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.isocra.com/new/2008/01/following-symbolic-links-in-tomcat/#comment-1238</guid>
		<description>Sorry, I&#039;m running out of ideas. Is there any chance you could set up a vanilla installation of Tomcat 6 somewhere else and create a brand new single app and then step by step ensure you&#039;ve got a context.xml file for the new app, then add allowLinking, then add a link? That would check that your version of Tomcat does support it and that you&#039;re setting up the symbolic link correctly?

Other than that, I don&#039;t know what to suggest :-(</description>
		<content:encoded><![CDATA[<p>Sorry, I&#8217;m running out of ideas. Is there any chance you could set up a vanilla installation of Tomcat 6 somewhere else and create a brand new single app and then step by step ensure you&#8217;ve got a context.xml file for the new app, then add allowLinking, then add a link? That would check that your version of Tomcat does support it and that you&#8217;re setting up the symbolic link correctly?</p>
<p>Other than that, I don&#8217;t know what to suggest <img src='http://www.isocra.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sprokkie</title>
		<link>http://www.isocra.com/2008/01/following-symbolic-links-in-tomcat/comment-page-1/#comment-1237</link>
		<dc:creator>sprokkie</dc:creator>
		<pubDate>Fri, 01 Oct 2010 10:03:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.isocra.com/new/2008/01/following-symbolic-links-in-tomcat/#comment-1237</guid>
		<description>I made a symbolic link in the test folder to a file.
It still did not work. :(

The server.xml is very complicated, 
I addes the line with allowlinking to another file  it is called
aplicationcontect.xml  then the aplication did not work anymore

i ran out of context.xml file&#039;s ....</description>
		<content:encoded><![CDATA[<p>I made a symbolic link in the test folder to a file.<br />
It still did not work. <img src='http://www.isocra.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>The server.xml is very complicated,<br />
I addes the line with allowlinking to another file  it is called<br />
aplicationcontect.xml  then the aplication did not work anymore</p>
<p>i ran out of context.xml file&#8217;s &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DenisH</title>
		<link>http://www.isocra.com/2008/01/following-symbolic-links-in-tomcat/comment-page-1/#comment-1236</link>
		<dc:creator>DenisH</dc:creator>
		<pubDate>Fri, 01 Oct 2010 09:30:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.isocra.com/new/2008/01/following-symbolic-links-in-tomcat/#comment-1236</guid>
		<description>Right, if you have 3 context.xml files, you need to be careful to see which one is being used. I wouldn&#039;t modify all of them. I would be tempted to rename them out of the way one at a time until you find it doesn&#039;t work any more. (If you find it does still work, have a look in server.xml and other config files in case there are even more references to your app).

Once you&#039;ve found the appropriate context.xml, you can add allowLinking=&quot;true&quot; and test before and after to see if there is any difference. If you put a symbolic link to a file inside the test folder that works, does link work there? That&#039;s how I use it. I have a bunch of applications that all share the same admin pages, so I have a symbolic link to the admin directory which is outside each of the individual apps.</description>
		<content:encoded><![CDATA[<p>Right, if you have 3 context.xml files, you need to be careful to see which one is being used. I wouldn&#8217;t modify all of them. I would be tempted to rename them out of the way one at a time until you find it doesn&#8217;t work any more. (If you find it does still work, have a look in server.xml and other config files in case there are even more references to your app).</p>
<p>Once you&#8217;ve found the appropriate context.xml, you can add allowLinking=&#8221;true&#8221; and test before and after to see if there is any difference. If you put a symbolic link to a file inside the test folder that works, does link work there? That&#8217;s how I use it. I have a bunch of applications that all share the same admin pages, so I have a symbolic link to the admin directory which is outside each of the individual apps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sprokkie</title>
		<link>http://www.isocra.com/2008/01/following-symbolic-links-in-tomcat/comment-page-1/#comment-1235</link>
		<dc:creator>sprokkie</dc:creator>
		<pubDate>Fri, 01 Oct 2010 09:14:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.isocra.com/new/2008/01/following-symbolic-links-in-tomcat/#comment-1235</guid>
		<description>I did a &quot;file find&quot; on context.xml
I found 3 file&#039;s  in each file i added the allowLinking=true line.

i run mango on this tomcat server.  http://mango.serotoninsoftware.com/

Other folders are accesable.
i made a folder called test and put a file in that folder
it was accesable with the browser.
The folder that is the symbolic link is not accesable

What could i try more ?</description>
		<content:encoded><![CDATA[<p>I did a &#8220;file find&#8221; on context.xml<br />
I found 3 file&#8217;s  in each file i added the allowLinking=true line.</p>
<p>i run mango on this tomcat server.  <a href="http://mango.serotoninsoftware.com/" rel="nofollow">http://mango.serotoninsoftware.com/</a></p>
<p>Other folders are accesable.<br />
i made a folder called test and put a file in that folder<br />
it was accesable with the browser.<br />
The folder that is the symbolic link is not accesable</p>
<p>What could i try more ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DenisH</title>
		<link>http://www.isocra.com/2008/01/following-symbolic-links-in-tomcat/comment-page-1/#comment-1234</link>
		<dc:creator>DenisH</dc:creator>
		<pubDate>Fri, 01 Oct 2010 08:43:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.isocra.com/new/2008/01/following-symbolic-links-in-tomcat/#comment-1234</guid>
		<description>Hi Sprokkie,

You&#039;d have to give us a bit more info. Do you know if it&#039;s finding the context.xml file? (You could check this by setting some other property and then checking to see if it is set, have a look at http://tomcat.apache.org/tomcat-6.0-doc/config/context.html to give you ideas of what you could change.)

Then next try pointing at a directory that isn&#039;t symbolic and check that works, then if it does, change it to the symbolic link and see if it stops working. 

You should probably ensure there aren&#039;t any other context.xml files that take priority over the one you&#039;re setting up. Again, check the link above as it explains the order that Tomcat uses to find these.

Good luck!</description>
		<content:encoded><![CDATA[<p>Hi Sprokkie,</p>
<p>You&#8217;d have to give us a bit more info. Do you know if it&#8217;s finding the context.xml file? (You could check this by setting some other property and then checking to see if it is set, have a look at <a href="http://tomcat.apache.org/tomcat-6.0-doc/config/context.html" rel="nofollow">http://tomcat.apache.org/tomcat-6.0-doc/config/context.html</a> to give you ideas of what you could change.)</p>
<p>Then next try pointing at a directory that isn&#8217;t symbolic and check that works, then if it does, change it to the symbolic link and see if it stops working. </p>
<p>You should probably ensure there aren&#8217;t any other context.xml files that take priority over the one you&#8217;re setting up. Again, check the link above as it explains the order that Tomcat uses to find these.</p>
<p>Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sprokkie</title>
		<link>http://www.isocra.com/2008/01/following-symbolic-links-in-tomcat/comment-page-1/#comment-1233</link>
		<dc:creator>sprokkie</dc:creator>
		<pubDate>Fri, 01 Oct 2010 08:41:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.isocra.com/new/2008/01/following-symbolic-links-in-tomcat/#comment-1233</guid>
		<description>the line is  ( see above)

context allowLinking=&quot;true&quot;  

i cannot use the real line, id did that but it wil not display here</description>
		<content:encoded><![CDATA[<p>the line is  ( see above)</p>
<p>context allowLinking=&#8221;true&#8221;  </p>
<p>i cannot use the real line, id did that but it wil not display here</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sprokkie</title>
		<link>http://www.isocra.com/2008/01/following-symbolic-links-in-tomcat/comment-page-1/#comment-1232</link>
		<dc:creator>sprokkie</dc:creator>
		<pubDate>Fri, 01 Oct 2010 07:30:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.isocra.com/new/2008/01/following-symbolic-links-in-tomcat/#comment-1232</guid>
		<description>I tried to get the symbolic link working on my tomcat 6.0.20
in my context.xml file i only have this line

The context.xml is located in:
 /home/user/apache-tomcat-6.0.30/webapps/hostmanager/meta-inf

any one an idea why this is not working

cheers
Sprokkie</description>
		<content:encoded><![CDATA[<p>I tried to get the symbolic link working on my tomcat 6.0.20<br />
in my context.xml file i only have this line</p>
<p>The context.xml is located in:<br />
 /home/user/apache-tomcat-6.0.30/webapps/hostmanager/meta-inf</p>
<p>any one an idea why this is not working</p>
<p>cheers<br />
Sprokkie</p>
]]></content:encoded>
	</item>
</channel>
</rss>

