You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Alexandr Nozdrin <al...@ringrows.ru> on 2003/04/07 14:10:39 UTC

TDK 2.2.01 -- sample init problem

Hello,
I am having a problem to build the sample application in TDK 2.2.01.
Unfortunately, I saw several messages in archive with the same problem, but
could not find appropriate solution.

Step by step:

(TDK_HOME=/opt/java-all/tdk-2.2 -- TDK installation prefix)

1. Download tdk-2.2_01.tar.gz, unpack it to $TDK_HOME

2. Modify build.properties:

  - Add "tdk.home = /opt/java-all/tdk-2.2"

3. 'ant' in the $TDK_HOME -> everything is Ok.

4. Go to $TDK_HOME/webapps/newapp/WEB-INF/build

5. Modify build.properties:

  - Add "tdk.home = /opt/java-all/tdk-2.2"

  - Modify 'Datbase settings' section:

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

database.name = alik_db
database = mysql
createDatabaseUrl = jdbc:mysql://localhost:3306/alik_db
buildDatabaseUrl = jdbc:mysql://localhost:3306/alik_db
databaseUrl = jdbc:mysql://localhost:3306/alik_db
databaseDriver = org.gjt.mm.mysql.Driver
databaseUser = alik
databasePassword = alikpass
databaseHost = 127.0.0.1

6. ant init -> Error.

--- ant log: begin ---
(alik)[/opt/java-all/tdk-2.2/webapps/newapp/WEB-INF/build]> ant init
Buildfile: build.xml

check-webinf-exists:

setup-webinf:

init:

setup:

init-tasks:

create-database:

create-db-check:

create-db:
[torque-data-model] Using classpath
[torque-data-model] Generating to file /opt/java-all/tdk-2.2/webapps/newapp/WEB-INF/src/sql/create-db.sql
[torque-data-model] Resolver: used database.dtd from org.apache.torque.engine.database.transform package 
[torque-data-model] Resolver: used database.dtd from org.apache.torque.engine.database.transform package 
[torque-data-model] Resolver: used database.dtd from org.apache.torque.engine.database.transform package 

BUILD FAILED
file:/opt/java-all/tdk-2.2/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.

Total time: 3 seconds
(alik)[/opt/java-all/tdk-2.2/webapps/newapp/WEB-INF/build]> 
--- ant log: end ---

--- velocity log: begin ---
(alik)[/opt/java-all/tdk-2.2/webapps/newapp/WEB-INF/build]> cat velocity.log  
Mon Apr 07 16:04:24 MSD 2003  [debug] AvalonLogSystem initialized using logfile 'velocity.log'
Mon Apr 07 16:04:24 MSD 2003   [info] ************************************************************** 
Mon Apr 07 16:04:24 MSD 2003   [info] Starting Jakarta Velocity v1.4-dev
Mon Apr 07 16:04:24 MSD 2003   [info] RuntimeInstance initializing.
Mon Apr 07 16:04:24 MSD 2003   [info] Default Properties File: org/apache/velocity/runtime/defaults/velocity.properties
Mon Apr 07 16:04:24 MSD 2003   [info] Trying to use logger class org.apache.velocity.runtime.log.AvalonLogSystem
Mon Apr 07 16:04:24 MSD 2003   [info] Using logger class org.apache.velocity.runtime.log.AvalonLogSystem
Mon Apr 07 16:04:24 MSD 2003   [info] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
Mon Apr 07 16:04:24 MSD 2003   [info] Resource Loader Instantiated: org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
Mon Apr 07 16:04:24 MSD 2003   [info] ClasspathResourceLoader : initialization starting.
Mon Apr 07 16:04:24 MSD 2003   [info] ClasspathResourceLoader : initialization complete.
Mon Apr 07 16:04:24 MSD 2003   [info] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
Mon Apr 07 16:04:24 MSD 2003   [info] Default ResourceManager initialization complete.
Mon Apr 07 16:04:24 MSD 2003   [info] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
Mon Apr 07 16:04:24 MSD 2003   [info] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
Mon Apr 07 16:04:24 MSD 2003   [info] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
Mon Apr 07 16:04:24 MSD 2003   [info] Loaded System Directive: org.apache.velocity.runtime.directive.Include
Mon Apr 07 16:04:24 MSD 2003   [info] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
Mon Apr 07 16:04:24 MSD 2003   [info] Created: 20 parsers.
Mon Apr 07 16:04:24 MSD 2003   [info] Velocimacro : initialization starting.
Mon Apr 07 16:04:24 MSD 2003   [info] Velocimacro : adding VMs from VM library template : VM_global_library.vm
Mon Apr 07 16:04:24 MSD 2003  [error] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
Mon Apr 07 16:04:24 MSD 2003   [info] Velocimacro : error using  VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm'
Mon Apr 07 16:04:24 MSD 2003   [info] Velocimacro :  VM library template macro registration complete.
Mon Apr 07 16:04:24 MSD 2003   [info] Velocimacro : allowInline = true : VMs can be defined inline in templates
Mon Apr 07 16:04:24 MSD 2003   [info] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
Mon Apr 07 16:04:24 MSD 2003   [info] Velocimacro : allowInlineLocal = false : VMs defined inline will be  global in scope if allowed.
Mon Apr 07 16:04:24 MSD 2003   [info] Velocimacro : messages on  : VM system will output logging messages
Mon Apr 07 16:04:24 MSD 2003   [info] Velocimacro : autoload off  : VM system will not automatically reload global library macros
Mon Apr 07 16:04:24 MSD 2003   [info] Velocimacro : initialization complete.
Mon Apr 07 16:04:24 MSD 2003   [info] Velocity successfully started.
Mon Apr 07 16:04:25 MSD 2003  [error] ResourceManager : unable to find resource 'sql/db-init/Control.vm' in any resource loader.
(alik)[/opt/java-all/tdk-2.2/webapps/newapp/WEB-INF/build]> 
--- velocity log: end ---

How can I cope with it?

P.S: I found that this file (sql/db-init/Control.vm) is placed in
torque-3.0.jar. May be this jar should be added to something like
CLASSPATH?

P.P.S: system information:

- CLASSPATH="/opt/java-all/jakarta-tomcat-4.0.1/common/lib/activation.jar:/opt/java-all/jakarta-tomcat-4.0.1/common/lib/mail.jar:/opt/java-all/jakarta-tomcat-4.0.1/common/lib/servlet.jar:/opt/java-all/soap-2_3_1/lib/soap.jar:/opt/java-all/velocity-1.3.1/velocity-dep-1.3.1.jar:/opt/java-all/turbine-2.2/turbine-2.2.jar:/soft/junit3.7/junit.jar:."

- JDK: 
  (alik)[/opt/java-all/tdk-2.2/webapps/newapp/WEB-INF/build]> java -version
  java version "1.4.0"
  Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
  Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

- ANT: Apache Ant version 1.5 compiled on July 9 2002 

Thank you for advice.

-- 
Best regards,
  Alexandr Nozdrin

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org