Re: Failed JAR-scanning in Tomcat 7.0.32

2012-10-16 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 16/10/2012 21:06, Christopher Schultz wrote:
 I'm wondering if Tomcat should tolerate ClassNotFoundExceptions
 while JAR-scanning... otherwise, a webapp that wants to use a
 library will have to make sure *all* dependencies are installed
 alongside and not just those that are actually required at
 runtime.

It should. Not sure if this is a regression or a new code path. (Busy
fixing my mail server right now).

Mark
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBAgAGBQJQfcAeAAoJEBDAHFovYFnnvfMQAIZNEgJ3/ugp9mThNJdf4Bn6
PyIpMMj68pra8iFzTKVoQTnyv/F3QdhkPOkZo41N76kp83Ow+9Yv2QMFziG7hHtx
Ef3vApCQEld40ZxhKd2mcSZfxfOnPiT21weP0EXiT73jpiSJTBzyPL0YI3fcpvL+
KMuJK6CIHOhk3VllLpVuE5f0KsxLdDEQzSl+3cz5xLrIZ0dgTIGp31/zAgKmtebQ
MyRJ+HhCT22YumKj9ieBw/Nzk80HceW1Rq0cSkOfWln7WLXqHlNYnPOeE8F/Er9O
ahc3aYc7wFZ0FmBFGn8GeXTAJZi9/vvgt1gqqzO0947vEYRufpMkDvV9tl5n6Vee
X1XN2cqlH+mYCH30X3MaCESCQUreIkzzb8VKxEJaTtSF4KxNctfXXYjiwuBA1iKf
xDUlmMb3Y7+TlSI1Eqs5s24oCAdJ5Gb7iFATQC+YLZq9695Q645dD8ACK9CPpQZy
MP+iug8gp5b3hAqF9eEW9vh8Y5wZrmZsuroOMj5Sil0l1lzSnktkkcTK6X52U8QN
w0BYOFKPI9RHlFGgNc7g3bOV2aPALhyPCKMPYiG66Li4FD1+Dk26HurldMGJVOac
Kgs6OHSFii/90iblRONOJAtlIbF9MnppCYpQ6SEUz/n3PcPgF7AT2kho49TXvUyg
9DByXN/s5wWTVAGCy/Wz
=tj40
-END PGP SIGNATURE-

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



Re: Failed JAR-scanning in Tomcat 7.0.32

2012-10-16 Thread Konstantin Kolinko
2012/10/17 Christopher Schultz ch...@christopherschultz.net:

 I'm trying to get a webapp that has been running under TC 5.5 for
 quite a while running under Tomcat 7.0. Everything is the same except
 for my new server.xml:

 Caused by: java.lang.ClassNotFoundException:
 org.apache.commons.logging.Log

See:
http://tomcat.apache.org/migration-6.html#commons-logging.jar

I do not think that Log4j uses Apache Commons Logging, but some other
libraries that your app uses may use it.

 1. Add commons-logging to my webapp's WEB-INF/lib directory

+1

 2. Configure Tomcat not to scan log4j.jar

It should already be excluded (as log4j*.jar mask is mentioned in
tomcat.util.scan.DefaultJarScanner.jarsToSkip property in
catalina.properties).


Best regards,
Konstantin Kolinko

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