One correction, you are referring to Tomcat 5, so the link is here:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

Beware the classloader has changed in Tomcat 6, there are some considerations 
when upgrading , but why not use 6 or even 7?

Cheers,
Peter

----- Original Message -----
From: "P Stavrinides" <p.stavrini...@albourne.com>
To: "Tapestry users" <users@tapestry.apache.org>
Sent: Monday, 13 September, 2010 10:53:54 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Re: How to set up Tapestry 5 on Tomcat 5

Hi,

First off let me say there is no right or wrong, just what works best for each 
person/organization.

> 1) I install maven on my PC, where I will develop Tapestry web applications.
> 2) Maven will download any missing dependencies, and place them inside my
> apps lib folder.
Some people loath Maven others love it, but Maven excels in alleviating 
dependency management issues, an inherent weakness in Java. To elaborate a 
little... library issues are the pits to track down and fix, so you don't want 
any versioning mistakes or a mismatch of jars in development vs. production, 
something that tends to happen all too often, especially when more than one 
person is involved.

On this point, I would also suggest you deploy all your libs in your 
application war (local lib folder), and as little as possible in your shared 
folder... I am sure there will be mixed feelings on this issue, as some may 
argue the drawbacks (i.e.: additional resources and class-loading, deployment 
of larger wars), but the benefits are far greater in my experience (simpler 
'lighter' container, less chance of resource conflicts or configuration errors, 
threading and memory errors... a leaky jar can bring down your server and all 
your apps! but what's far worse is when it simply degrades performance, which 
is even harder to trace). So be very picky as to what goes into shared, and 
this is the approach advocated in the docs, here: 
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html#Class_Loader_Definitions

Cheers,
Peter




----- Original Message -----
From: "Christopher Dodunski" <chrisfromsquir...@christopher.net.nz>
To: users@tapestry.apache.org
Sent: Monday, 13 September, 2010 02:40:38 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: How to set up Tapestry 5 on Tomcat 5

Hi,

Thank you everyone for your help.  For the sake of clarification (please
correct me where I am wrong):


3) I can then test run my Tapestry application locally on a local
installation of Tomcat.

Now, to deployment:

1) I upload the WAR to my VPS via Tomcat manager (i.e. VPS installation of
Tomcat).
2) Assuming Tomcat there provides the same dependencies as Tomcat locally
(tomcat/shared/lib), my Tapestry application should run fine.

Is it the usual practice to rely on maven to place all dependencies inside
the applications 'lib' folder?  Rather than me manually place required
libraries - once and for all - inside tomcat/shared/lib on both Tomcat on
my PC AND Tomcat on my VPS?  Should maven be installed on my VPS?

Thanks & regards,

Chris.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to