Velocity does not violate J2EE by *requiring* access to the file system,
so everyone calm down. ;)
 
ClasspathResourceLoader :
"To use this loader effectively, all you must do is jar your templates,
and put that jar into the WEB-INF/lib directory of your webapp"
 
From: 
http://jakarta.apache.org/velocity/developer-guide.html#Configuring%20Re
source%20Loaders


> -----Original Message-----
> From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
> Sent: Monday, April 19, 2004 11:14 AM
> To: Tomcat Users List
> Subject: Re: Closed war class loading.
> 
> 
> Quoting Owen Fellows <[EMAIL PROTECTED]>:
> 
> > Hi,
> > 
> > Cheers for that, I've unpacked the war now and it works fine.
> > 
> > Is there any way to redeploy an unpacked war with 
> undeploying and then 
> > redeploying. It doesn't take that long to redeploy but it is a bit 
> > ennoying.
> > 
> 
> Upgrade to Tomcat-5.  It explodes war files by default...even 
> on a Tomcat manager deploy.  I would still rethink using a 
> technology that violates the J2EE by requriing access to the 
> file sytem in order to work properly.
> 
> Jake
> 
> > Cheers,
> > Owen
> > 
> > On Mon, 19 Apr 2004 15:15:57 +0000, Jacob Kjome 
> <[EMAIL PROTECTED]> wrote:
> > 
> > > You've got unpackWars="false".  I don't use Velocity, but does it 
> > > use File
> > IO to
> > > load .vm files?  If so, you will have to unpack wars to use 
> > > Velocity.
> > Pretty
> > > stupid on Velocity's part if they use File IO in Webapps.
> > >
> > > Jake
> > >
> > > Quoting Owen Fellows <[EMAIL PROTECTED]>:
> > >
> > >> Hi,
> > >>
> > >> I've raised a bug online
> > >>    http://issues.apache.org/bugzilla/show_bug.cgi?id=28470
> > >> but though I would ask the question here as well.
> > >>
> > >> --
> > >> The problem i'm experiencing is this.
> > >>
> > >> org.apache.velocity.exception.ResourceNotFoundException: 
> Unable to 
> > >> find resource '/index.vm'
> > >>
> > >> org.apache.velocity.exception.ResourceNotFoundException: 
> Unable to 
> > >> find resource '/index.vm'
> > >> at org.apache.velocity.runtime.resource.ResourceManagerImpl.
> > >> loadResource(ResourceManagerImpl.java:501)
> > >>
> > >>
> > >> ---
> > >>
> > >> I've deployed a war through the manager interface.  It deploys 
> > >> fine, picks
> > up
> > >> the xml file with my context in it, datasource etc.
> > >> First time i go to a page i get the above error.
> > >>
> > >> I have unpackWARs set to false because i want to be able 
> to reload 
> > >> my war without undeploying (I believe this possible). 
> This is the 
> > >> Host tag in the server.xml
> > >>      <Host name="localhost" debug="0" appBase="webapps"
> > >>         unpackWARs="false" autoDeploy="false"
> > >>         xmlValidation="false" xmlNamespaceAware="false">
> > >>
> > >> Questions.
> > >> - Am i doing something wrong
> > >> - Is there another way i can get my war to redeploy 
> (without having 
> > >> to undeploy redeploy)?
> > >>
> > >>
> > >> Any replies or advice would be great.
> > >>
> > >> Thanks,
> > >> Owen
> > >>
> > >>
> > >> 
> -------------------------------------------------------------------
> > >> --
> > >> 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]
> > >
> > >
> > 
> > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > 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]
> 


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

Reply via email to