You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sarah Grimley <sa...@yahoo.co.uk> on 2002/12/09 17:59:28 UTC

RE: Advice please: Apache doesn't seem to resolve Tomcat symbolic links

Hi John,

I hope this is what you mean:

apache access_log:

170.237.230.231 - - 2002-12-09 17:55:53 0 "GET /seqreq/icons/seqwright.gif HTTP/1.1" 404 758
170.237.230.231 - - 2002-12-09 17:55:53 0 "GET /seqreq/icons/info9.gif HTTP/1.1" 404 746
170.237.230.231 - - 2002-12-09 17:55:53 0 "GET /seqreq/icons/w2_reset.gif HTTP/1.1" 404 755
170.237.230.231 - - 2002-12-09 17:55:53 0 "GET /seqreq/icons/w2_submit.gif HTTP/1.1" 404 758


 "Turner, John" <JT...@AAS.com> wrote:
What do the Apache logs say for those requests?

John


> -----Original Message-----
> From: Sarah Grimley [mailto:sarahg_ml@yahoo.co.uk]
> Sent: Monday, December 09, 2002 10:51 AM
> To: Tomcat Users List
> Subject: Advice please: Apache doesn't seem to resolve Tomcat symbolic
> links
> 
> 
> 
> Inside my WEBAPP my subfolders 'ICONS' and 'TEMPLATES' are 
> actually symbolic links to folders elsewhere.
> I have enabled them to be accessed by my WebApp, by placing 
> this code inside the Tomcat server.xml:
> 
> > reloadable="true" crossContext="true">
> > prefix="MY_APP_log." suffix=".txt"
> timestamp="true"/>
> > ="org.apache.naming.resources.FileDirContext"
> allowLinking="true"/>
> 
> 
> I can then refer to gifs in my HTML as: <../icons/mypicture.gif>
> 
> This all works fine when I used Tomcat as standalone.
> 
> Now I want to use Apache with Tomcat as the webserver.
> 
> I configure Apache as follows:
> 
> 
> 
> WebAppConnection warpConnection warp localhost:8008
> WebAppDeploy examples warpConnection /examples/
> WebAppInfo /webapp-info
> 
> WebAppDeploy seqreq warpConnection /MY_APP/
> 
> 
> 
> I also include following in the Tomcat server.xml:
> 
> 
> 
> > className="org.apache.catalina.connector.warp.WarpConnector"
> port="8008" minProcessors="5" maxProcessors="75"
> enableLookups="true" appBase="webapps"
> acceptCount="10" debug="0"/>
> 
> > name="Apache" debug="0">
> 
> > prefix="apache_log." suffix=".txt"
> timestamp="true"/>
> 
> 
> 
> 
> 
> 
> 
> Now my problem is that the symbolic links no longer 
> resolve... so my gifs are not found. The rest of the files 
> can be accesses no problem, so I am sure it is because of the 
> 'virtual' links to the icon folder.
> 
> Can anybody help me to solve this problem? Thank you.
> 
> 
> 
> 
> ---------------------------------
> With Yahoo! Mail you can get a bigger mailbox -- choose a 
> size that fits your needs
> 

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 




---------------------------------
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs

Re: Advice please: Apache doesn't seem to resolve Tomcat symbolic links

Posted by M <ma...@prnewswire.co.uk>.
Sarah Grimley wrote:
> 
> Hi John,
> 
> I hope this is what you mean:
> 
> apache access_log:
> 
> 170.237.230.231 - - 2002-12-09 17:55:53 0 "GET
> /seqreq/icons/seqwright.gif HTTP/1.1" 404 758

These are the errors you get if its not working as well as when the
files not there...

Sym links dont work in 4.1.12..

You need version 4.1.14 and something like the following:

<Resources className="org.apache.naming.resources.FileDirContext" allo
wLinking="true" docBase="/" absoluteBase="/"  caseSensitive="false"/>

Or if you have 4.1.16 or newer you can loose the caseSensitive="false"
bit.


-- 
Regards,
M

Martin Sillence
PR Newswire

DL +44 (0)1865 78 5065
F  +44 (0)1865 78 5100
W  www.prnewswire.eu.com
---------------------------------------
Any views or opinions are solely those of the author and do not
necessarily represent those of PR Newswire Europe. The e-mail
contents are intended only for addressee and may contain
confidential and/or privileged material. If you are not the
intended recipient, please do not read, copy, use or disclose
this communication and notify the sender.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>