You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Tapan Mehta <ta...@yahoo.com> on 2003/09/13 00:07:49 UTC

velocity template file and Java web Start deployment

Hello ,

I am using velocity code for generating a Html report
and I am using the velocity frameowrk for the first
time in an application. I have to deploy the
application using Java Web Start. My application works
fine on my local machine however when I use the Java
Web Start option option to start via web it does not.
It complains that it cannot find the .vm ( template
file) and gives resourcenotfoundexception. I would
really appreciate your help.

Regards,

Tapan

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

Re: velocity template file and Java web Start deployment

Posted by Charles Oliver Nutter <he...@headius.com>.
Are you using the ClasspathResourceLoader? There's a known problem with 
it where it does not load resources from the correct classloader. 
There's a patch waiting, but I don't think it's been applied and 
certainly not released.

- Charlie

Tim Colson wrote:

>Tapan -
>
>  I've been waiting to hear someone try to use Velocity in a JWS app -
>glad to hear about your efforts.
>
>  Please send us a few more details, the velocity.properties
>configuration would be a good place to start. I suspect that you may be
>using an absolute path "C:\\foo\vm\bar.vm" rather than a resource loader
>that grabs templates from a foo.jar file.
>
>Timo
>
>  
>
>>-----Original Message-----
>>From: Tapan Mehta [mailto:tapmehta@yahoo.com] 
>>Sent: Friday, September 12, 2003 3:08 PM
>>To: velocity-user@jakarta.apache.org
>>Subject: velocity template file and Java web Start deployment
>>
>>
>>Hello ,
>>
>>I am using velocity code for generating a Html report
>>and I am using the velocity frameowrk for the first
>>time in an application. I have to deploy the
>>application using Java Web Start. My application works
>>fine on my local machine however when I use the Java
>>Web Start option option to start via web it does not.
>>It complains that it cannot find the .vm ( template
>>file) and gives resourcenotfoundexception. I would
>>really appreciate your help.
>>
>>Regards,
>>
>>Tapan
>>
>>__________________________________
>>Do you Yahoo!?
>>Yahoo! SiteBuilder - Free, easy-to-use web site design software
>>http://sitebuilder.yahoo.com
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>>
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>  
>


Re: velocity template file and Java web Start deployment

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
My first velocity-user post ever....

On Friday, September 12, 2003, at 07:05  PM, Tim Colson wrote:
>   I've been waiting to hear someone try to use Velocity in a JWS app -
> glad to hear about your efforts.

hey Tim!  :)

we're using Velocity both server and client-side in a JWS application 
right now.  On the server we're using it to generate JNLP.  On the 
client, we're using it to generate custom HTML embedded in a control 
that renders it.  I didn't write the client-side stuff, but it is using 
nested hard-coded String's currently for the template, and not .vm 
files.

I'm not sure what the solution to this other person's issue is, but 
looks like a config issue.

	Erik


RE: velocity template file and Java web Start deployment

Posted by Tim Colson <tc...@cisco.com>.
Tapan -

  I've been waiting to hear someone try to use Velocity in a JWS app -
glad to hear about your efforts.

  Please send us a few more details, the velocity.properties
configuration would be a good place to start. I suspect that you may be
using an absolute path "C:\\foo\vm\bar.vm" rather than a resource loader
that grabs templates from a foo.jar file.

Timo

> -----Original Message-----
> From: Tapan Mehta [mailto:tapmehta@yahoo.com] 
> Sent: Friday, September 12, 2003 3:08 PM
> To: velocity-user@jakarta.apache.org
> Subject: velocity template file and Java web Start deployment
> 
> 
> Hello ,
> 
> I am using velocity code for generating a Html report
> and I am using the velocity frameowrk for the first
> time in an application. I have to deploy the
> application using Java Web Start. My application works
> fine on my local machine however when I use the Java
> Web Start option option to start via web it does not.
> It complains that it cannot find the .vm ( template
> file) and gives resourcenotfoundexception. I would
> really appreciate your help.
> 
> Regards,
> 
> Tapan
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 
>