Christopher Schultz schrieb:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sebastian,

On 8/25/2009 2:20 PM, Sebastian Hennebrueder wrote:
My proposal is to just allow adding a simple text file into the lib
folder of WAR or EAR archives instead of adding jar files. This file
describes which libs, the application server should load from a local
directory or an HTTP connection when starting the application.

Tomcat is almost certainly not going to do this unless the Java Servlet
Specification adopts this practice.

You can implement your own ClassLoader that consults a file for its
CLASSPATH and instruct Tomcat to use that if you'd like.

- -chris

Hello Chris,
isn't that something what is happening before the Servlet Spec. comes on the stage. So copy the JARs from the repository to the WEB-INF/lib folder and than let the application start up as normally.

I played with a first implementation for Jetty as it looks like as I can extend the application server without patching existing code. I haven't checked if this works as well with Tomcat but basically the deployer which is doing the unpacking of wars looks as well for a libraries files and then copies first the jars before letting the application start.

By the way, the text file needs to be slightly more elaborated in order to prevent name collisions of libraries.

--
Best Regards / Viele Grüße

Sebastian Hennebrueder
-----
Software Developer and Trainer for Hibernate / Java Persistence
http://www.laliluna.de



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

Reply via email to