Hi all:
I'm trying to load the following map files and I'm getting inconsistent results in both Hibernate 2.0 and Hibernate 2.0.3
Here's the Hibernate.cfg.xml file:
Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<!--
This hibernate mapping files defines the proper parameters needed for the CMS system to
properly access the Staging database from the CMS component
-->
<hibernate-configuration>
<!-- Define the session information -->
<session-factory>
<!-- Definition of the Production database properties -->
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@mpi.oncecorp.com:3321:aafc</property>
<property name="hibernate.connection.username">cmsstaging</property>
<property name="hibernate.connection.password">blocks254</property>
<property name="hibernate.dialect">net.sf.hibernate.dialect.OracleDialect</property>
<property name="hibernate.default_schema">CMSSTAGING</property>
<property name="hibernate.show_sql">true</property>
<mapping resource="com/oncecorp/xclr/common/content/PageComponent.hbm.xml"/>
<mapping resource="com/oncecorp/xclr/common/content/Entity.hbm.xml"/>
</session-factory>
</hibernate-configuration>
Here's the mapping file for the PageComponent:
Code:
<?xml version="1.0" ?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0 //EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class name="com.oncecorp.xclr.common.content.PageComponent" table="PAGECOMPONENT">
<id name="puid" column="puid" type="long">
<generator class="sequence"/>
</id>
<!-- Property definition -->
<property name="versionNumber"/>
<property name="creationDate"/>
<property name="modificationDate"/>
<property name="published"/>
<property name="publicationDate"/>
<property name="title_locale1"/>
<property name="title_locale2"/>
<set name="entityPlaceholder" lazy="false" inverse="false" cascade="all" table="ENTITYREF">
<key column="parent"/>
<composite-element class="com.oncecorp.xclr.common.content.EntityPlaceholder">
<!-- Association to the Entity object -->
<many-to-one name="entity" class="com.oncecorp.xclr.common.content.Entity"/>
</composite-element>
</set>
</class>
</hibernate-mapping>
Here's the mapping file for the Entity object
Code:
<?xml version="1.0" ?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0 //EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class name="com.oncecorp.xclr.common.content.Entity" table="ENTITY">
<id name="puid" column="puid" type="long">
<generator class="sequence"/>
</id>
<property name="content_locale1" length="3000"/>
<property name="content_locale2" length="3000"/>
<property name="uri_locale1"/>
<property name="uri_locale2"/>
</class>
</hibernate-mapping>
Here's the initialization code for my test
Code:
try {
Configuration cfg = new Configuration().configure("/Hibernate.cfg.xml");
SessionFactory sf = cfg.buildSessionFactory();
sf.openSession();
}
catch (HibernateException e) {
System.out.println("Unable to configure the staging hibernate persistent store" + e);
System.exit(16);
}
And finally here's the result for Hibernate 2.0 and Hibernate 2.0.3
2.0Code:
1:24:32,109 DEBUG net.sf.hibernate.util.DTDEntityResolver:20 - trying to locate http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd in classpath under net/sf/hibernate/
11:24:32,109 DEBUG net.sf.hibernate.util.DTDEntityResolver:29 - found http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd in classpath
11:24:32,109 DEBUG net.sf.hibernate.cfg.Configuration:655 - hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver
11:24:32,109 DEBUG net.sf.hibernate.cfg.Configuration:655 - hibernate.connection.url=jdbc:oracle:thin:@mpi.oncecorp.com:3321:aafc
11:24:32,109 DEBUG net.sf.hibernate.cfg.Configuration:655 - hibernate.connection.username=cmsstaging
11:24:32,109 DEBUG net.sf.hibernate.cfg.Configuration:655 - hibernate.connection.password=blocks254
11:24:32,125 DEBUG net.sf.hibernate.cfg.Configuration:655 - hibernate.dialect=net.sf.hibernate.dialect.OracleDialect
11:24:32,125 DEBUG net.sf.hibernate.cfg.Configuration:655 - hibernate.default_schema=CMSSTAGING
11:24:32,125 DEBUG net.sf.hibernate.cfg.Configuration:655 - hibernate.show_sql=true
11:24:32,125 DEBUG net.sf.hibernate.cfg.Configuration:802 - null<-org.dom4j.tree.DefaultAttribute@82d37 [Attribute: name resource value "com/oncecorp/xclr/common/content/PageComponent.hbm.xml"]
11:24:32,125 INFO net.sf.hibernate.cfg.Configuration:251 - Mapping resource: com/oncecorp/xclr/common/content/PageComponent.hbm.xml
11:24:32,125 DEBUG net.sf.hibernate.util.DTDEntityResolver:20 - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
11:24:32,125 DEBUG net.sf.hibernate.util.DTDEntityResolver:29 - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
11:24:32,140 INFO net.sf.hibernate.cfg.Binder:166 - Mapping class: com.oncecorp.xclr.common.content.PageComponent -> PAGECOMPONENT
11:24:32,140 INFO net.sf.hibernate.cfg.Binder:410 - Mapping collection: com.oncecorp.xclr.common.content.PageComponent.entityPlaceholder -> ENTITYREF
11:24:32,156 DEBUG net.sf.hibernate.cfg.Configuration:802 - null<-org.dom4j.tree.DefaultAttribute@649b44 [Attribute: name resource value "com/oncecorp/xclr/common/content/Entity.hbm.xml"]
11:24:32,156 INFO net.sf.hibernate.cfg.Configuration:251 - Mapping resource: com/oncecorp/xclr/common/content/Entity.hbm.xml
11:24:32,156 DEBUG net.sf.hibernate.util.DTDEntityResolver:20 - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
11:24:32,171 DEBUG net.sf.hibernate.util.DTDEntityResolver:29 - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
11:24:32,171 INFO net.sf.hibernate.cfg.Binder:166 - Mapping class: com.oncecorp.xclr.common.content.Entity -> ENTITY
11:24:32,171 INFO net.sf.hibernate.cfg.Configuration:851 - Configured SessionFactory: null
11:24:32,187 DEBUG net.sf.hibernate.cfg.Configuration:852 - properties: {hibernate.connection.password=blocks254, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, hibernate.default_schema=CMSSTAGING, sun.boot.library.path=D:\tools\jdk13\jre\bin, java.vm.version=1.3.1_04-b02, hibernate.connection.username=cmsstaging, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, java.vm.specification.name=Java Virtual Machine Specification, user.dir=D:\dev\xclr\common\src, java.runtime.version=1.3.1_04-b02, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, os.arch=x86, java.io.tmpdir=C:\DOCUME~1\mdufort\LOCALS~1\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., java.awt.fonts=, os.name=Windows 2000, java.library.path=D:\tools\jdk13\bin;.;C:\WINNT\system32;C:\WINNT;d:\tools\jdk12\bin;d:\tools\jpda\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\PROGRA~1\ULTRAE~1;"C:\Program Files\Symantec\Norton Ghost 2003\";d:\tools\4NT;d:\tools\ant-15\bin;d:\tools\mew;d:\tools\ruby-1.8.0\bin;d:\tools\mingw\bin;d:\tools\ruby-1.8.0\lib;d:\tools\jruby-0.5.3\bin, java.specification.name=Java Platform API Specification, java.class.version=47.0, os.version=5.0, user.home=C:\Documents and Settings\mdufort, user.timezone=America/New_York, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.3, hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver, user.name=mdufort, java.class.path=D:\tools\intellij\lib\junit.jar;D:\dev\xclr\common\classes;D:\tools\jdk13\jre\lib\i18n.jar;D:\tools\jdk13\jre\lib\jaws.jar;D:\tools\jdk13\jre\lib\rt.jar;D:\tools\jdk13\jre\lib\sunrsasign.jar;D:\tools\jdk13\jre\lib\ext\jce1_2_2.jar;D:\tools\jdk13\jre\lib\ext\local_policy.jar;D:\tools\jdk13\jre\lib\ext\sunjce_provider.jar;D:\tools\jdk13\jre\lib\ext\US_export_policy.jar;D:\tools\oraclejar\oracle.jar;D:\tools\log4j-1.2.7\dist\lib\log4j-1.2.7.jar;D:\tools\hibernate-2.0\hibernate2.jar;D:\tools\hibernate-2.0\lib\ant.jar;D:\tools\hibernate-2.0\lib\c3p0.jar;D:\tools\hibernate-2.0\lib\commons-beanutils.jar;D:\tools\hibernate-2.0\lib\cglib.jar;D:\tools\hibernate-2.0\lib\commons-collections.jar;D:\tools\hibernate-2.0\lib\commons-dbcp.jar;D:\tools\hibernate-2.0\lib\commons-lang.jar;D:\tools\hibernate-2.0\lib\commons-logging.jar;D:\tools\hibernate-2.0\lib\commons-pool.jar;D:\tools\hibernate-2.0\lib\connector.jar;D:\tools\hibernate-2.0\lib\dom4j.jar;D:\tools\hibernate-2.0\lib\hibernate.jar;D:\tools\hibernate-2.0\lib\jaas.jar;D:\tools\hibernate-2.0\lib\jcs.jar;D:\tools\hibernate-2.0\lib\jdbc2_0-stdext.jar;D:\tools\hibernate-2.0\lib\jdom.jar;D:\tools\hibernate-2.0\lib\jta.jar;D:\tools\hibernate-2.0\lib\junit.jar;D:\tools\hibernate-2.0\lib\odmg.jar;D:\tools\hibernate-2.0\lib\optional.jar;D:\tools\hibernate-2.0\lib\xalan.jar;D:\tools\hibernate-2.0\lib\xerces.jar;D:\tools\hibernate-2.0\lib\xml-apis.jar;D:\tools\intellij\lib\idea_rt.jar, hibernate.show_sql=true, java.vm.specification.version=1.0, java.home=D:\tools\jdk13\jre, hibernate.dialect=net.sf.hibernate.dialect.OracleDialect, hibernate.connection.url=jdbc:oracle:thin:@mpi.oncecorp.com:3321:aafc, user.language=en, java.specification.vendor=Sun Microsystems Inc., awt.toolkit=sun.awt.windows.WToolkit, hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, java.version=1.3.1_04, java.ext.dirs=D:\tools\jdk13\jre\lib\ext, sun.boot.class.path=D:\tools\jdk13\jre\lib\rt.jar;D:\tools\jdk13\jre\lib\i18n.jar;D:\tools\jdk13\jre\lib\sunrsasign.jar;D:\tools\jdk13\jre\classes, java.vendor=Sun Microsystems Inc., file.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, user.region=CA, sun.cpu.isalist=pentium i486 i386}
11:24:32,281 INFO net.sf.hibernate.util.ReflectHelper:313 - reflection optimizer disabled for: com.oncecorp.xclr.common.content.EntityPlaceholder, StackOverflowError: null
Process terminated with exit code 128
And for 2.0.3 there is an infinite loopCode:
11:31:28,875 DEBUG net.sf.hibernate.util.DTDEntityResolver:20 - trying to locate http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd in classpath under net/sf/hibernate/
11:31:28,890 DEBUG net.sf.hibernate.util.DTDEntityResolver:29 - found http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd in classpath
11:31:28,921 DEBUG net.sf.hibernate.cfg.Configuration:689 - hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver
11:31:28,937 DEBUG net.sf.hibernate.cfg.Configuration:689 - hibernate.connection.url=jdbc:oracle:thin:@mpi.oncecorp.com:3321:aafc
11:31:28,937 DEBUG net.sf.hibernate.cfg.Configuration:689 - hibernate.connection.username=cmsstaging
11:31:28,937 DEBUG net.sf.hibernate.cfg.Configuration:689 - hibernate.connection.password=blocks254
11:31:28,937 DEBUG net.sf.hibernate.cfg.Configuration:689 - hibernate.dialect=net.sf.hibernate.dialect.OracleDialect
11:31:28,937 DEBUG net.sf.hibernate.cfg.Configuration:689 - hibernate.default_schema=CMSSTAGING
11:31:28,937 DEBUG net.sf.hibernate.cfg.Configuration:689 - hibernate.show_sql=true
11:31:28,937 DEBUG net.sf.hibernate.cfg.Configuration:836 - null<-org.dom4j.tree.DefaultAttribute@57ad1c [Attribute: name resource value "com/oncecorp/xclr/common/content/PageComponent.hbm.xml"]
11:31:28,937 INFO net.sf.hibernate.cfg.Configuration:270 - Mapping resource: com/oncecorp/xclr/common/content/PageComponent.hbm.xml
11:31:28,953 DEBUG net.sf.hibernate.util.DTDEntityResolver:20 - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
11:31:28,953 DEBUG net.sf.hibernate.util.DTDEntityResolver:29 - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
11:31:29,031 INFO net.sf.hibernate.cfg.Binder:178 - Mapping class: com.oncecorp.xclr.common.content.PageComponent -> PAGECOMPONENT
11:31:29,093 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: puid -> puid, type: long
11:31:29,125 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: versionNumber -> versionNumber, type: long
11:31:29,125 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: creationDate -> creationDate, type: timestamp
11:31:29,125 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: modificationDate -> modificationDate, type: timestamp
11:31:29,125 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: published -> published, type: boolean
11:31:29,125 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: publicationDate -> publicationDate, type: timestamp
11:31:29,125 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: title_locale1 -> title_locale1, type: string
11:31:29,125 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: title_locale2 -> title_locale2, type: string
11:31:29,125 INFO net.sf.hibernate.cfg.Binder:456 - Mapping collection: com.oncecorp.xclr.common.content.PageComponent.entityPlaceholder -> ENTITYREF
11:31:29,140 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: entityPlaceholder, type: java.util.Set
11:31:29,140 DEBUG net.sf.hibernate.cfg.Configuration:836 - null<-org.dom4j.tree.DefaultAttribute@34a7d8 [Attribute: name resource value "com/oncecorp/xclr/common/content/Entity.hbm.xml"]
11:31:29,140 INFO net.sf.hibernate.cfg.Configuration:270 - Mapping resource: com/oncecorp/xclr/common/content/Entity.hbm.xml
11:31:29,156 DEBUG net.sf.hibernate.util.DTDEntityResolver:20 - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
11:31:29,156 DEBUG net.sf.hibernate.util.DTDEntityResolver:29 - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
11:31:29,171 INFO net.sf.hibernate.cfg.Binder:178 - Mapping class: com.oncecorp.xclr.common.content.Entity -> ENTITY
11:31:29,171 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: puid -> puid, type: long
11:31:29,171 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: content_locale1 -> content_locale1, type: string
11:31:29,171 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: content_locale2 -> content_locale2, type: string
11:31:29,171 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: uri_locale1 -> uri_locale1, type: string
11:31:29,171 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: uri_locale2 -> uri_locale2, type: string
11:31:29,187 INFO net.sf.hibernate.cfg.Configuration:885 - Configured SessionFactory: null
11:31:29,187 DEBUG net.sf.hibernate.cfg.Configuration:886 - properties: {hibernate.connection.password=blocks254, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, hibernate.default_schema=CMSSTAGING, sun.boot.library.path=D:\tools\jdk13\jre\bin, java.vm.version=1.3.1_04-b02, hibernate.connection.username=cmsstaging, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, java.vm.specification.name=Java Virtual Machine Specification, user.dir=D:\dev\xclr\common\src, java.runtime.version=1.3.1_04-b02, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, os.arch=x86, java.io.tmpdir=C:\DOCUME~1\mdufort\LOCALS~1\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., java.awt.fonts=, os.name=Windows 2000, java.library.path=D:\tools\jdk13\bin;.;C:\WINNT\system32;C:\WINNT;d:\tools\jdk12\bin;d:\tools\jpda\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\PROGRA~1\ULTRAE~1;"C:\Program Files\Symantec\Norton Ghost 2003\";d:\tools\4NT;d:\tools\ant-15\bin;d:\tools\mew;d:\tools\ruby-1.8.0\bin;d:\tools\mingw\bin;d:\tools\ruby-1.8.0\lib;d:\tools\jruby-0.5.3\bin, java.specification.name=Java Platform API Specification, java.class.version=47.0, os.version=5.0, user.home=C:\Documents and Settings\mdufort, user.timezone=America/New_York, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.3, hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver, user.name=mdufort, java.class.path=D:\tools\intellij\lib\junit.jar;D:\dev\xclr\common\classes;D:\tools\jdk13\jre\lib\i18n.jar;D:\tools\jdk13\jre\lib\jaws.jar;D:\tools\jdk13\jre\lib\rt.jar;D:\tools\jdk13\jre\lib\sunrsasign.jar;D:\tools\jdk13\jre\lib\ext\jce1_2_2.jar;D:\tools\jdk13\jre\lib\ext\local_policy.jar;D:\tools\jdk13\jre\lib\ext\sunjce_provider.jar;D:\tools\jdk13\jre\lib\ext\US_export_policy.jar;D:\tools\oraclejar\oracle.jar;D:\tools\log4j-1.2.7\dist\lib\log4j-1.2.7.jar;D:\tools\hibernate-2.0.3\lib\commons-dbcp.jar;D:\tools\hibernate-2.0.3\lib\commons-collections.jar;D:\tools\hibernate-2.0.3\lib\commons-beanutils.jar;D:\tools\hibernate-2.0.3\lib\commons-pool.jar;D:\tools\hibernate-2.0.3\lib\cglib-asm.jar;D:\tools\hibernate-2.0.3\lib\commons-lang.jar;D:\tools\hibernate-2.0.3\lib\commons-logging.jar;D:\tools\hibernate-2.0.3\lib\ant.jar;D:\tools\hibernate-2.0.3\lib\c3p0.jar;D:\tools\hibernate-2.0.3\lib\connector.jar;D:\tools\hibernate-2.0.3\lib\dom4j.jar;D:\tools\hibernate-2.0.3\lib\jaas.jar;D:\tools\hibernate-2.0.3\lib\jcs.jar;D:\tools\hibernate-2.0.3\lib\jdbc2_0-stdext.jar;D:\tools\hibernate-2.0.3\lib\jta.jar;D:\tools\hibernate-2.0.3\lib\junit.jar;D:\tools\hibernate-2.0.3\lib\odmg.jar;D:\tools\hibernate-2.0.3\lib\optional.jar;D:\tools\hibernate-2.0.3\lib\proxool.jar;D:\tools\hibernate-2.0.3\lib\xalan.jar;D:\tools\hibernate-2.0.3\lib\xerces.jar;D:\tools\hibernate-2.0.3\lib\xml-apis.jar;D:\tools\hibernate-2.0.3\hibernate2.jar;D:\tools\intellij\lib\idea_rt.jar, hibernate.show_sql=true, java.vm.specification.version=1.0, java.home=D:\tools\jdk13\jre, hibernate.dialect=net.sf.hibernate.dialect.OracleDialect, hibernate.connection.url=jdbc:oracle:thin:@mpi.oncecorp.com:3321:aafc, user.language=en, java.specification.vendor=Sun Microsystems Inc., awt.toolkit=sun.awt.windows.WToolkit, hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, java.version=1.3.1_04, java.ext.dirs=D:\tools\jdk13\jre\lib\ext, sun.boot.class.path=D:\tools\jdk13\jre\lib\rt.jar;D:\tools\jdk13\jre\lib\i18n.jar;D:\tools\jdk13\jre\lib\sunrsasign.jar;D:\tools\jdk13\jre\classes, java.vendor=Sun Microsystems Inc., file.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, user.region=CA, sun.cpu.isalist=pentium i486 i386}
11:31:29,187 INFO net.sf.hibernate.cfg.Configuration:492 - processing one-to-many association mappings
11:31:29,187 DEBUG net.sf.hibernate.cfg.Binder$SecondPass:1134 - Second pass for collection: com.oncecorp.xclr.common.content.PageComponent.entityPlaceholder
11:31:29,203 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: entity -> entity, type: com.oncecorp.xclr.common.content.Entity
11:31:29,312 DEBUG ncecorp.xclr.common.persistence.PersistenceManager:168 - Initializing the Staging database...
11:31:29,312 INFO net.sf.hibernate.cfg.Configuration:703 - Configuration resource: /StagingDB.cfg.xml
11:31:29,328 DEBUG net.sf.hibernate.util.DTDEntityResolver:20 - trying to locate http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd in classpath under net/sf/hibernate/
11:31:29,328 DEBUG net.sf.hibernate.util.DTDEntityResolver:29 - found http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd in classpath
11:31:29,328 DEBUG net.sf.hibernate.cfg.Configuration:689 - hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver
11:31:29,328 DEBUG net.sf.hibernate.cfg.Configuration:689 - hibernate.connection.url=jdbc:oracle:thin:@mpi.oncecorp.com:3321:aafc
11:31:29,328 DEBUG net.sf.hibernate.cfg.Configuration:689 - hibernate.connection.username=cmsstaging
11:31:29,328 DEBUG net.sf.hibernate.cfg.Configuration:689 - hibernate.connection.password=blocks254
11:31:29,328 DEBUG net.sf.hibernate.cfg.Configuration:689 - hibernate.dialect=net.sf.hibernate.dialect.OracleDialect
11:31:29,343 DEBUG net.sf.hibernate.cfg.Configuration:689 - hibernate.default_schema=CMSSTAGING
11:31:29,343 DEBUG net.sf.hibernate.cfg.Configuration:689 - hibernate.show_sql=true
11:31:29,343 DEBUG net.sf.hibernate.cfg.Configuration:836 - null<-org.dom4j.tree.DefaultAttribute@38bef7 [Attribute: name resource value "com/oncecorp/xclr/common/content/PageComponent.hbm.xml"]
11:31:29,343 INFO net.sf.hibernate.cfg.Configuration:270 - Mapping resource: com/oncecorp/xclr/common/content/PageComponent.hbm.xml
11:31:29,343 DEBUG net.sf.hibernate.util.DTDEntityResolver:20 - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
11:31:29,343 DEBUG net.sf.hibernate.util.DTDEntityResolver:29 - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
11:31:29,359 INFO net.sf.hibernate.cfg.Binder:178 - Mapping class: com.oncecorp.xclr.common.content.PageComponent -> PAGECOMPONENT
11:31:29,359 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: puid -> puid, type: long
11:31:29,359 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: versionNumber -> versionNumber, type: long
11:31:29,359 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: creationDate -> creationDate, type: timestamp
11:31:29,375 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: modificationDate -> modificationDate, type: timestamp
11:31:29,375 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: published -> published, type: boolean
11:31:29,375 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: publicationDate -> publicationDate, type: timestamp
11:31:29,375 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: title_locale1 -> title_locale1, type: string
11:31:29,375 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: title_locale2 -> title_locale2, type: string
11:31:29,375 INFO net.sf.hibernate.cfg.Binder:456 - Mapping collection: com.oncecorp.xclr.common.content.PageComponent.entityPlaceholder -> ENTITYREF
11:31:29,375 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: entityPlaceholder, type: java.util.Set
11:31:29,375 DEBUG net.sf.hibernate.cfg.Configuration:836 - null<-org.dom4j.tree.DefaultAttribute@7f057f [Attribute: name resource value "com/oncecorp/xclr/common/content/Entity.hbm.xml"]
11:31:29,390 INFO net.sf.hibernate.cfg.Configuration:270 - Mapping resource: com/oncecorp/xclr/common/content/Entity.hbm.xml
11:31:29,390 DEBUG net.sf.hibernate.util.DTDEntityResolver:20 - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
11:31:29,390 DEBUG net.sf.hibernate.util.DTDEntityResolver:29 - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
11:31:29,406 INFO net.sf.hibernate.cfg.Binder:178 - Mapping class: com.oncecorp.xclr.common.content.Entity -> ENTITY
11:31:29,406 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: puid -> puid, type: long
11:31:29,406 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: content_locale1 -> content_locale1, type: string
11:31:29,406 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: content_locale2 -> content_locale2, type: string
11:31:29,406 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: uri_locale1 -> uri_locale1, type: string
11:31:29,406 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: uri_locale2 -> uri_locale2, type: string
11:31:29,406 INFO net.sf.hibernate.cfg.Configuration:885 - Configured SessionFactory: null
11:31:29,406 DEBUG net.sf.hibernate.cfg.Configuration:886 - properties: {hibernate.connection.password=blocks254, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, hibernate.default_schema=CMSSTAGING, sun.boot.library.path=D:\tools\jdk13\jre\bin, java.vm.version=1.3.1_04-b02, hibernate.connection.username=cmsstaging, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, java.vm.specification.name=Java Virtual Machine Specification, user.dir=D:\dev\xclr\common\src, java.runtime.version=1.3.1_04-b02, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, os.arch=x86, java.io.tmpdir=C:\DOCUME~1\mdufort\LOCALS~1\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., java.awt.fonts=, os.name=Windows 2000, java.library.path=D:\tools\jdk13\bin;.;C:\WINNT\system32;C:\WINNT;d:\tools\jdk12\bin;d:\tools\jpda\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\PROGRA~1\ULTRAE~1;"C:\Program Files\Symantec\Norton Ghost 2003\";d:\tools\4NT;d:\tools\ant-15\bin;d:\tools\mew;d:\tools\ruby-1.8.0\bin;d:\tools\mingw\bin;d:\tools\ruby-1.8.0\lib;d:\tools\jruby-0.5.3\bin, java.specification.name=Java Platform API Specification, java.class.version=47.0, os.version=5.0, user.home=C:\Documents and Settings\mdufort, user.timezone=America/New_York, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.3, hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver, user.name=mdufort, java.class.path=D:\tools\intellij\lib\junit.jar;D:\dev\xclr\common\classes;D:\tools\jdk13\jre\lib\i18n.jar;D:\tools\jdk13\jre\lib\jaws.jar;D:\tools\jdk13\jre\lib\rt.jar;D:\tools\jdk13\jre\lib\sunrsasign.jar;D:\tools\jdk13\jre\lib\ext\jce1_2_2.jar;D:\tools\jdk13\jre\lib\ext\local_policy.jar;D:\tools\jdk13\jre\lib\ext\sunjce_provider.jar;D:\tools\jdk13\jre\lib\ext\US_export_policy.jar;D:\tools\oraclejar\oracle.jar;D:\tools\log4j-1.2.7\dist\lib\log4j-1.2.7.jar;D:\tools\hibernate-2.0.3\lib\commons-dbcp.jar;D:\tools\hibernate-2.0.3\lib\commons-collections.jar;D:\tools\hibernate-2.0.3\lib\commons-beanutils.jar;D:\tools\hibernate-2.0.3\lib\commons-pool.jar;D:\tools\hibernate-2.0.3\lib\cglib-asm.jar;D:\tools\hibernate-2.0.3\lib\commons-lang.jar;D:\tools\hibernate-2.0.3\lib\commons-logging.jar;D:\tools\hibernate-2.0.3\lib\ant.jar;D:\tools\hibernate-2.0.3\lib\c3p0.jar;D:\tools\hibernate-2.0.3\lib\connector.jar;D:\tools\hibernate-2.0.3\lib\dom4j.jar;D:\tools\hibernate-2.0.3\lib\jaas.jar;D:\tools\hibernate-2.0.3\lib\jcs.jar;D:\tools\hibernate-2.0.3\lib\jdbc2_0-stdext.jar;D:\tools\hibernate-2.0.3\lib\jta.jar;D:\tools\hibernate-2.0.3\lib\junit.jar;D:\tools\hibernate-2.0.3\lib\odmg.jar;D:\tools\hibernate-2.0.3\lib\optional.jar;D:\tools\hibernate-2.0.3\lib\proxool.jar;D:\tools\hibernate-2.0.3\lib\xalan.jar;D:\tools\hibernate-2.0.3\lib\xerces.jar;D:\tools\hibernate-2.0.3\lib\xml-apis.jar;D:\tools\hibernate-2.0.3\hibernate2.jar;D:\tools\intellij\lib\idea_rt.jar, hibernate.show_sql=true, java.vm.specification.version=1.0, java.home=D:\tools\jdk13\jre, hibernate.dialect=net.sf.hibernate.dialect.OracleDialect, hibernate.connection.url=jdbc:oracle:thin:@mpi.oncecorp.com:3321:aafc, user.language=en, java.specification.vendor=Sun Microsystems Inc., awt.toolkit=sun.awt.windows.WToolkit, hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, java.version=1.3.1_04, java.ext.dirs=D:\tools\jdk13\jre\lib\ext, sun.boot.class.path=D:\tools\jdk13\jre\lib\rt.jar;D:\tools\jdk13\jre\lib\i18n.jar;D:\tools\jdk13\jre\lib\sunrsasign.jar;D:\tools\jdk13\jre\classes, java.vendor=Sun Microsystems Inc., file.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, user.region=CA, sun.cpu.isalist=pentium i486 i386}
11:31:29,406 INFO net.sf.hibernate.cfg.Configuration:492 - processing one-to-many association mappings
11:31:29,406 DEBUG net.sf.hibernate.cfg.Binder$SecondPass:1134 - Second pass for collection: com.oncecorp.xclr.common.content.PageComponent.entityPlaceholder
11:31:29,406 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: entity -> entity, type: com.oncecorp.xclr.common.content.Entity
11:31:29,437 INFO net.sf.hibernate.cfg.Configuration:492 - processing one-to-many association mappings
11:31:29,437 DEBUG net.sf.hibernate.cfg.Binder$SecondPass:1134 - Second pass for collection: com.oncecorp.xclr.common.content.PageComponent.entityPlaceholder
11:31:29,437 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: entity -> entity, type: com.oncecorp.xclr.common.content.Entity
11:31:29,437 INFO net.sf.hibernate.cfg.Configuration:492 - processing one-to-many association mappings
11:31:29,437 DEBUG net.sf.hibernate.cfg.Binder$SecondPass:1134 - Second pass for collection: com.oncecorp.xclr.common.content.PageComponent.entityPlaceholder
11:31:29,437 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: entity -> entity, type: com.oncecorp.xclr.common.content.Entity
11:31:29,437 INFO net.sf.hibernate.cfg.Configuration:492 - processing one-to-many association mappings
11:31:29,437 DEBUG net.sf.hibernate.cfg.Binder$SecondPass:1134 - Second pass for collection: com.oncecorp.xclr.common.content.PageComponent.entityPlaceholder
11:31:29,437 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: entity -> entity, type: com.oncecorp.xclr.common.content.Entity
11:31:29,437 INFO net.sf.hibernate.cfg.Configuration:492 - processing one-to-many association mappings
11:31:29,453 DEBUG net.sf.hibernate.cfg.Binder$SecondPass:1134 - Second pass for collection: com.oncecorp.xclr.common.content.PageComponent.entityPlaceholder
11:31:29,453 DEBUG net.sf.hibernate.cfg.Binder:394 - Mapped property: entity -> entity, type: com.oncecorp.xclr.common.content.Entity
11:31:29,453 INFO net.sf.hibernate.cfg.Configuration:492 - processing one-to-many association mappings
and it goes on until I get a stackoverflow error.
Any help would be appreciated - Thanks Martin