Hi Carfield,
You can't set the ClassLoader. Velocity looks for the resources in the Thead.getContextClassLoader, or the system one (if not found)
Typical practice:
Put the velocity jar either in your WEB-INF/lib or the container lib.
Put your classes in WEB-INF/classes, or in a jar file in WEB-INF/jar.
Best, WILL
----- Original Message ----- From: "Carfield Yim" <[EMAIL PROTECTED]>
To: "Will Glass-Husain" <[EMAIL PROTECTED]>
Cc: "Velocity Users List" <[email protected]>
Sent: Thursday, January 20, 2005 6:02 AM
Subject: Re: Classloading problem of using velocity with tomcat
Hi, just build the library. However, I can't find the relevant API document that how to set the classloader using... Would you give me a pointer about that?
On Mon, 17 Jan 2005 08:05:51 -0800, Will Glass-Husain <[EMAIL PROTECTED]> wrote:Which resource loader are you using?
If you're using the ClasspathResourceLoader, there's been an unreleased
update to the source code that addresses this issue. You can download the
latest source with subversion (svn).
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
