paperclips-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paperclips-discuss] Problems with Paperclips CVS


From: Nic Ferrier
Subject: Re: [Paperclips-discuss] Problems with Paperclips CVS
Date: Wed, 10 Nov 2004 12:37:31 +0000

Nic Ferrier <address@hidden> writes:

> Andy Madigan <address@hidden> writes:
>
>> I tried the latest Paperclips in CVS and it works insofar as the server
>> does start, but it can't find any files (it won't even list the root
>> directory). I've tried using a simple server.xml as well as simply
>> specifying a docroot on the command line. This is using sablevm
>> 1.1.6. 
>
> I have not run paperclips against sablevm. I'll install debian's and
> see what happens.
>
> But Paperclips definitely works. I just tested it again with the files
> you submitted to me. 
>
> So it looks like it might be a sable problem. We'll find out.

Er... I just ran it with sablevm and it worked fine.

Latest CVS and I did this:

$ cd paperclips # The CVS directory
$ cd ..         # change to where the webapp is
$ sablevm -c`makepath paperclips/lib/*.jar:paperclips/paperclips.jar` \
>    --config=server.xml

Where the server.xml was what you gave me (I think) which is this:

   <!DOCTYPE server PUBLIC 
             "-//Free Software Foundation//DTD Paperclips  Server //EN"
              "http://www.gnu.org/software/paperclips/server.dtd";>

   <!-- an example paperclips config file -->
   <server>

     <warpath path="."/>

     <!-- only a server can have a tcp port setup.
          More than one can be declared though. -->
     <tcp port="7171"/>

     <host>

       <!-- Logging of host stuff will go to a special log
            file which is changed every day and called by the name
            specified.
         -->
       <log level="WARNING">
         <sink class-name="gnu.paperclips.utils.DailyLogSink" 
param="'www-tf-'dd'-'MM'-'yyyy"/>
       </log>

       <!-- Log all HTTP requests for this host. 
            Eventually this will allow Apache compatible log specs. -->
       <httplog format="%a %s" />

       <!-- Create a mapping for an HTTP Server at / -->
           <mapping pattern="/">
                   <file-dir name="ROOT" />
           </mapping>
     </host>

   </server>


The ROOT directory looks like this:

  total used in directory 12K available 14576740
  drwxr-xr-x  2 nferrier staff 4.0K Aug 26 01:17 .
  drwxr-xr-x  3 nferrier staff 4.0K Nov 10 11:48 ..
  -rw-------  1 nferrier staff   42 Aug 24 18:25 index.html


Then I hit:

     http://localhost:7171/ 

in a browser and I got the contents of index.html


-- 
Nic Ferrier
http://www.tapsellferrier.co.uk




reply via email to

[Prev in Thread] Current Thread [Next in Thread]