logo       


Re: JCSAdminServlet - Can't find vm: msg#00004

Subject: Re: JCSAdminServlet - Can't find vm
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 <jtoth@xxxxxxxxxxxxxxxxxxxxxx> 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:
> turbine-jcs-dev-unsubscribe@xxxxxxxxxxxxxxxxxx
> For additional commands, e-mail:
> turbine-jcs-dev-help@xxxxxxxxxxxxxxxxxx
> 


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


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe