WAS RE: tdk-2.2_01 "newapp" build problem--velocity can't load
sql/init-db/Control.vm

>Jeffery Painter wrote:
>
>>I've meant to send in an update to the how-to, you don't have to put
all 
>>the torque.database components in your build.properties, it should
place 
>>these into your conf/Torque.properties after doing an ant init
>>
>>(you can blame me for putting that into the howto in the first place
:) )
>>
>>you only need to fill in the default regular info under DATABASE
SETTINGS 
>>in your build.properties
>>  
>>
>
>That does help clear up some confusion, thanks. =)
>However, still getting the same velocity error. I looked over teh 
>velocity.log file a bit more, and found this error, as well...
>
>Tue Sep 30 12:41:48 MST 2003  [error] ResourceManager : unable to find
resource 'VM_global_library.vm' in any resource loader.
>
>as well as the build ending "unable to find resource
sql/db-init/Control.vm".
>
>So, in general, it seems to be a velocity template path error...? 
>Also, I noticed that in the 2.3 build-torque.xml file, torque.jar was
defined as torque-gen-3.2-dev.jar. However... the version included w/
the tdk test >build was torque-gen-3.1.jar. Not sure if this matters or
not...
>(In my case, it didn't... still got the same error before/after
changing it).
>
>Robert
>

Hi Robert & Jeffery,

It's probably too late, but I got the same "unable to find resource
sql/db-init/Control.vm" error in tdk 2.2.1:

I added the files in TDK_HOME/tdk/lib to my classpath (one of which
contains the Control.vm) and everything was fine.  Until the next error
(the one that Jeffery Painter mentioned)

Jeffery mentioned that if you run the schema-sql script seperately, the
sql files are generated successfully.  But this doesn't really help
since running 'ant init' doesn't run the schema-sql step separately.  So
you could mess around with the build.xml file, but I lucked into a
'better' workaround (which might help track down the bug too) that if
you put 'database.manual.creation = true' in your build.properties file,
and create the database yourself, the schema-sql step works!!  Weird.

Good luck,

David


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to