You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2009/04/30 16:12:04 UTC

Re: [s2] Difficulty using Velocity with Struts 2 [SOLVED]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

All,

On 4/30/2009 10:01 AM, Christopher Schultz wrote:
> Seems pretty obvious, right? Velocity needs the
> org.apache.log.format.Formatter class. Well, I don't have this class
> anywhere in my (working) project, so I'm wondering what's going on? The
> class in question seems to be part of Apache Avalon which is defunct. Is
> it possible that Struts is configuring Velocity to use a logging system
> that I wasn't using before? If so, how do I change that?

It appears that including a commons-logging.properties file triggers the
use of commons-logging by Velocity, and the Avalon logging isn't necessary.

For those trying to get Velocity working on their project, using
velocity-deps.jar might be an option (instead of plain-old
velocity.jar), but it includes some classes that might interfere with
whatever you want to load. Configuring a commons-logging.properties file
seems like the most flexible choice.

Also, you'll need commons-digester if you are using Velocity 1.4.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkn5sbQACgkQ9CaO5/Lv0PALPwCfVuMHQvgdJnRRtO75yh2FcEX5
3uMAn0ZSMCX7/o7hNj0c/bdH1obZIeY5
=qjR8
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org