You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Scott Eade <se...@backstagetech.com.au> on 2001/06/23 03:33:54 UTC

Resin?

Just curious if anyone out there has managed to
deploy a turbine application using Resin rather than 
Tomcat?

Scott


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Resin?

Posted by Scott Eade <se...@backstagetech.com.au>.
From: "Richard Aston" <ra...@mac.com>
> 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: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Resin?

Posted by Richard Aston <ra...@mac.com>.
Scott,

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).

(all of our webapps are in a directory /webapps  and the url for 
Index.vm is http://localhost:8080/servlet/template/Index.vm)

Hope this is of some help,

Rich

<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>

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Resin?

Posted by Scott Eade <se...@backstagetech.com.au>.
> To be honest I neither have access nor am using Resin
> right now. I just followed the directions for Resin and had no
> problems.  
> 
> Turbine would be configured like any other webapp in
> Resin - nothing special.
> 
> Sorry i can't help more,
> 
> Dave

Thanks anyway Dave.  I have just actually managed to get 
it partially working.  It was necessary to add some variation
on:

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

to the web.xml file for my application.

The above is not quite right as it seems to direct every
request to the login page of the application.

I'll have a bit more of a play and see if I can get it working.

Thanks anyway - a least you confirmed that it was possible
and that little or no change was required.

Scott


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Resin?

Posted by Scott Eade <se...@backstagetech.com.au>.
> Fyi, I have *heard* that resin is super fast, but not that stable...so, take
> that with a grain of salt...
> 
> -jon

super fast - Excellent
not that stable - Damn!

But sometimes we don't get a choice in the matter ;-(

Scott 


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Resin?

Posted by Dave Bryson <da...@miceda-data.com>.
We've had no problems with the Resin and it's been in use
for at least a year.

dave

On Friday 22 June 2001 10:29 pm, you wrote:
>
> Fyi, I have *heard* that resin is super fast, but not that stable...so,
> take that with a grain of salt...
>
> -jon
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Resin?

Posted by Jon Stevens <jo...@latchkey.com>.
on 6/22/01 8:09 PM, "Dave Bryson" <da...@miceda-data.com> wrote:

> Scott,
> 
> To be honest I neither have access nor am using Resin
> right now. I just followed the directions for Resin and had no
> problems.  
> 
> Turbine would be configured like any other webapp in
> Resin - nothing special.
> 
> Sorry i can't help more,
> 
> Dave

Fyi, I have *heard* that resin is super fast, but not that stable...so, take
that with a grain of salt...

-jon


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Resin?

Posted by Dave Bryson <da...@miceda-data.com>.
Scott,

To be honest I neither have access nor am using Resin
right now. I just followed the directions for Resin and had no
problems.  

Turbine would be configured like any other webapp in
Resin - nothing special.

Sorry i can't help more,

Dave

On Friday 22 June 2001 09:24 pm, you wrote:
> > Yes, I deployed an app on Resin 1.1.5 ( I think that's the vesion )
> > with no problems at all.
> >
> > Dave
>
> Hi Dave,
>
> Did you simply copy the application to Resin's webapps directory?
> Did you have to change the Resin configuration files at all?
> What url did you use to kick off your application?
>
> So many questions!!!  As you may have gathered I am trying to
> get a turbine app running under Resin myself and I am hitting
> a few unknowns.
>
> A few pointers based around the turbine sample newapp would
> be much appreciated.
>
> Cheers,
>
> Scott
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Resin?

Posted by Scott Eade <se...@backstagetech.com.au>.
> Yes, I deployed an app on Resin 1.1.5 ( I think that's the vesion )
> with no problems at all.
> 
> Dave

Hi Dave,

Did you simply copy the application to Resin's webapps directory?
Did you have to change the Resin configuration files at all?
What url did you use to kick off your application?

So many questions!!!  As you may have gathered I am trying to
get a turbine app running under Resin myself and I am hitting
a few unknowns.

A few pointers based around the turbine sample newapp would
be much appreciated.

Cheers,

Scott


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Resin?

Posted by Dave Bryson <da...@miceda-data.com>.
Yes, I deployed an app on Resin 1.1.5 ( I think that's the vesion )
with no problems at all.

Dave

On Friday 22 June 2001 08:33 pm, you wrote:
> Just curious if anyone out there has managed to
> deploy a turbine application using Resin rather than
> Tomcat?
>
> Scott
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Resin?

Posted by Dave Bryson <da...@miceda-data.com>.
Yes, I deployed an app on Resin 1.1.5 ( I think that's the vesion )
with no problems at all.

Dave

On Friday 22 June 2001 08:33 pm, you wrote:
> Just curious if anyone out there has managed to
> deploy a turbine application using Resin rather than
> Tomcat?
>
> Scott
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org