[prev in list] [next in list] [prev in thread] [next in thread] 

List:       turbine-torque-user
Subject:    [newbie] Tutorial: BUILD FAILED with PostgreSQL
From:       "Matthias Klein" <matthias () cmklein ! de>
Date:       2006-05-09 18:14:29
Message-ID: 20060509181428.6FF6A1340D7 () h8180 ! serverkompetenz ! net
[Download RAW message or body]

Hi there
I tried the Tutorial down to the letter except for the fact that I don't
have a MySQL database server but the latest release of PostgreSQL installed
on my machine.

So I typed up the XML schema files as described in the tutorial and did the
"maven torque" but build failed:

--<snip>--
C:\JavaCode\torquetest>maven torque
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

build:start:

torque:
torque:init:

torque:sql-check:

torque:sql:
torque:init:
Overriding previous definition of reference to torque-classpath

torque:sql-generate:
    [torque-sql] Using classpath
    [torque-sql] Generating to file
C:\JavaCode\torquetest\target\sql\report.boo
kstore.sql.generation

BUILD FAILED
File...... C:\Dokumente und
Einstellungen\Matthias.WORK1\.maven\cache\maven-torq
ue-plugin-3.2\plugin.jelly
Element... torque-sql
Line...... 163
Column.... 49
Exception thrown by 'generator.parse'. For more information consult the
velocity
 log, or invoke ant with the -debug flag.
Total time: 6 seconds
Finished at: Tue May 09 20:02:56 CEST 2006
--<snap>--

So I copied and pasted the schema and property files this time, only
altering the property file as posted below and tried the maven torque again.
And again: build failed. Why?

Here is my project.properties:

--<snip>--
# The name of the project Torque will generate code for.
torque.project = bookstore

# The target database platform.
torque.database = postgres

# The target package to put the generated classes in.
torque.targetPackage = com.kazmier.om

# The JDBC URL that Torque can use to create and
# drop databases if instructed to do so.
torque.database.createUrl = jdbc:postgresql://localhost:5432/postgres

# The JDBC URL that will be used to create tables in your database.
torque.database.buildUrl = jdbc:postgresql://localhost:5432/bookstore

# The JDBC URL that will be used to access your database.
torque.database.url = jdbc:postgresql://localhost:5432/bookstore

# The JDBC database driver to use when connecting to your database.
torque.database.driver = org.postgresql.Driver

# The administrative username that has sufficient privileges to create
# and drop databases and tables that Torque executes at generation time.
torque.database.user = postgres

# The administrative password for the supplied username.
torque.database.password = postgres

# The hostname or IP address of your database server.
torque.database.host = localhost
--<snap>--


Among the things maven produced was the file "velocity.log" containing the
following stuff:
--<snip>--
2006-05-09 20:02:55,553 - SimpleLog4JLogSystem initialized using logfile
'velocity.log'
2006-05-09 20:02:55,553 -
************************************************************** 
2006-05-09 20:02:55,553 - Starting Jakarta Velocity v1.3.1
2006-05-09 20:02:55,553 - RuntimeInstance initializing.
2006-05-09 20:02:55,553 - Default Properties File:
org\apache\velocity\runtime\defaults\velocity.properties
2006-05-09 20:02:55,553 - Trying to use logger class
org.apache.velocity.runtime.log.AvalonLogSystem
2006-05-09 20:02:55,553 - Couldn't find class
org.apache.velocity.runtime.log.AvalonLogSystem or necessary supporting
classes in classpath. Exception : java.lang.NoClassDefFoundError:
org/apache/log/format/Formatter
2006-05-09 20:02:55,553 - Trying to use logger class
org.apache.velocity.runtime.log.SimpleLog4JLogSystem
2006-05-09 20:02:55,553 - Using logger class
org.apache.velocity.runtime.log.SimpleLog4JLogSystem
2006-05-09 20:02:55,563 - Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
2006-05-09 20:02:55,573 - Resource Loader Instantiated:
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2006-05-09 20:02:55,573 - ClasspathResourceLoader : initialization starting.
2006-05-09 20:02:55,573 - ClasspathResourceLoader : initialization complete.
2006-05-09 20:02:55,573 - ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
2006-05-09 20:02:55,573 - Default ResourceManager initialization complete.
2006-05-09 20:02:55,583 - Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
2006-05-09 20:02:55,583 - Loaded System Directive:
org.apache.velocity.runtime.directive.Macro
2006-05-09 20:02:55,593 - Loaded System Directive:
org.apache.velocity.runtime.directive.Parse
2006-05-09 20:02:55,593 - Loaded System Directive:
org.apache.velocity.runtime.directive.Include
2006-05-09 20:02:55,603 - Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
2006-05-09 20:02:55,974 - Created: 20 parsers.
2006-05-09 20:02:55,974 - Velocimacro : initialization starting.
2006-05-09 20:02:55,974 - Velocimacro : adding VMs from VM library template
: VM_global_library.vm
2006-05-09 20:02:55,984 - ResourceManager : unable to find resource
'VM_global_library.vm' in any resource loader.
2006-05-09 20:02:55,984 - Velocimacro : error using  VM library template
VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
2006-05-09 20:02:55,984 - Velocimacro :  VM library template macro
registration complete.
2006-05-09 20:02:55,984 - Velocimacro : allowInline = true : VMs can be
defined inline in templates
2006-05-09 20:02:55,984 - Velocimacro : allowInlineToOverride = false : VMs
defined inline may NOT replace previous VM definitions
2006-05-09 20:02:55,984 - Velocimacro : allowInlineLocal = false : VMs
defined inline will be  global in scope if allowed.
2006-05-09 20:02:55,984 - Velocimacro : messages on  : VM system will output
logging messages
2006-05-09 20:02:55,984 - Velocimacro : autoload off  : VM system will not
automatically reload global library macros
2006-05-09 20:02:55,984 - Velocimacro : initialization complete.
2006-05-09 20:02:55,984 - Velocity successfully started.
2006-05-09 20:02:56,304 - ResourceManager : found sql/base/Control.vm with
loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2006-05-09 20:02:56,334 - ResourceManager : unable to find resource
'sql/base/postgres/table.vm' in any resource loader.
2006-05-09 20:02:56,334 - Method parse threw exception for reference
$generator in template sql/base/Control.vm at  [35,7]
--<snap>--

Any ideas? What did I do wrong?

Thanks

Matt


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic