You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Artur Rataj <ar...@gmail.com> on 2007/03/21 14:06:26 UTC

A disk directory context without cache

Hello. How to configure a context that displays the contents of a
given disk directory, but without it being cached? I tried this, but
it does not work at all, i. e. I get an error message from tomcat when
trying to access /disk.

     <Context path="/disk"
docBase="/home/lib/disk/"
                reloadable="true">
         <Logger className="org.apache.catalina.logger.FileLogger
Source code of org.apache.catalina.logger.FileLogger"
                    prefix="localhost_examples_log." suffix=".txt"
                 timestamp="true"/>
         <Ejb   name="ejb/EmplRecord" type="Entity"
                home="com.wombat.empl.EmployeeRecordHome"
              remote="com.wombat.empl.EmployeeRecord"/>
         <Environment name="maxExemptions" type="java.lang.Integer
Source code of java.lang.Integer"
                     value="15"/>
         <Parameter name="context.param.name" value="context.param.value"
                    override="false"/>
         <Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
                   type="javax.sql.DataSource Source code of
javax.sql.DataSource"/>
       </Context>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: A disk directory context without cache

Posted by Artur Rataj <ar...@gmail.com>.
I have just copied the context from another one in the default
configuration file.

On 3/21/07, Mikolaj Rydzewski <mi...@ceti.pl> wrote:
> Artur Rataj wrote:
> >     <Context path="/disk"
> > docBase="/home/lib/disk/"
> >                reloadable="true">
> >         <Logger className="org.apache.catalina.logger.FileLogger
> > Source code of org.apache.catalina.logger.FileLogger"
> >                    prefix="localhost_examples_log." suffix=".txt"
> >                 timestamp="true"/>
> >         <Ejb   name="ejb/EmplRecord" type="Entity"
> >                home="com.wombat.empl.EmployeeRecordHome"
> >              remote="com.wombat.empl.EmployeeRecord"/>
> Where can I read about <Ejb/> element? I cannot find it in the docs.
>
> --
> Mikolaj Rydzewski <mi...@ceti.pl>
>
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: A disk directory context without cache

Posted by Mikolaj Rydzewski <mi...@ceti.pl>.
Artur Rataj wrote:
>     <Context path="/disk"
> docBase="/home/lib/disk/"
>                reloadable="true">
>         <Logger className="org.apache.catalina.logger.FileLogger
> Source code of org.apache.catalina.logger.FileLogger"
>                    prefix="localhost_examples_log." suffix=".txt"
>                 timestamp="true"/>
>         <Ejb   name="ejb/EmplRecord" type="Entity"
>                home="com.wombat.empl.EmployeeRecordHome"
>              remote="com.wombat.empl.EmployeeRecord"/>
Where can I read about <Ejb/> element? I cannot find it in the docs.

-- 
Mikolaj Rydzewski <mi...@ceti.pl>


Re: A disk directory context without cache

Posted by Hassan Schroeder <ha...@gmail.com>.
On 3/21/07, Artur Rataj <ar...@gmail.com> wrote:
> .... it all gives
> 404 when trying
>
> http://<address>/disk

Do you have a valid welcome file, or are you specifically trying a file
that you *know* is there? e.g. either

  http://<address>/disk/index.jsp
or
  http://<address>/disk/foo.html

Directory listing isn't on by default; if you want it, you'll need to make
that change in web.xml.

HTH,
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: A disk directory context without cache

Posted by Artur Rataj <ar...@gmail.com>.
Please help me. I tried this:

        <Context path="/disk" docBase="/home/lib/disk" debug="0"
                 reloadable="true">
        </Context>

with various combinations of slashes, with a symlink etc. it all gives
404 when trying

http://<address>/disk

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org