Hello. I'm new to turbine-based development... I've been trying to build the sample app "newapp" in the tdk (version 2.2_01). During the "ant init" step, I get the following error:

file:/usr/local/tdk/webapps/newapp/WEB-INF/build/build-torque.xml:284: Resource not found. For more information consult the velocity log, or invoke ant with the -debug flag

relevant portion of velocity log:

Tue Sep 30 11:16:01 MST 2003 [info] Velocity successfully started.
Tue Sep 30 11:16:01 MST 2003 [error] ResourceManager : unable to find resource 'sql/db-init/Control.vm' in any resource loader.


When searching through the archives, I noticed that Alexandr Nozdrin posted the same problem (2003-04-07), but couldn't find any replies; a google search didn't turn anything up, either. I've tried playing around with the database settings, but to no avail. I noticed in the wiki that someone had a link to what looked like a promising thread on getting the test app running. However, the link didn't work. (Linked to archives.apache.org... no such server...?)
What do I need to do/change/fix to get the init to work properly? (Attached is my build.properties file)


System config: debian unstable, j2sdk 1.4.2, ant 1.5.4, tdk 2.2_01, mysql 4.0.14

Thnks in advance.

Robert Zeigler
# -------------------------------------------------------------------
#
# P R O J E C T  P R O P E R T I E S
#
# -------------------------------------------------------------------

tdk.home = /usr/local/tdk
tdk.turbineVersion = 2
tdk.project = newapp
# This currently duplicated because the torque templates have
# a dependency on $project.
project = newapp
app.root = ../${tdk.project}
build.webappRoot = ${tdk.home}/webapps/${tdk.project}
target.package = org.mycompany.newapp
target.directory = org/mycompany/newapp
build.dest = ${build.webappRoot}/WEB-INF/classes
version = 0.1
src.dir = ${tdk.home}/webapps/newapp/WEB-INF/src
conf.dir = ${tdk.home}/webapps/newapp/WEB-INF/conf
master.conf.dir = ${tdk.home}/tdk/ancillary/${tdk.turbineVersion}/src/conf
debug = on
optimize = off
deprecation = on
idTableDatabase = newapp

# todo!!!
lib.dir = ${build.webappRoot}/WEB-INF/lib
torque.home = ${build.webappRoot}/WEB-INF
outputDirectory = src
schemaDirectory = conf

# -------------------------------------------------------------------
#
#  D A T A B A S E  S E T T I N G S
#
# -------------------------------------------------------------------

#database.name = newapp
#database = ${target.database}
#createDatabaseUrl = ${createDatabaseUrl}
#buildDatabaseUrl = ${buildDatabaseUrl}
#databaseUrl = ${databaseUrl}
#databaseDriver = ${database.driver}
#databaseUser = ${databaseUser}
#databasePassword = ${databasePassword}
#databaseHost = ${databaseHost}

database = mysql
databaseDriver = org.gjt.mm.mysql.Driver
databaseUrl = jdbc:mysql://localhost/newapp
databaseUser = dbUser
databasePassword = dbPassword
databaseHost = localhost

torque.database.name = newapp
torque.database.manualCreation = false
torque.database.driver = org.gjt.mm.mysql.Driver
torque.database.createUrl = jdbc:mysql://localhost
torque.database.buildUrl = jdbc:mysql://localhost/newapp
torque.database.user = dbUser
torque.database.password = dbPassword

# -------------------------------------------------------------------
#
#  T O R Q U E  C O N F I G U R A T I O N
#
# -------------------------------------------------------------------
# These settings will allow you to customize the way your
# Peer-based object model is created.
# -------------------------------------------------------------------

torque.buildFile=build-torque.xml

extend=TurbineMapBuilder
mapname=TurbineMap
suffix=MapBuilder
targetPackage=org.mycompany.newapp.om
targetDirectory=org/mycompany/newapp/om
addSaveMethod=true
addGetByNameMethod=false
complexObjectModel=true
basePrefix=Base
useManagers=false
overloadKeySetters=true
useClasspath=true
templatePath=use_classpath

# -------------------------------------------------------------------
#
#  C O N T R O L  T E M P L A T E S
#
# -------------------------------------------------------------------

SQLControlTemplate = sql/base/Control.vm
OMControlTemplate = om/Control.vm
idTableControlTemplate = sql/id-table/Control.vm
securityControlTemplate = sql/security/Control.vm
DataDTDControlTemplate = data/Control.vm
DataDumpControlTemplate = data/dump/Control.vm
DataSQLControlTemplate = sql/load/Control.vm

# -------------------------------------------------------------------------
# The values for the ID_TABLE_ID column in the ID_TABLE start
# at 101 for tables used in projects.
# -------------------------------------------------------------------------
initialID = 101


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

Reply via email to