On Nov 11, 2006, at 3:28 AM, Tarun Ramakrishna wrote:

Hi all,

A lot of un-necessary maven jars appear to get bundled with tomcat
wars. This causes the deployment to slow down quite a bit.

They are there to support the Maven-based ArtifactRepository that is included in the server configuration that allows the application to download extensions and other dependencies at runtime.

Deployment should not be slow if you set the offline flag (tuscany.online webapp parameter IIRC) so that it does not check for snapshots. This is an issue with a build from trunk as most of the dependencies will still be snapshots rather than real releases; this should not affect a released version.


And for every succeeding deployment, one needs to restart the Tomcat
server - since Tuscany doesn't appear to release a lock in the
expanded war directory. The tomcat manager's undeploy function thus no
longer works correctly.

Are you running on Windows? This may not be an issue with the Maven support but a side effect of the classloader - IIRC URLClassLoader can take locks on the underlying file and not release them. I've not seen any issue on OSX with deploy/undeploy cycles.


This makes the develop-debug cycle rather painful. Does anybody have
any ideas/tips on how to speed things up?

The online flag should fix the initial start time if you are running snapshots.

Short of rewriting the classloader I'm not sure how to fix Windows (and even then extensions that also create classloaders (such as the Spring and Axis ones) may mean that this is not fully resolved).

--
Jeremy

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

Reply via email to