You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Thomas Fischer <fi...@seitenbau.net> on 2005/04/01 10:19:25 UTC

RE: sql/db-init/Control.vm & ResourceNotFoundException




Laran,

which database are you using (the torque.database setting in the
build.properties of the generator) ? And which Torque version are you using
?

  Thomas

"Laran Evans" <lc...@cornell.edu> schrieb am 31.03.2005 21:01:01:

> I get this when running the create-db Ant task.
>
> org.apache.velocity.exception.ResourceNotFoundException: Unable to find
> resource
>  'sql/db-init/Control.vm'
>
> The torque and torque-gen .jars are in my classpath.  I've tried with
both
> torque.useClasspath=true and torque.useClasspath=false. Both failed.
>
> Any suggestions?
>
> --
> Laran Evans - Cornell University
> p: (607) 255-6864 f: (607) 255-0327
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Re: sql/db-init/Control.vm & ResourceNotFoundException

Posted by Laran Evans <lc...@cornell.edu>.
I re-read the documentation on the torque.templatePath property.

I was surprised to see that it was required to be a relative path. I had 
it set to an absolute path built from the relative paths of my build file.

In any case, once I specified the templatePath correctly as a relative 
path, the Control file was found.

Thanks

Thomas Fischer wrote:

>
>
>Laran,
>
>which database are you using (the torque.database setting in the
>build.properties of the generator) ? And which Torque version are you using
>?
>
>  Thomas
>
>"Laran Evans" <lc...@cornell.edu> schrieb am 31.03.2005 21:01:01:
>
>  
>
>>I get this when running the create-db Ant task.
>>
>>org.apache.velocity.exception.ResourceNotFoundException: Unable to find
>>resource
>> 'sql/db-init/Control.vm'
>>
>>The torque and torque-gen .jars are in my classpath.  I've tried with
>>    
>>
>both
>  
>
>>torque.useClasspath=true and torque.useClasspath=false. Both failed.
>>
>>Any suggestions?
>>
>>--
>>Laran Evans - Cornell University
>>p: (607) 255-6864 f: (607) 255-0327
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
>>For additional commands, e-mail: torque-user-help@db.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
>For additional commands, e-mail: torque-user-help@db.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org