Dear all
I created this <subclass> mapping and hibernate 3.1 refuses to load it with a non-specific message:
"Could not read mappings from resource: com/softwareag/seicr/dao/Modification.hbm.xml"
I am desperate by now and at the end of my resources or maybe I got blind to see errors.
Could anyone please take a look at this mapping and maybe spot some errors?
Your help would be graciously appreciated.
Kindest regards and many thanks
Markus
Mapping:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.softwareag.seicr.dao.Modification" table="BAF_MODIFICATION">
<id name="id" column="id"/>
<discriminator column="TYPE" type="string"/>
<version name="updateCounter" column="uc" type="java.lang.Integer"/>
<many-to-one name="parent" class="com.softwareag.seicr.dao.LRDAO" column="ID_PARENT"
not-null="false"/>
<many-to-one name="structureInstance" class="com.softwareag.seicr.xml.XMLInstance"
column="ID_STRUCTUREINSTANCE" not-null="false"/>
<property name="state" column="state"/>
<property name="lastUpdateTimestamp" column="ts"/>
<property name="primaryAlias" column="ALIAS_1"/>
<property name="position" column="POSITION"/>
<subclass name="ModTextDAO" discriminator-value="MODIF_TEXT">
<property name="name" column="NAME"/>
</subclass>
</class>
</hibernate-mapping>
Stack trace:
2007-08-21 12:04:51,775 INFO [org.hibernate.cfg.HbmBinder] (http-0.0.0.0-8080-22:) Mapping class: com.softwareag.seicr.dao.Modification -> BAF_MODIFICATION
2007-08-21 12:04:51,775 ERROR [com.softwareag.seicr.servlet.BAFCoreServlet] (http-0.0.0.0-8080-22:) Exception BAFCoreServlet! Cause: java.lang.RuntimeException: TRX-003: Exception building SessionFactory: Could not read mappings from resource: com/softwareag/seicr/dao/Modification.hbm.xml
TRX-003: Exception building SessionFactory: Could not read mappings from resource: com/softwareag/seicr/dao/Modification.hbm.xml
2007-08-21 12:04:51,775 ERROR [STDERR] (http-0.0.0.0-8080-22:) java.lang.RuntimeException: TRX-003: Exception building SessionFactory: Could not read mappings from resource: com/softwareag/seicr/dao/Modification.hbm.xml
2007-08-21 12:04:51,775 ERROR [STDERR] (http-0.0.0.0-8080-22:) at com.softwareag.seicr.servlet.BAFTransactionHandler.<clinit>(BAFTransactionHandler.java:55)
2007-08-21 12:04:51,775 ERROR [STDERR] (http-0.0.0.0-8080-22:) at com.softwareag.seicr.servlet.BAFHandlerChain.<clinit>(BAFHandlerChain.java:16)
2007-08-21 12:04:51,775 ERROR [STDERR] (http-0.0.0.0-8080-22:) at com.softwareag.seicr.servlet.BAFCoreServlet.dispatch(BAFCoreServlet.java:69)
2007-08-21 12:04:51,775 ERROR [STDERR] (http-0.0.0.0-8080-22:) at com.softwareag.belgium.xmldispatcher.adapters.httpform.XDHttpFormServletBase.doWork(XDHttpFormServletBase.java:158)
2007-08-21 12:04:51,775 ERROR [STDERR] (http-0.0.0.0-8080-22:) at com.softwareag.belgium.xmldispatcher.adapters.httpform.XDHttpFormServletBase.doWorkRequestParameters(XDHttpFormServletBase.java:82)
2007-08-21 12:04:51,775 ERROR [STDERR] (http-0.0.0.0-8080-22:) at com.softwareag.belgium.xmldispatcher.adapters.httpform.XDHttpFormServletBase.doPost(XDHttpFormServletBase.java:57)
2007-08-21 12:04:51,775 ERROR [STDERR] (http-0.0.0.0-8080-22:) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
2007-08-21 12:04:51,775 ERROR [STDERR] (http-0.0.0.0-8080-22:) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
2007-08-21 12:04:51,775 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
2007-08-21 12:04:51,791 ERROR [STDERR] (http-0.0.0.0-8080-22:) at java.lang.Thread.run(Unknown Source)
_________________ Markus
SW Developer and wine maker
http://www.jostock.net
|