I was using Maven 1.1-Beta 2 with Java 1.5.0_05
Now I've installed Maven 1.0.2 but still I've got some errors. At first
even if i put in project.properties line torque.schema.dir = .\schema
I've got an error that schema can not be found - and path to the scham
is shown as ProjectDir\src\schema, even though it should be
ProjectDir\schema. If I put it under src directory - I've got such an error:
BUILD FILED
File ... ..\maven-torque-plugin-3.1.1\plugin.jelly
Element ... torque-sql
Line ........ 165
Column .... 49
Exception thrown by 'properties.load'. For more information consult the
velocity log or invoke ant with the -debug flag.
The velocity log contains:
2005-10-20 12:04:02,453 - SimpleLog4JLogSystem initialized using logfile
'velocity.log'
2005-10-20 12:04:02,453 -
**************************************************************
2005-10-20 12:04:02,468 - Starting Jakarta Velocity v1.3.1
2005-10-20 12:04:02,468 - RuntimeInstance initializing.
2005-10-20 12:04:02,468 - Default Properties File:
org\apache\velocity\runtime\defaults\velocity.properties
2005-10-20 12:04:02,468 - Trying to use logger class
org.apache.velocity.runtime.log.AvalonLogSystem
2005-10-20 12:04:02,468 - 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
2005-10-20 12:04:02,468 - Trying to use logger class
org.apache.velocity.runtime.log.SimpleLog4JLogSystem
2005-10-20 12:04:02,468 - Using logger class
org.apache.velocity.runtime.log.SimpleLog4JLogSystem
2005-10-20 12:04:02,468 - Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
2005-10-20 12:04:02,468 - Resource Loader Instantiated:
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2005-10-20 12:04:02,468 - ClasspathResourceLoader : initialization starting.
2005-10-20 12:04:02,468 - ClasspathResourceLoader : initialization complete.
2005-10-20 12:04:02,468 - ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
2005-10-20 12:04:02,468 - Default ResourceManager initialization complete.
2005-10-20 12:04:02,468 - Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
2005-10-20 12:04:02,468 - Loaded System Directive:
org.apache.velocity.runtime.directive.Macro
2005-10-20 12:04:02,468 - Loaded System Directive:
org.apache.velocity.runtime.directive.Parse
2005-10-20 12:04:02,484 - Loaded System Directive:
org.apache.velocity.runtime.directive.Include
2005-10-20 12:04:02,484 - Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
2005-10-20 12:04:02,609 - Created: 20 parsers.
2005-10-20 12:04:02,609 - Velocimacro : initialization starting.
2005-10-20 12:04:02,609 - Velocimacro : adding VMs from VM library
template : VM_global_library.vm
2005-10-20 12:04:02,609 - ResourceManager : unable to find resource
'VM_global_library.vm' in any resource loader.
2005-10-20 12:04:02,609 - Velocimacro : error using VM library template
VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
2005-10-20 12:04:02,609 - Velocimacro : VM library template macro
registration complete.
2005-10-20 12:04:02,609 - Velocimacro : allowInline = true : VMs can be
defined inline in templates
2005-10-20 12:04:02,609 - Velocimacro : allowInlineToOverride = false :
VMs defined inline may NOT replace previous VM definitions
2005-10-20 12:04:02,609 - Velocimacro : allowInlineLocal = false : VMs
defined inline will be global in scope if allowed.
2005-10-20 12:04:02,609 - Velocimacro : messages on : VM system will
output logging messages
2005-10-20 12:04:02,609 - Velocimacro : autoload off : VM system will
not automatically reload global library macros
2005-10-20 12:04:02,609 - Velocimacro : initialization complete.
2005-10-20 12:04:02,609 - Velocity successfully started.
2005-10-20 12:04:40,937 - SimpleLog4JLogSystem initialized using logfile
'velocity.log'
2005-10-20 12:04:40,937 -
**************************************************************
2005-10-20 12:04:40,937 - Starting Jakarta Velocity v1.3.1
2005-10-20 12:04:40,937 - RuntimeInstance initializing.
2005-10-20 12:04:40,937 - Default Properties File:
org\apache\velocity\runtime\defaults\velocity.properties
2005-10-20 12:04:40,937 - Trying to use logger class
org.apache.velocity.runtime.log.AvalonLogSystem
2005-10-20 12:04:40,937 - 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
2005-10-20 12:04:40,937 - Trying to use logger class
org.apache.velocity.runtime.log.SimpleLog4JLogSystem
2005-10-20 12:04:40,937 - Using logger class
org.apache.velocity.runtime.log.SimpleLog4JLogSystem
2005-10-20 12:04:40,937 - Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
2005-10-20 12:04:40,937 - Resource Loader Instantiated:
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2005-10-20 12:04:40,937 - ClasspathResourceLoader : initialization starting.
2005-10-20 12:04:40,937 - ClasspathResourceLoader : initialization complete.
2005-10-20 12:04:40,953 - ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
2005-10-20 12:04:40,953 - Default ResourceManager initialization complete.
2005-10-20 12:04:40,953 - Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
2005-10-20 12:04:40,953 - Loaded System Directive:
org.apache.velocity.runtime.directive.Macro
2005-10-20 12:04:40,953 - Loaded System Directive:
org.apache.velocity.runtime.directive.Parse
2005-10-20 12:04:40,953 - Loaded System Directive:
org.apache.velocity.runtime.directive.Include
2005-10-20 12:04:40,953 - Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
2005-10-20 12:04:41,078 - Created: 20 parsers.
2005-10-20 12:04:41,078 - Velocimacro : initialization starting.
2005-10-20 12:04:41,078 - Velocimacro : adding VMs from VM library
template : VM_global_library.vm
2005-10-20 12:04:41,078 - ResourceManager : unable to find resource
'VM_global_library.vm' in any resource loader.
2005-10-20 12:04:41,078 - Velocimacro : error using VM library template
VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
2005-10-20 12:04:41,078 - Velocimacro : VM library template macro
registration complete.
2005-10-20 12:04:41,078 - Velocimacro : allowInline = true : VMs can be
defined inline in templates
2005-10-20 12:04:41,078 - Velocimacro : allowInlineToOverride = false :
VMs defined inline may NOT replace previous VM definitions
2005-10-20 12:04:41,078 - Velocimacro : allowInlineLocal = false : VMs
defined inline will be global in scope if allowed.
2005-10-20 12:04:41,078 - Velocimacro : messages on : VM system will
output logging messages
2005-10-20 12:04:41,078 - Velocimacro : autoload off : VM system will
not automatically reload global library macros
2005-10-20 12:04:41,078 - Velocimacro : initialization complete.
2005-10-20 12:04:41,078 - Velocity successfully started.
2005-10-20 12:04:41,218 - ResourceManager : found sql/base/Control.vm
with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2005-10-20 12:04:41,234 - Method load threw exception for reference
$properties in template sql/base/Control.vm at [2,19]
2005-10-20 12:05:13,000 - SimpleLog4JLogSystem initialized using logfile
'velocity.log'
2005-10-20 12:05:13,000 -
**************************************************************
2005-10-20 12:05:13,000 - Starting Jakarta Velocity v1.3.1
2005-10-20 12:05:13,000 - RuntimeInstance initializing.
2005-10-20 12:05:13,000 - Default Properties File:
org\apache\velocity\runtime\defaults\velocity.properties
2005-10-20 12:05:13,000 - Trying to use logger class
org.apache.velocity.runtime.log.AvalonLogSystem
2005-10-20 12:05:13,000 - 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
2005-10-20 12:05:13,000 - Trying to use logger class
org.apache.velocity.runtime.log.SimpleLog4JLogSystem
2005-10-20 12:05:13,000 - Using logger class
org.apache.velocity.runtime.log.SimpleLog4JLogSystem
2005-10-20 12:05:13,000 - Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
2005-10-20 12:05:13,000 - Resource Loader Instantiated:
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2005-10-20 12:05:13,000 - ClasspathResourceLoader : initialization starting.
2005-10-20 12:05:13,000 - ClasspathResourceLoader : initialization complete.
2005-10-20 12:05:13,015 - ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
2005-10-20 12:05:13,015 - Default ResourceManager initialization complete.
2005-10-20 12:05:13,015 - Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
2005-10-20 12:05:13,015 - Loaded System Directive:
org.apache.velocity.runtime.directive.Macro
2005-10-20 12:05:13,015 - Loaded System Directive:
org.apache.velocity.runtime.directive.Parse
2005-10-20 12:05:13,015 - Loaded System Directive:
org.apache.velocity.runtime.directive.Include
2005-10-20 12:05:13,015 - Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
2005-10-20 12:05:13,140 - Created: 20 parsers.
2005-10-20 12:05:13,140 - Velocimacro : initialization starting.
2005-10-20 12:05:13,140 - Velocimacro : adding VMs from VM library
template : VM_global_library.vm
2005-10-20 12:05:13,140 - ResourceManager : unable to find resource
'VM_global_library.vm' in any resource loader.
2005-10-20 12:05:13,140 - Velocimacro : error using VM library template
VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
2005-10-20 12:05:13,140 - Velocimacro : VM library template macro
registration complete.
2005-10-20 12:05:13,140 - Velocimacro : allowInline = true : VMs can be
defined inline in templates
2005-10-20 12:05:13,140 - Velocimacro : allowInlineToOverride = false :
VMs defined inline may NOT replace previous VM definitions
2005-10-20 12:05:13,140 - Velocimacro : allowInlineLocal = false : VMs
defined inline will be global in scope if allowed.
2005-10-20 12:05:13,140 - Velocimacro : messages on : VM system will
output logging messages
2005-10-20 12:05:13,140 - Velocimacro : autoload off : VM system will
not automatically reload global library macros
2005-10-20 12:05:13,140 - Velocimacro : initialization complete.
2005-10-20 12:05:13,140 - Velocity successfully started.
2005-10-20 12:05:13,281 - ResourceManager : found sql/base/Control.vm
with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2005-10-20 12:05:13,296 - Method load threw exception for reference
$properties in template sql/base/Control.vm at [2,19]
I've got my sql driver (postgresql-8.1dev-402.jdbc3.jar) put into my
classpath
Regards
Jakub Piechnik
Thomas Fischer napisał(a):
Hi,
This is the first time I have heard of such problems under windows,
therefore, I'd rather suspect the difference lies in the java or maven
version rather than in the os. Which java version are you using on windows
? And which maven version are you using ?
I'd recommend to use maven 1.0.2, where xercesImpl-2.4.0.jar is located in
maven/lib/endorsed. Maybe in other maven versions, the library should be
put there.
Thomas
"Piechu Piechu" <[EMAIL PROTECTED]> schrieb am 19.10.2005 19:47:45:
I'm trying to create sql scripts and java classes from schema file.
Under Linux everything is ok, but when I'm trying to do it under
Windows - operation maven torqe ends with such information:
BUILD FAILED
File ....\.maven\cahce\maven-torque-plugin-3.1.1\plugin.jelly
Element ... taskdef
Line ...... 87
Column .... 67
taskdef A class needed by class org.apache.torque.task.
TorqueJDBCTransformTask cannot be found:
org/apache/xerces/dom/CoreDocumentImpl
All needed jars were downloaded without any errors and mentioned
above class is in directory \.maven\repositiory\xerces\jars - both
xerces-2.4.0.jar and xercesImpl-2.4.0
What should I do to run torque under Windows
Regards
Jakub Piechnik
P.S. I tried to put all jars from lib directory from torque*.zip
file and my database JDBC driver to the classpath - but it has no
results.
----------------------------------------------------
Wejdź na strone: Halloween.wp.pl i WYGRAJ "czarci" rejs dla siebie
i osoby towarzyszącej! Wyruszycie w podróż nowym promem Stena Line!
Stań oko w oko z duchami i zobacz kto jest lepszy - Kliknij:
http://klik.wp.pl/?adr=www.halloween.wp.pl&sid=535
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]