-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: getting ExceptionInInitializerError when running tools??
PostPosted: Tue May 17, 2005 10:11 am 
Newbie

Joined: Mon May 16, 2005 11:25 am
Posts: 8
I'm trying to run the hibernate code generation tool to generate POJOs from the example auction mapping files. I am using:

Hibernate 3.0.3
Hibernate tools 3.0 alpha3 from cvs.
Oracle 9i

This is the error I get from running my ant task:
Code:
[hibernateTools] 1. task: hbm2java (Generates a set of .java files)

BUILD FAILED
java.lang.ExceptionInInitializerError

Total time: 1 second


Has anyone else gotten this error?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 17, 2005 12:32 pm 
Newbie

Joined: Mon May 16, 2005 11:25 am
Posts: 8
here's my full stacktrace with ant -debug.



Apache Ant version 1.6.3 compiled on April 28 2005
Buildfile: my_build2.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.5 in: C:\Program Files\Java\jdk1.5.0_02\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.3 compiled on April 28 2005
Setting ro project property: ant.file -> C:\home\my_build2.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\home\my_build2.xml with URI = file:///C:/home/my_build2.xml
Setting ro project property: ant.project.name -> MY_BUILD
Adding reference: MY_BUILD
Setting ro project property: ant.file.MY_BUILD -> C:\home\my_build2.xml
Project base dir set to: C:\home
+Target:
Adding reference: core.class.path
Adding reference: security.provider.class.path
Adding reference: test.class.path
Adding reference: workflow.test.class.path
+Target: disclaimer
+Target: usage
+Target: compile_jasper
+Target: clean_all
+Target: clean_jar
+Target: clean_build
+Target: vss
+Target: verify_app
+Target: init
+Target: init_app_config
+Target: init_elt_config
+Target: deploy_app_config
+Target: deploy_elt_config
+Target: init_core_config
+Target: deploy_core_config
+Target: enum_gen_tool
+Target: MY_BUILD
+Target: MY_BUILD_test
+Target: appstart
+Target: appstop
+Target: oms_gt
+Target: init_weblogic
+Target: test_all
+Target: admin
+Target: runj
+Target: regen_classes
+Target: update_codegen_sql
+Target: regenerate_trade
+Target: regenerate_router
+Target: regenerate_messages
+Target: regenerate_swift_messages
+Target: regenerate_enums
Adding reference: enum.path
+Target: regenerate_file
+Target: regenerate_models
+Target: regenerate_blotters
+Target: regenerate_message_file_parser
+Target: transform_xslt
+Target: regenerate_settlement
+Target: update_codegen_sql_trade
+Target: update_codegen_sql_refdata
+Target: update_codegen_sql_router
+Target: update_codegen_sql_enums
Adding reference: codegen.path
+Target: update_codegen_sql_enum
+Target: 3rd_party_jar
+Target: build_lib_jar
+Target: build_core
+Target: deploy_core
+Target: eltstart
+Target: eltServerStart
+Target: eltServerStop
+Target: wlstart
+Target: wlstop
+Target: iis_setup
+Target: build_citi
+Target: build_generic
+Target: deploy_app
+Target: security-provider
+Target: deploy_security_provider
+Target: clean_trade_data
+Target: clean_db
+Target: db
+Target: db_ref_bic
+Target: db_development
+Target: db_production
+Target: db_migration
+Target: qa_migration
+Target: prod_migration
+Target: db_prod
+Target: db_prod_setup
+Target: db_prod_deploy
+Target: build_admin
+Target: deploy_admin
+Target: ast_view
+Target: init_test_config
+Target: bouncer
+Target: rawfixtest
+Target: workflowtest
+Target: workflowperftest
+Target: membraintest
+Target: settlement_test
+Target: blackboxtest
+Target: blackboxStressTest
+Target: membrain_stress_test
+Target: unittest
+Target: unittest_gt
+Target: unittest_oms
+Target: brokerSimulator
+Target: blackbox_loadtest
+Target: log_file_begin
+Target: setup
+Target: setup_deploy
+Target: precompile_jsp
+Target: precompile_jsp_wl
+Target: precompile_app_jsp
+Target: deploy_jsp
+Target: clean_jsp
Adding reference: hibernate.class.path
+Target: hibernate_ddl
+Target: -pre-compile
+Target: -post-compile
+Target: codegen
[property] Loading Environment env.
Setting project property: env.TEMP -> C:\DOCUME~1\user\LOCALS~1\Temp
Setting project property: env.JAVA_HOME -> C:\Program Files\Java\jdk1.5.0_02
Setting project property: env.CLASSPATH -> .;C:\hibernate-3.0\eg;C:\home\lib;C:\hibernate-3.0\lib
Setting project property: env.WL_PRODUCTION_MODE -> false
Setting project property: env.DB_PORT -> 1521
Setting project property: env.ProgramFiles -> C:\Program Files
Setting project property: env.VSS_SRV_PATH -> I:
Setting project property: env.WL_USER -> system
Setting project property: env.SQLPLUS_HOME -> C:/oracle/ora92/bin
Setting project property: env.SESSIONNAME -> Console
Setting project property: env.SystemRoot -> C:\WINDOWS
Setting project property: env.JAVA_HOME2 -> C:\bea\jrockit70sp5_131_10
Setting project property: env.USERNAME -> user
Setting project property: env.SSUSER -> user
Setting project property: env._JAVACMD -> C:\Program Files\Java\jdk1.5.0_02\bin\java
Setting project property: env.VSS_LOGIN -> user
Setting project property: env.PROCESSOR_LEVEL -> 15
Setting project property: env.WL_DOMAIN -> geotrades
Setting project property: env.FP_NO_HOST_CHECK -> NO
Setting project property: env.VSS_SSDIR -> I:/win32
Setting project property: env.USERPROFILE -> C:\Documents and Settings\user
Setting project property: env.PROCESSOR_REVISION -> 0209
Setting project property: env.CommonProgramFiles -> C:\Program Files\Common Files
Setting project property: env.WL_DOMAIN_HOME -> C:/bea/weblogic700/config/geotrades
Setting project property: env.ANT_CMD_LINE_ARGS -> -debug -f my_build2.xml codegen
Setting project property: env.WL_PASSWORD -> weblogic
Setting project property: env.HOMEPATH -> \Documents and Settings\user
Setting project property: env.GT_HOME_WIN -> C:/home
Setting project property: env.PROCESSOR_ARCHITECTURE -> x86
Setting project property: env.LOCALCLASSPATH -> C:\Program Files\Java\jdk1.5.0_02\lib\tools.jar;C:\apache-ant-1.6.3\lib\
xml-apis.jar;C:\apache-ant-1.6.3\lib\xercesImpl.jar;C:\apache-ant-1.6.3\lib\ant.jar;C:\apache-ant-1.6.3\lib\ant-xslp.jar
;C:\apache-ant-1.6.3\lib\ant-xalan1.jar;C:\apache-ant-1.6.3\lib\ant-weblogic.jar;C:\apache-ant-1.6.3\lib\ant-vaj.jar;C:\
apache-ant-1.6.3\lib\ant-trax.jar;C:\apache-ant-1.6.3\lib\ant-swing.jar;C:\apache-ant-1.6.3\lib\ant-stylebook.jar;C:\apa
che-ant-1.6.3\lib\ant-starteam.jar;C:\apache-ant-1.6.3\lib\ant-nodeps.jar;C:\apache-ant-1.6.3\lib\ant-netrexx.jar;C:\apa
che-ant-1.6.3\lib\ant-launcher.jar;C:\apache-ant-1.6.3\lib\ant-junit.jar;C:\apache-ant-1.6.3\lib\ant-jsch.jar;C:\apache-
ant-1.6.3\lib\ant-jmf.jar;C:\apache-ant-1.6.3\lib\ant-jdepend.jar;C:\apache-ant-1.6.3\lib\ant-javamail.jar;C:\apache-ant
-1.6.3\lib\ant-jai.jar;C:\apache-ant-1.6.3\lib\ant-icontract.jar;C:\apache-ant-1.6.3\lib\ant-commons-net.jar;C:\apache-a
nt-1.6.3\lib\ant-commons-logging.jar;C:\apache-ant-1.6.3\lib\ant-apache-resolver.jar;C:\apache-ant-1.6.3\lib\ant-apache-
regexp.jar;C:\apache-ant-1.6.3\lib\ant-apache-oro.jar;C:\apache-ant-1.6.3\lib\ant-apache-log4j.jar;C:\apache-ant-1.6.3\l
ib\ant-apache-bsf.jar;C:\apache-ant-1.6.3\lib\ant-apache-bcel.jar;C:\apache-ant-1.6.3\lib\ant-antlr.jar;.;C:\hibernate-3
.0\eg;C:\home\lib;C:\hibernate-3.0\lib
Setting project property: env.DB_TNSNAME -> cbxdev
Setting project property: env.OS -> Windows_NT
Setting project property: env.jdk15.home -> C:\Program Files\Java\jdk1.5.0_02
Setting project property: env.CLIENTNAME -> Console
Setting project property: env.ComSpec -> C:\WINDOWS\system32\cmd.exe
Setting project property: env.PATHEXT -> .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
Setting project property: env.PROMPT -> $P$G
Setting project property: env.ALLUSERSPROFILE -> C:\Documents and Settings\All Users
Setting project property: env._CLASSPATHCOMPONENT -> C:\Program Files\Java\jdk1.5.0_02\lib\tools.jar
Setting project property: env.HOMEDRIVE -> C:
Setting project property: env.PATH -> C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\
jre\1.1.8\bin;C:\bea\jrockit70sp5_131_10\bin;C:\home\Ant\bin
Setting project property: env.PROCESSOR_IDENTIFIER -> x86 Family 15 Model 2 Stepping 9, GenuineIntel
Setting project property: env.APPDATA -> C:\Documents and Settings\user\Application Data
Setting project property: env.NUMBER_OF_PROCESSORS -> 2
Setting project property: env.ANT_HOME -> C:\apache-ant-1.6.3
Setting project property: env.DB_SERVICE -> cbxdev
Setting project property: env.WL_SERVER_NAME -> myserver
Setting project property: env.WL_HOME -> C:/bea/weblogic700
Setting project property: env.GT_HOME -> C:/home
Setting project property: env.SystemDrive -> C:
Setting project property: env.TMP -> C:\DOCUME~1\user\LOCALS~1\Temp
Setting project property: env.windir -> C:\WINDOWS
Setting project property: env.BEA_HOME -> C:/bea
Setting project property: LOG_FILE -> build.log
Setting project property: ADMIN_APP_NAME -> admin
Setting project property: CITI_APP_NAME -> weboms
Setting project property: GENERIC_APP_NAME -> generic
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Adding reference: core.class.path
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Adding reference: security.provider.class.path
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Adding reference: test.class.path
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Property ${app} has not been set
Adding reference: workflow.test.class.path
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Adding reference: hibernate.class.path
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load a dependent class (junit/framework/Test) for type junit
fileset: Setup scanner in dir C:\home\lib with patternSet{ includes: [*.jar, *.zip] excludes: [] }
Finding class org.hibernate.tool.ant.HibernateToolTask
Loaded from C:\home\lib\hibernate-tools.jar org/hibernate/tool/ant/HibernateToolTask.class
Class org.apache.tools.ant.Task loaded from parent loader (parentFirst)
Class org.hibernate.tool.ant.HibernateToolTask loaded from ant loader (parentFirst)
Class java.lang.Object loaded from parent loader (parentFirst)
Class java.util.List loaded from parent loader (parentFirst)
Finding class org.hibernate.tool.ant.GeneratorTask
Loaded from C:\home\lib\hibernate-tools.jar org/hibernate/tool/ant/GeneratorTask.class
Class org.hibernate.tool.ant.GeneratorTask loaded from ant loader (parentFirst)
Finding class org.hibernate.tool.ant.Cfg2HbmGeneratorTask
Loaded from C:\home\lib\hibernate-tools.jar org/hibernate/tool/ant/Cfg2HbmGeneratorTask.class
Class org.hibernate.tool.ant.Cfg2HbmGeneratorTask loaded from ant loader (parentFirst)
Finding class org.hibernate.tool.ant.Hbm2JavaGeneratorTask
Loaded from C:\home\lib\hibernate-tools.jar org/hibernate/tool/ant/Hbm2JavaGeneratorTask.class
Class org.hibernate.tool.ant.Hbm2JavaGeneratorTask loaded from ant loader (parentFirst)
Finding class org.hibernate.tool.ant.Hbm2DDLGeneratorTask
Loaded from C:\home\lib\hibernate-tools.jar org/hibernate/tool/ant/Hbm2DDLGeneratorTask.class
Class org.hibernate.tool.ant.Hbm2DDLGeneratorTask loaded from ant loader (parentFirst)
Finding class org.hibernate.tool.ant.ConfigurationTask
Loaded from C:\home\lib\hibernate-tools.jar org/hibernate/tool/ant/ConfigurationTask.class
Class org.hibernate.tool.ant.ConfigurationTask loaded from ant loader (parentFirst)
Finding class org.hibernate.tool.ant.AnnotationConfigurationTask
Loaded from C:\home\lib\hibernate-tools.jar org/hibernate/tool/ant/AnnotationConfigurationTask.class
Class org.hibernate.tool.ant.AnnotationConfigurationTask loaded from ant loader (parentFirst)
Finding class org.hibernate.tool.ant.JDBCConfigurationTask
Loaded from C:\home\lib\hibernate-tools.jar org/hibernate/tool/ant/JDBCConfigurationTask.class
Class org.hibernate.tool.ant.JDBCConfigurationTask loaded from ant loader (parentFirst)
Class java.lang.Throwable loaded from parent loader (parentFirst)
Class org.apache.tools.ant.BuildException loaded from parent loader (parentFirst)
+Datatype hibernateTools org.hibernate.tool.ant.HibernateToolTask
Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor
Adding reference: ant.executor
Build sequence for target(s) `codegen' is [codegen]
Complete build sequence is [codegen, eltServerStop, clean_trade_data, vss, verify_app, init_test_config, settlement_test
, build_citi, db_development, regenerate_file, clean_jsp, deploy_core, -post-compile, precompile_jsp_wl, unittest, 3rd_p
arty_jar, staging2_citi, eltstart, deploy_security_provider, deploy_core_config, regenerate_blotters, brokerSimulator, u
nittest_oms, enum_gen_tool, update_codegen_sql_refdata, citidemo_setenv, update_codegen_sql_trade, init, build_core, db_
ref_bic, db_migration, eltServerStart, regen_classes, db, savvis_citi, clean_build, -pre-compile, iis_setup, admin, nigh
tly, db_prod_deploy, staging_citi, hibernate_ddl, MY_BUILD_test, db_prod, setup_deploy, rawfixtest, regenerate_trade, uat
_citi, build_admin, precompile_app_jsp, regenerate_message_file_parser, deploy_app, blackboxtest, db_prod_setup, oms_gt,
build_generic, blackboxStressTest, bouncer, clean_all, test_all, init_app_config, clean_db, workflowtest, precompile_js
p, log_file_begin, init_weblogic, disclaimer, usage, membraintest, db_production, blackbox_loadtest, deploy_jsp, init_el
t_config, deploy_app_config, update_codegen_sql, regenerate_settlement, update_codegen_sql_router, setup, ast_view, upda
te_codegen_sql_enums, compile_jasper, unittest_gt, transform_xslt, build_lib_jar, init_core_config, appstop, wlstart, de
ploy_elt_config, update_codegen_sql_enum, security-provider, regenerate_router, regenerate_messages, membrain_stress_tes
t, runj, workflowperftest, qa_migration, citidemo, appstart, regenerate_swift_messages, regenerate_enums, regenerate_mod
els, wlstop, clean_jar, deploy_admin, prod_migration, ]

codegen:
Class java.util.ArrayList loaded from parent loader (parentFirst)
Class org.apache.tools.ant.types.Path loaded from parent loader (parentFirst)
Class java.io.File loaded from parent loader (parentFirst)
Finding class org.hibernate.cfg.Configuration
Loaded from C:\home\lib\hibernate3.jar org/hibernate/cfg/Configuration.class
Class java.io.Serializable loaded from parent loader (parentFirst)
Class org.hibernate.cfg.Configuration loaded from ant loader (parentFirst)
Class java.io.IOException loaded from parent loader (parentFirst)
Class java.io.FileNotFoundException loaded from parent loader (parentFirst)
Class java.io.InputStream loaded from parent loader (parentFirst)
Class java.io.FileInputStream loaded from parent loader (parentFirst)
Finding class org.hibernate.HibernateException
Loaded from C:\home\lib\hibernate3.jar org/hibernate/HibernateException.class
Finding class org.hibernate.exception.NestableRuntimeException
Loaded from C:\home\lib\hibernate3.jar org/hibernate/exception/NestableRuntimeException.class
Finding class org.hibernate.exception.Nestable
Loaded from C:\home\lib\hibernate3.jar org/hibernate/exception/Nestable.class
Class org.hibernate.exception.Nestable loaded from ant loader (parentFirst)
Class java.lang.RuntimeException loaded from parent loader (parentFirst)
Class org.hibernate.exception.NestableRuntimeException loaded from ant loader (parentFirst)
Class org.hibernate.HibernateException loaded from ant loader (parentFirst)
Class org.apache.tools.ant.types.FileSet loaded from parent loader (parentFirst)
Finding class org.hibernate.tool.hbm2x.Exporter
Loaded from C:\home\lib\hibernate-tools.jar org/hibernate/tool/hbm2x/Exporter.class
Class org.hibernate.tool.hbm2x.Exporter loaded from ant loader (parentFirst)
Class java.lang.String loaded from parent loader (parentFirst)
Finding class org.hibernate.tool.hbm2ddl.SchemaUpdate
Loaded from C:\home\lib\hibernate3.jar org/hibernate/tool/hbm2ddl/SchemaUpdate.class
Class org.hibernate.tool.hbm2ddl.SchemaUpdate loaded from ant loader (parentFirst)
Finding class org.hibernate.tool.hbm2ddl.SchemaExport
Loaded from C:\home\lib\hibernate3.jar org/hibernate/tool/hbm2ddl/SchemaExport.class
Class org.hibernate.tool.hbm2ddl.SchemaExport loaded from ant loader (parentFirst)
Class java.util.Iterator loaded from parent loader (parentFirst)
Class org.apache.tools.ant.Project loaded from parent loader (parentFirst)
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load a dependent class (junit/framework/Test) for type junit
fileset: Setup scanner in dir C:\home\lib with patternSet{ includes: [*.jar, *.zip] excludes: [] }
fileset: Setup scanner in dir C:\eclipse\workspace\test\lib with patternSet{ includes: [*.jar, *.zip] excludes: [] }
Class org.apache.tools.ant.AntClassLoader loaded from parent loader (parentFirst)
Class java.lang.StringBuffer loaded from parent loader (parentFirst)
[hibernateTools] 1. task: hbm2java (Generates a set of .java files)
Finding class org.hibernate.tool.hbm2x.ConfigurationNavigator
Loaded from C:\home\lib\hibernate-tools.jar org/hibernate/tool/hbm2x/ConfigurationNavigator.class
Class org.hibernate.tool.hbm2x.ConfigurationNavigator loaded from ant loader (parentFirst)
Class java.util.Map loaded from parent loader (parentFirst)
Class java.lang.ClassNotFoundException loaded from parent loader (parentFirst)
Class java.lang.Class loaded from parent loader (parentFirst)
Finding class org.hibernate.tool.hbm2x.POJOExporter
Loaded from C:\home\lib\hibernate-tools.jar org/hibernate/tool/hbm2x/POJOExporter.class
Finding class org.hibernate.tool.hbm2x.AbstractExporter
Loaded from C:\home\lib\hibernate-tools.jar org/hibernate/tool/hbm2x/AbstractExporter.class
Class org.hibernate.tool.hbm2x.AbstractExporter loaded from ant loader (parentFirst)
Class org.hibernate.tool.hbm2x.POJOExporter loaded from ant loader (parentFirst)
Finding class org.hibernate.tool.hbm2x.ExporterException
Loaded from C:\home\lib\hibernate-tools.jar org/hibernate/tool/hbm2x/ExporterException.class
Class org.hibernate.tool.hbm2x.ExporterException loaded from ant loader (parentFirst)
Class java.lang.Exception loaded from parent loader (parentFirst)
Class java.io.Writer loaded from parent loader (parentFirst)
Class java.io.StringWriter loaded from parent loader (parentFirst)
Class java.io.FileWriter loaded from parent loader (parentFirst)
Finding class org.apache.commons.logging.LogFactory
Loaded from C:\home\lib\commons-logging-api.jar org/apache/commons/logging/LogFactory.class
Class org.apache.commons.logging.LogFactory loaded from ant loader (parentFirst)
Class java.lang.NoSuchMethodException loaded from parent loader (parentFirst)
Class java.lang.reflect.InvocationTargetException loaded from parent loader (parentFirst)
Class java.lang.IllegalAccessException loaded from parent loader (parentFirst)
Finding class org.apache.commons.logging.LogConfigurationException
Loaded from C:\home\lib\commons-logging-api.jar org/apache/commons/logging/LogConfigurationException.class
Class org.apache.commons.logging.LogConfigurationException loaded from ant loader (parentFirst)
Class java.lang.reflect.Method loaded from parent loader (parentFirst)
Class java.security.PrivilegedAction loaded from parent loader (parentFirst)
Class java.io.UnsupportedEncodingException loaded from parent loader (parentFirst)
Class java.lang.SecurityException loaded from parent loader (parentFirst)
Class java.io.Reader loaded from parent loader (parentFirst)
Class java.io.InputStreamReader loaded from parent loader (parentFirst)
Class java.lang.NoClassDefFoundError loaded from parent loader (parentFirst)
Class java.util.Hashtable loaded from parent loader (parentFirst)
Finding class org.apache.commons.logging.LogFactory$1
Loaded from C:\home\lib\commons-logging-api.jar org/apache/commons/logging/LogFactory$1.class
Class org.apache.commons.logging.LogFactory$1 loaded from ant loader (parentFirst)
Class java.security.AccessController loaded from parent loader (parentFirst)
Class java.lang.Thread loaded from parent loader (parentFirst)
Class java.lang.ClassLoader loaded from parent loader (parentFirst)
Finding class org.apache.commons.logging.LogFactory$3
Loaded from C:\home\lib\commons-logging-api.jar org/apache/commons/logging/LogFactory$3.class
Class org.apache.commons.logging.LogFactory$3 loaded from ant loader (parentFirst)
Couldn't load ResourceStream for commons-logging.properties
Class java.lang.System loaded from parent loader (parentFirst)
Couldn't load ResourceStream for META-INF/services/org.apache.commons.logging.LogFactory
Finding class org.apache.commons.logging.LogFactory$2
Loaded from C:\home\lib\commons-logging-api.jar org/apache/commons/logging/LogFactory$2.class
Class org.apache.commons.logging.LogFactory$2 loaded from ant loader (parentFirst)
Class java.lang.ClassCastException loaded from parent loader (parentFirst)
Finding class org.apache.commons.logging.impl.LogFactoryImpl
Loaded from C:\home\lib\commons-logging-api.jar org/apache/commons/logging/impl/LogFactoryImpl.class
Class org.apache.commons.logging.impl.LogFactoryImpl loaded from ant loader (parentFirst)
Finding class org.apache.commons.logging.impl.LogFactoryImpl$1
Loaded from C:\home\lib\commons-logging-api.jar org/apache/commons/logging/impl/LogFactoryImpl$1.class
Class org.apache.commons.logging.impl.LogFactoryImpl$1 loaded from ant loader (parentFirst)
Finding class org.apache.log4j.Logger
Loaded from C:\home\lib\log4j-1.2.8.jar org/apache/log4j/Logger.class
Finding class org.apache.log4j.Category
Loaded from C:\home\lib\log4j-1.2.8.jar org/apache/log4j/Category.class
Finding class org.apache.log4j.spi.AppenderAttachable
Loaded from C:\home\lib\log4j-1.2.8.jar org/apache/log4j/spi/AppenderAttachable.class
Class java.lang.Object loaded from parent loader (parentFirst)
Class org.apache.log4j.spi.AppenderAttachable loaded from ant loader (parentFirst)
Class org.apache.log4j.Category loaded from ant loader (parentFirst)
Class org.apache.log4j.Logger loaded from ant loader (parentFirst)
Finding class org.apache.commons.logging.impl.Log4JLogger
Loaded from C:\home\lib\commons-logging.jar org/apache/commons/logging/impl/Log4JLogger.class
Finding class org.apache.commons.logging.Log
Loaded from C:\home\lib\commons-logging-api.jar org/apache/commons/logging/Log.class
Class org.apache.commons.logging.Log loaded from ant loader (parentFirst)
Class org.apache.commons.logging.impl.Log4JLogger loaded from ant loader (parentFirst)
Finding class org.apache.commons.logging.Log
Loaded from C:\home\lib\commons-logging-api.jar org/apache/commons/logging/Log.class
Class org.apache.commons.logging.Log loaded from ant loader (parentFirst)

BUILD FAILED
java.lang.ExceptionInInitializerError
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.Main.start(Main.java:150)
at org.apache.tools.ant.Main.main(Main.java:240)
Caused by: java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at org.hibernate.tool.hbm2x.ConfigurationNavigator.class$(ConfigurationNavigator.java:22)
at org.hibernate.tool.hbm2x.ConfigurationNavigator.<clinit>(ConfigurationNavigator.java:22)
at org.hibernate.tool.ant.Hbm2JavaGeneratorTask.execute(Hbm2JavaGeneratorTask.java:36)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:107)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
... 7 more
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: o
rg.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implemen
t Log
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
at org.hibernate.tool.hbm2x.POJOExporter.<clinit>(POJOExporter.java:23)
... 18 more
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: C
lass org.apache.commons.logging.impl.Log4JLogger does not implement Log
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
... 22 more
Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does
not implement Log
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:412)
... 23 more
--- Nested Exception ---
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at org.hibernate.tool.hbm2x.ConfigurationNavigator.class$(ConfigurationNavigator.java:22)
at org.hibernate.tool.hbm2x.ConfigurationNavigator.<clinit>(ConfigurationNavigator.java:22)
at org.hibernate.tool.ant.Hbm2JavaGeneratorTask.execute(Hbm2JavaGeneratorTask.java:36)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:107)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.Main.start(Main.java:150)
at org.apache.tools.ant.Main.main(Main.java:240)
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: o
rg.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implemen
t Log
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
at org.hibernate.tool.hbm2x.POJOExporter.<clinit>(POJOExporter.java:23)
... 18 more
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: C
lass org.apache.commons.logging.impl.Log4JLogger does not implement Log
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
... 22 more
Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does
not implement Log
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:412)
... 23 more

Total time: 1 second


any help is appreciated

thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 17, 2005 12:41 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
looks like you have a bad commons-logging somewhere.

you need to put all dependent jars on the task def - including hibernate3.jar and its friends.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.