Re: Classloading problem of using velocity with tomcat

2005-01-23 Thread Shinobu Kawai Yoshida
Hi Carfield, > I think ServletContext#getResourceAsStream() will work either, so I > try to add the following properities, but I find that > > org.apache.velocity.tools.view.servlet.WebappLoader > > Is not exist in velocity-1.5-dev.jar... where can I find it? Or in > fact just juse classpathload

Re: Classloading problem of using velocity with tomcat

2005-01-21 Thread Carfield Yim
I think ServletContext#getResourceAsStream() will work either, so I try to add the following properities, but I find that org.apache.velocity.tools.view.servlet.WebappLoader Is not exist in velocity-1.5-dev.jar... where can I find it? Or in fact just juse classpathloader is already able to load t

Re: Classloading problem of using velocity with tomcat

2005-01-21 Thread Shinobu Kawai Yoshida
Hi Carfield, > You mean I should set the classloader using the following statement? > >// by default, load resources with webapp resource loader >velocity.setProperty(RuntimeConstants.RESOURCE_LOADER, "webapp"); >velocity.setProperty("webapp.resource.loader.class", >

Re: Classloading problem of using velocity with tomcat

2005-01-21 Thread Carfield Yim
You mean I should set the classloader using the following statement? // by default, load resources with webapp resource loader velocity.setProperty(RuntimeConstants.RESOURCE_LOADER, "webapp"); velocity.setProperty("webapp.resource.loader.class",

Re: Classloading problem of using velocity with tomcat

2005-01-21 Thread Shinobu Kawai Yoshida
Hi Barbara, > Right now, I believe most of the Velocity convenience servlets are > using the Singleton model. Hopefully, that will change. I have > written my own servlet extending HttpServlet which uses the > VelocityEngine object. The latest VelocityViewServlet in the SVN repository uses the

Re: Classloading problem of using velocity with tomcat

2005-01-20 Thread Carfield Yim
> Again, you have a choice. You can put the Velocity jar either in > Tomcat/common/lib, or in WEB-INF/lib. With the latest set of source code, > you can then put the the templates at the WEB-APP level or (if the velocity > jar is at the container level) in the container level. This will be > rel

Re: Classloading problem of using velocity with tomcat

2005-01-20 Thread Barbara Baughman
; > - Original Message - > From: "Carfield Yim" <[EMAIL PROTECTED]> > To: "Velocity Users List" > Sent: Thursday, January 20, 2005 9:35 AM > Subject: Re: Classloading problem of using velocity with tomcat > > > > On Thu, 20 Jan 2005 08:4

Re: Classloading problem of using velocity with tomcat

2005-01-20 Thread Will Glass-Husain
ursday, January 20, 2005 9:35 AM Subject: Re: Classloading problem of using velocity with tomcat On Thu, 20 Jan 2005 08:45:06 -0800, Will Glass-Husain <[EMAIL PROTECTED]> wrote: Hi Carfield, You can't set the ClassLoader. Velocity looks for the resources in the Thead.getContextClassLo

Re: Classloading problem of using velocity with tomcat

2005-01-20 Thread Carfield Yim
On Thu, 20 Jan 2005 08:45:06 -0800, Will Glass-Husain <[EMAIL PROTECTED]> wrote: > 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 you

Re: Classloading problem of using velocity with tomcat

2005-01-20 Thread Will Glass-Husain
n WEB-INF/jar. Best, WILL - Original Message - From: "Carfield Yim" <[EMAIL PROTECTED]> To: "Will Glass-Husain" <[EMAIL PROTECTED]> Cc: "Velocity Users List" Sent: Thursday, January 20, 2005 6:02 AM Subject: Re: Classloading problem of using ve

Re: Classloading problem of using velocity with tomcat

2005-01-20 Thread Carfield Yim
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

Re: Classloading problem of using velocity with tomcat

2005-01-17 Thread Will Glass-Husain
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). WILL - Original Message - From: "Carfield Yim" <[EMAIL PROTECTED]>