RE: soft linked directories.

2003-09-02 Thread Detlef Brendle
dont think this will work with 'war' files but I'll give it a go.

thanks,
detlef

keep you informed.

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 12:26 AM
To: Tomcat Users List
Subject: Re: soft linked directories.


Could it be this?
http://jakarta.apache.org/tomcat/faq/misc.html#symlink

-Tim

Detlef Brendle wrote:

 Im having a behaviour and dont know if this is a feature or a misbehaviour
 of tomcat.

 I set up a context with the name '/foo/'.
 A controller servlet manages a listing of available files within the
 directory '/foo/images/'.

 All works fine except if I add softlinked diretories underneath 'images/'.
 c.f.
 'images/softLinkedDir' -
 The directory listing looks like:
 *
 lrwxrwxrwx 1 user group ... softLinkedDir - /foo/bar/dir
 *

 The behaviour now is that a request such as img
 src=/foo/images/softLinkedDir/a.gif  ends in a 404 error
 saying that the requested resource a.gif does not exist. Although the file
 exists phsically on the file system and can be read by the user under
which
 Tomcat is operating.

 Adding more to this I tried to narrow the problem by generating tests. I
 found out that if I soft link a file (such as 'a.gif') the resource can be
 read.

 Therefore I can ensure that all permissions to the requested resource are
ok
 and the resource manager can read the file allright.

 I guess that the problem comes from the soft linked dir.

 Has someone else got the same behaviour ???

 My setup:

 Engine : tomcat 4.1.18
 OS : redhat linux

 thanks for your help,

 detlef


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Howto : how to set context specific attributes when using 'war' files

2003-09-02 Thread Detlef Brendle
Hi all,

I need to a special treatment of symbolic links as mentioned within this
mailinglist before.

***
 Context path=/myApp docBase=myApp debug=0
   Resources className=org.apache.naming.resources.FileDirContext
allowLinking=true  /
   /Context
***

This works fine when defining webApps within the server.xml file.

I would like to drop a 'war' file in the webapps/ dir of the tomcat
instance.
But how do I then define this resource element ?

Can I define it in the WEB-INF/web.xml file ?



thanks for your help,

detlef


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



soft linked directories.

2003-09-01 Thread Detlef Brendle
Im having a behaviour and dont know if this is a feature or a misbehaviour
of tomcat.

I set up a context with the name '/foo/'.
A controller servlet manages a listing of available files within the
directory '/foo/images/'.

All works fine except if I add softlinked diretories underneath 'images/'.
c.f.
'images/softLinkedDir' -
The directory listing looks like:
*
lrwxrwxrwx 1 user group ... softLinkedDir - /foo/bar/dir
*

The behaviour now is that a request such as img
src=/foo/images/softLinkedDir/a.gif  ends in a 404 error
saying that the requested resource a.gif does not exist. Although the file
exists phsically on the file system and can be read by the user under which
Tomcat is operating.

Adding more to this I tried to narrow the problem by generating tests. I
found out that if I soft link a file (such as 'a.gif') the resource can be
read.

Therefore I can ensure that all permissions to the requested resource are ok
and the resource manager can read the file allright.

I guess that the problem comes from the soft linked dir.

Has someone else got the same behaviour ???

My setup:

Engine : tomcat 4.1.18
OS : redhat linux

thanks for your help,

detlef


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: configure the tomcat for my own error page

2000-11-02 Thread Detlef Brendle

check out the docu from the jakarta tomcat project.


d.
On Thu, 02 Nov 2000, you wrote:
 I want to configure the tomcat to use a given error page. How can I do
 that?
 
 Katrin Seiffert