I recently had this problem.  What I found is that the required
velocity templates were not even in the jar file.  What I did
was to get the templates from the source code, put it in my
classpath in the proper dir structure, and set up in my velocity
props file the location of the templates.

You could also create a 2nd jar with these templates, and once
again set up the velocity props file to use the jar resource
loader pointing to your new jar.

Daniel


--- Joseph Toth <[EMAIL PROTECTED]> wrote:
> Where can I download JCS?
> I can't seem to find any releases (binary or source) on the
> website.
> 
> I'm using hibernate which uses JCS.
> I'm trying to use the JCSAdminServlet, but I keep getting the
> following
> error.
> 
> org.apache.velocity.exception.ResourceNotFoundException:
> Unable to find
> resource
> '/org/apache/jcs/admin/servlet/JCSAdminServletDefault.vm'
> 
> I made sure
> /org/apache/jcs/admin/servlet/JCSAdminServletDefault.vm is in
> jcs.jar
> 
> I have the parameter for the servlet to find the properties
> file.
> 
> 
> Looking at the code (in CVS) for JCSAdminServlet, I always
> thought that when
> using Velocity you can't have a beginning slash.
> 
>     private static final String DEFAULT_TEMPLATE_NAME =
>        
> "/org/apache/jcs/admin/servlet/JCSAdminServletDefault.vm";
> 
> Thanks
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to