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 Anthony Spencer <ad...@yahoo.com> on 2006/06/05 22:04:43 UTC
Unable to find resource 'sql/base/Control.vm'
I'm upgrading a project to Torque 3.2 and I am getting
the following exception when running 'maven torque':
org.apache.velocity.exception.ResourceNotFoundException:
Unable to find resource 'sql/base/Control.vm'
It doesn't look like the documentation tutorial has
been updated to reflect the 3.2 changes but I did
place torque-gen-templates-3.2.jar in my classpath. Is
this the correct thing to do?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org
Re: Unable to find resource 'sql/base/Control.vm'
Posted by Anthony Spencer <ad...@yahoo.com>.
Here is the answer to my own question:
When upgrading to Torque 3.2 one needs to add the
following line to their project.properties file to
tell Torque to look for template files in the
classpath (I think Torque should default to true since
this was the previous behavior in 3.1.1):
torque.useClasspath = true
For a full reference to all properties see:
http://db.apache.org/torque/releases/torque-3.2/generator/properties-reference.html
--- Anthony Spencer <ad...@yahoo.com> wrote:
> I'm upgrading a project to Torque 3.2 and I am
> getting
> the following exception when running 'maven torque':
>
>
org.apache.velocity.exception.ResourceNotFoundException:
> Unable to find resource 'sql/base/Control.vm'
>
> It doesn't look like the documentation tutorial has
> been updated to reflect the 3.2 changes but I did
> place torque-gen-templates-3.2.jar in my classpath.
> Is
> this the correct thing to do?
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail:
> torque-user-help@db.apache.org
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org