Ah, I think I see the problem. There are a few new properties in the build.properties file. One of them is "torque.useClasspath". If this is set to true the generator will look for the templates in a jar file on the classpath. Otherwise, it will try to find them as a set of directories.
The current distro delivers the templates as a jar and has the useClassPath property set to true. I suspect you didn't "merge" your old build.properties with the new one and so the its defaulting to false. Check if this is the problem. Good Luck Greg > -----Original Message----- > From: Jim Caserta [mailto:[EMAIL PROTECTED] > Sent: Friday, September 30, 2005 10:27 AM > To: Apache Torque Users List > Subject: RE: VM_global_library.vm not found > > > 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]