From: "Richard Aston" <[EMAIL PROTECTED]>
> We've been trying out resin for a couple of months now and we've had no 
> stability problems so far. This is a copy of my resin.conf file (I leave 
> web.xml exactly as it was).

Which version?  There is now a version 2.0 that was released on
June 8.

> <caucho.com>
> 
>      <http-server class-update-interval='0'>
> 
>      <http port='8080'/>
>      <srun host='127.0.0.1' port='6802'/>
> 
>      <host id='localhost'>
> 
>        <app-dir>/webapps/app1/</app-dir>
>        <servlet-mapping url-pattern='servlet/*' servlet-name='turbine'/>
>        <servlet servlet-name='turbine' servlet-
> class='org.apache.turbine.Turbine'/>
> 
>      </host>
> 
>      <host id='another.virtual.domain'>
> 
>        <app-dir>/webapps/app2/</app-dir>
>        <servlet-mapping url-pattern='servlet/*' servlet-name='turbine'/>
>        <servlet servlet-name='turbine' servlet-
> class='org.apache.turbine.Turbine'/>
> 
>      </host>
> 
>    </http-server>
> </caucho.com>

I think the url-pattern attribute is key.  Without changing resin.conf
but with adding:

    <servlet-mapping>
        <servlet-name>myapp</servlet-name>
        <url-pattern>servlet/*</url-pattern>
    </servlet-mapping>

into the web.xml for the application I can now access it using:

    http://localhost:8080/myapp/servlet

and everything works fine.  With "/*" instead of "servlet/*" it
works, but the images don't load.  With just "*" (which is what I 
had before) I can never get off the first page.

So the answer involved correctly setting the url-pattern.

I did try your resin.conf file which also worked like a charm.
My preference however is for a solution that does not involve 
changing resin.conf as I may not have access to that file on the 
system I deploy to.

Thanks Rich (and Dave before you).

Scott





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

Reply via email to