-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Padawan,
padawan wrote: | I am new to Tomcat. What I am trying to accomplish is keep all my jar files | separated so I know what jar provides what functionality. In the | WEB-INF/lib directory I've added sub directories for the different jar files | in the web application. | | WEB-INF/Lib | |_antlr-2.7.6 | |_mysql_connector-5.0.7 | |_mysql_connector-java-5.0.7-bin.jar | | What I am trying to figure out is how to tell the web application to look in | the subdirectories. The servlet specification says that all JARs go into WEB-INF/lib, and not in any subdirectories. To get this to work, you'd have to either modify the ClassLoader that your webapp uses (which is provided by Tomcat) or write your own. I don't recommend either approach. What I would recommend is that, if it's helpful for your project to keep the JAR files in subdirectories, use a tool like 'ant' for your deployment. When you create a WAR file for deployment, just collapse all the subdirectories into one and deploy like that. Hope that helps, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgsXNEACgkQ9CaO5/Lv0PBAgACbB/EvVopow27J/lJ9X7VQNOsr 3JMAn3xXwaCF0CFDdca87OrNCPW5Gbiw =FlwK -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: [email protected] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
