Jim,
the templates are only packaged as jar with the generator, and should be
loaded from the classpath by default. Make sure the generator configuration
is configured such that it uses the class path to look for the templates.
If you prefer not to work with the classpath, unpackage the templates jar
and make sure the location is known to the generator.
Thomas
Jim Caserta <[EMAIL PROTECTED]> schrieb am 30.09.2005 16:26:43:
> My apologies...
>
> I used the -noclasspath with the same results, however
> I noticed that the last error message in the velocity
> log is:
> [error] ResourceManager : unable to find resource
> 'sql/base/Control.vm' in any resource loader.
>
> No source is being generated. Is the situation the
> same with this error message as the other, in that it
> still should be working successfully? Maybe I'm
> missing another problem elsewhere..
>
> Thank you..
> Jim
>
> --- Greg Monroe <[EMAIL PROTECTED]> wrote:
>
> > I think the VM_global_library not found error is not
> > the issue. I see
> > this message with 3.1.1 builds too.
> >
> > Most problems of this sort come from old versions of
> > the jar files
> > being in the class path somewhere. This includes the
> > various libraries
> > that Torque is dependent on as well.
> >
> > Try running ant with the -noclasspath option to
> > prevent picking up
> > old versions. If this works, then start looking
> > thru your class path
> > for problems.
> >
> > Good luck
> >
> > Greg
> >
> > > -----Original Message-----
> > > From: Jim Caserta [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, September 30, 2005 8:33 AM
> > > To: torque-user@db.apache.org
> > > Subject: VM_global_library.vm not found
> > >
> > >
> > > Good morning..
> > >
> > > I downloaded 3.2-rc2 of Torque and the latest
> > version
> > > of Ant. I'm cuurently using Torque 3.0 and
> > attempting
> > > to convert over.
> > >
> > > Creating the schema works fine, however when I
> > attempt
> > > to generate the java files, I receive the errors:
> > >
> > > [error] ResourceManager : unable to find resource
> > > 'VM_global_library.vm' in any resource loader.
> > >
> > > [info] Velocimacro : error using VM library
> > template
> > > VM_global_library.vm :
> > >
> >
> org.apache.velocity.exception.ResourceNotFoundException:
> > > Unable to find resource 'VM_global_library.vm'
> > >
> > > I did find another reference to this problem, and
> > I
> > > also downloaded the gen-3.1.1.jar file that has
> > the vm
> > > files in it. I placed this 'jar' file in the 'lib'
> > > folder of file 'torque-gen-3.2-rc2', which is
> > where I
> > > execute the ant command from, however the problem
> > > persists.
> > >
> > > Thank you in advance for any suggestions!
> > > Jim
> > >
> > >
> > >
> > > __________________________________
> > > Yahoo! Mail - PC Magazine Editors' Choice 2005
> > > http://mail.yahoo.com
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> >
> > Duke CE Privacy Statement
> > Please be advised that this e-mail and any files
> > transmitted with it are confidential communication
> > or may otherwise be privileged or confidential and
> > are intended solely for the individual or entity to
> > whom they are addressed. If you are not the
> > intended recipient you may not rely on the contents
> > of this email or any attachments, and we ask that
> > you please not read, copy or retransmit this
> > communication, but reply to the sender and destroy
> > the email, its contents, and all copies thereof
> > immediately. Any unauthorized dissemination,
> > distribution or copying of this communication is
> > strictly prohibited.
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> 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]