Mailing List
Home
Forum Home
Cocoon - MVC web framework based on XML/XSL
Maven - Project building tool
Axis - Java SOAP implementation
Lucene - Full-featured text search engine APIs
Log4J - A log library
Fop - Create PDF, PCL, PS, SVG, XML driven by XSL formatting objects.
POI - Java Excel, Word and other Microsoft Office files manipulating library
Oracle database, Microsoft SQL server ...
MySQL - an open source database
Red Hat Linux Installation and Config discussions ...
Subjects
log4j warning: No appenders could be found
java security AccessControlException: access denied (java io FilePermission clie
java lang InstantiationException: org apache tools ant Main
Apache Axis Tutorial
Struts <logic iterate >
log4j properties How to parse outpu to multiple files
configuring log4j with BEA Weblogic 8 1
How to use XSL FOP Java together
JSP precompile
Servlet File Download dialog problem (IE6,Adobe 6 0)
Proposal: Adding jar manifest classpath in jar and war plugins
Unsupported major minor version 48 0 problem while running the an
   telope task
java security AccessControlException: access denied (java io FilePermission
axis wsdl2java Ant Task usage
net sf hibernate MappingException: Error reading resource: test/User hbm xml
Building EAR ANT Script for websphere 5 0
CREATING WAR Files
jsp data into Excel
Classpath problem
Jboss 3 2 3+ vs Tomcat Axis Question
RE: How to include jars and add them into the MANIFEST MF/Class Path
attribute
Printing problem
InstantiationException
Couldn 't find trusted certificate
Please : How can one install ant 1 6 0 under Eclipse 2 1 ?
Excel: Too many different cell formats
Running junit tests fails
XDoclet, Struts and Maven: Where to start? SOLUTION
1 3 final: now giving me java io FileNotFoundException (Too many
open files)
AXIS: tomcat timeout ?
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
net.sf.hibernate.MappingException: Error reading resource: test/User.hbm.xml

net.sf.hibernate.MappingException: Error reading resource: test/User.hbm.xml

2004-01-20       - By beyaNet Consultancy

 Back
Reply:     1     2  

Hi,

when trying to run my hibernation app, i am getting the above mentioned  
error. Any ideas where I am going wrong?

My hbm.xml file, situated in catalina/tomcat/web-inf/classes/test, is:

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
   "-//Hibernate/Hibernate Mapping DTD 2.1//EN"
   "http://hibernate.sourceforge.net/hibernate-mapping-2.1.dtd">

<hibernate-mapping>
  <class name="test.User" table="users">
    <id name="ID" column="LogonId">
      <generator class="sequence">
          <param>seq_id_mytable</param>
      </generator>
    </id>
   
    <property name="userName" column="Name" type="string"/>
    <property name="password"/>
    <property name="emailAddress"/>
    <property name="lastLogon"/>
  </class>
</hibernate-mapping>

My class is as follow:

package test;

import java.util.*;
import net.sf.hibernate.*;
import net.sf.hibernate.cfg.*;


public class User{

  private String userID;
  private String userName;
  private String password;
  private String emailAddress;
  private Date lastLogon;
  private SessionFactory _sessions;

  public String getID() {
        return userID;
      }
  public void setID(String newUserID) {
        userID = newUserID;
      }

    ........................................

    public void add() throws HibernateException {
    _sessions = new Configuration()
    .addClass(test.User.class)
    .buildSessionFactory();
     
        Session session = _sessions.openSession();
        Transaction tx = null;
        try {
            tx = session.beginTransaction();
            session.save(this);
            tx.commit();
        }
        catch (HibernateException he) {
            if (tx!=null) tx.rollback();
            throw he;
        }
        finally {
            session.close();
        }

    }
    public String test() {
        return "OK";
    }
}


The trace is as follows:

org.apache.cocoon.ProcessingException Source code of org.apache.cocoon.ProcessingException: Exception in  
ServerPagesGenerator.generate(): net.sf.hibernate.MappingException:  
Error reading resource: test/User.hbm.xml
        at  
org.apache.cocoon.generation.ServerPagesGenerator Source code of org.apache.cocoon.generation.ServerPagesGenerator(ServerPagesGe
nerator.java:274)
        at  
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process
XMLPipeline(AbstractProcessingPipeline.java:557)
        at  
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe
line.processXMLPipeline(AbstractCachingProcessingPipeline.java:196)
        at  
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process
(AbstractProcessingPipeline.java:501)
        at  
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode Source code of org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode(
SerializeNode.java:147)
        at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode Source code of org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
invokeNodes(AbstractParentProcessingNode.java:84)
        at  
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode Source code of org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode
nvoke(PreparableMatchNode.java:164)
        at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode Source code of org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
invokeNodes(AbstractParentProcessingNode.java:108)
        at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode Source code of org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode(P
ipelineNode.java:163)
        at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode Source code of org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
invokeNodes(AbstractParentProcessingNode.java:108)
        at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode Source code of org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode(
PipelinesNode.java:152)
        at  
org.apache.cocoon.components.treeprocessor.TreeProcessor Source code of org.apache.cocoon.components.treeprocessor.TreeProcessor(TreePro
cessor.java:354)
        at  
org.apache.cocoon.components.treeprocessor.TreeProcessor Source code of org.apache.cocoon.components.treeprocessor.TreeProcessor(TreePro
cessor.java:307)
        at  
org.apache.cocoon.components.treeprocessor.sitemap.MountNode Source code of org.apache.cocoon.components.treeprocessor.sitemap.MountNode(Moun
tNode.java:133)
        at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode Source code of org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
invokeNodes(AbstractParentProcessingNode.java:84)
        at  
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode Source code of org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode
nvoke(PreparableMatchNode.java:164)
        at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode Source code of org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
invokeNodes(AbstractParentProcessingNode.java:108)
        at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode Source code of org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode(P
ipelineNode.java:163)
        at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode Source code of org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
invokeNodes(AbstractParentProcessingNode.java:108)
        at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode Source code of org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode(
PipelinesNode.java:152)
        at  
org.apache.cocoon.components.treeprocessor.TreeProcessor Source code of org.apache.cocoon.components.treeprocessor.TreeProcessor(TreePro
cessor.java:354)
        at  
org.apache.cocoon.components.treeprocessor.TreeProcessor Source code of org.apache.cocoon.components.treeprocessor.TreeProcessor(TreePro
cessor.java:307)
        at org.apache.cocoon.Cocoon Source code of org.apache.cocoon.Cocoon(Cocoon.java:656)
        at  
org.apache.cocoon.servlet.CocoonServlet Source code of org.apache.cocoon.servlet.CocoonServlet(CocoonServlet.java:
1112)
        at javax.servlet.http.HttpServlet Source code of javax.servlet.http.HttpServlet(HttpServlet.java:853)
        at  
org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain(Applica
tionFilterChain.java:247)
        at  
org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain(ApplicationFilt
erChain.java:193)
        at  
org.apache.catalina.core.StandardWrapperValve Source code of org.apache.catalina.core.StandardWrapperValve(StandardWrapperValv
e.java:256)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:
480)
        at  
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
        at  
org.apache.catalina.core.StandardContextValve Source code of org.apache.catalina.core.StandardContextValve(StandardContextValv
e.java:191)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:
480)
        at  
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
        at  
org.apache.catalina.core.StandardContext Source code of org.apache.catalina.core.StandardContext(StandardContext.java:
2415)
        at  
org.apache.catalina.core.StandardHostValve Source code of org.apache.catalina.core.StandardHostValve(StandardHostValve.java
:180)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
        at  
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
        at  
org.apache.catalina.valves.ErrorReportValve Source code of org.apache.catalina.valves.ErrorReportValve(ErrorReportValve.java
:172)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:
480)
        at  
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
        at  
org.apache.catalina.core.StandardEngineValve Source code of org.apache.catalina.core.StandardEngineValve(StandardEngineValve.
java:174)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:
480)
        at  
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
        at  
org.apache.coyote.tomcat4.CoyoteAdapter Source code of org.apache.coyote.tomcat4.CoyoteAdapter(CoyoteAdapter.java:223)
        at  
org.apache.jk.server.JkCoyoteHandler Source code of org.apache.jk.server.JkCoyoteHandler(JkCoyoteHandler.java:261)
        at  
org.apache.jk.common.HandlerRequest Source code of org.apache.jk.common.HandlerRequest(HandlerRequest.java:360)
        at  
org.apache.jk.common.ChannelSocket Source code of org.apache.jk.common.ChannelSocket(ChannelSocket.java:604)
        at  
org.apache.jk.common.ChannelSocket Source code of org.apache.jk.common.ChannelSocket(ChannelSocket.java:
562)
        at  
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
        at  
org.apache.tomcat.util.threads.ThreadPool Source code of org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:619)
        at java.lang.Thread Source code of java.lang.Thread(Thread.java:554)
Caused by: net.sf.hibernate.MappingException: Error reading resource:  
test/User.hbm.xml
        at  
net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:325)
        at test.User.add(User.java:59)
        at  
org.apache.cocoon.www.userhomes.test_xml.generate(org.apache.cocoon.www.
userhomes.test_xml:143)
        at  
org.apache.cocoon.generation.ServerPagesGenerator Source code of org.apache.cocoon.generation.ServerPagesGenerator(ServerPagesGe
nerator.java:262)
        ... 55 more
Caused by: net.sf.hibernate.MappingException:  
org.dom4j.DocumentException Source code of org.dom4j.DocumentException:  
http://hibernate.sourceforge.net/hibernate-mapping-2.1.dtd Nested  
exception: http://hibernate.sourceforge.net/hibernate-mapping-2.1.dtd
        at  
net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:
290)
        at  
net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:322)
        ... 58 more
Caused by: org.dom4j.DocumentException Source code of org.dom4j.DocumentException:  
http://hibernate.sourceforge.net/hibernate-mapping-2.1.dtd Nested  
exception: http://hibernate.sourceforge.net/hibernate-mapping-2.1.dtd
        at org.dom4j.io.SAXReader Source code of org.dom4j.io.SAXReader(SAXReader.java:358)
        at  
net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:
281)
        ... 59 more
net.sf.hibernate.MappingException: Error reading resource:  
test/User.hbm.xml
        at  
net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:325)
        at test.User.add(User.java:59)
        at  
org.apache.cocoon.www.userhomes.test_xml.generate(org.apache.cocoon.www.
userhomes.test_xml:143)
        at  
org.apache.cocoon.generation.ServerPagesGenerator Source code of org.apache.cocoon.generation.ServerPagesGenerator(ServerPagesGe
nerator.java:262)
        at  
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process
XMLPipeline(AbstractProcessingPipeline.java:557)
        at  
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe
line.processXMLPipeline(AbstractCachingProcessingPipeline.java:196)
        at  
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process
(AbstractProcessingPipeline.java:501)
        at  
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode Source code of org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode(
SerializeNode.java:147)
        at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode Source code of org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
invokeNodes(AbstractParentProcessingNode.java:84)
        at  
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode Source code of org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode
nvoke(PreparableMatchNode.java:164)
        at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode Source code of org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
invokeNodes(AbstractParentProcessingNode.java:108)
        at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode Source code of org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode(P
ipelineNode.java:163)
        at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode Source code of org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
invokeNodes(AbstractParentProcessingNode.java:108)
        at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode Source code of org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode(
PipelinesNode.java:152)
        at  
org.apache.cocoon.components.treeprocessor.TreeProcessor Source code of org.apache.cocoon.components.treeprocessor.TreeProcessor(TreePro
cessor.java:354)
        at  
org.apache.cocoon.components.treeprocessor.TreeProcessor Source code of org.apache.cocoon.components.treeprocessor.TreeProcessor(TreePro
cessor.java:307)
        at  
org.apache.cocoon.components.treeprocessor.sitemap.MountNode Source code of org.apache.cocoon.components.treeprocessor.sitemap.MountNode(Moun
tNode.java:133)
        at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode Source code of org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
invokeNodes(AbstractParentProcessingNode.java:84)
        at  
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode Source code of org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode
nvoke(PreparableMatchNode.java:164)
        at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode Source code of org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
invokeNodes(AbstractParentProcessingNode.java:108)
        at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode Source code of org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode(P
ipelineNode.java:163)
        at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode Source code of org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
invokeNodes(AbstractParentProcessingNode.java:108)
        at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode Source code of org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode(
PipelinesNode.java:152)
        at  
org.apache.cocoon.components.treeprocessor.TreeProcessor Source code of org.apache.cocoon.components.treeprocessor.TreeProcessor(TreePro
cessor.java:354)
        at  
org.apache.cocoon.components.treeprocessor.TreeProcessor Source code of org.apache.cocoon.components.treeprocessor.TreeProcessor(TreePro
cessor.java:307)
        at org.apache.cocoon.Cocoon Source code of org.apache.cocoon.Cocoon(Cocoon.java:656)
        at  
org.apache.cocoon.servlet.CocoonServlet Source code of org.apache.cocoon.servlet.CocoonServlet(CocoonServlet.java:
1112)
        at javax.servlet.http.HttpServlet Source code of javax.servlet.http.HttpServlet(HttpServlet.java:853)
        at  
org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain(Applica
tionFilterChain.java:247)
        at  
org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain(ApplicationFilt
erChain.java:193)
        at  
org.apache.catalina.core.StandardWrapperValve Source code of org.apache.catalina.core.StandardWrapperValve(StandardWrapperValv
e.java:256)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:
480)
        at  
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
        at  
org.apache.catalina.core.StandardContextValve Source code of org.apache.catalina.core.StandardContextValve(StandardContextValv
e.java:191)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:
480)
        at  
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
        at  
org.apache.catalina.core.StandardContext Source code of org.apache.catalina.core.StandardContext(StandardContext.java:
2415)
        at  
org.apache.catalina.core.StandardHostValve Source code of org.apache.catalina.core.StandardHostValve(StandardHostValve.java
:180)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
        at  
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
        at  
org.apache.catalina.valves.ErrorReportValve Source code of org.apache.catalina.valves.ErrorReportValve(ErrorReportValve.java
:172)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:
480)
        at  
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
        at  
org.apache.catalina.core.StandardEngineValve Source code of org.apache.catalina.core.StandardEngineValve(StandardEngineValve.
java:174)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
        at  
org.apache.catalina.core.StandardPipeline Source code of org.apache.catalina.core.StandardPipeline(StandardPipeline.java:
480)
        at  
org.apache.catalina.core.ContainerBase Source code of org.apache.catalina.core.ContainerBase(ContainerBase.java:995)
        at  
org.apache.coyote.tomcat4.CoyoteAdapter Source code of org.apache.coyote.tomcat4.CoyoteAdapter(CoyoteAdapter.java:223)
        at  
org.apache.jk.server.JkCoyoteHandler Source code of org.apache.jk.server.JkCoyoteHandler(JkCoyoteHandler.java:261)
        at  
org.apache.jk.common.HandlerRequest Source code of org.apache.jk.common.HandlerRequest(HandlerRequest.java:360)
        at  
org.apache.jk.common.ChannelSocket Source code of org.apache.jk.common.ChannelSocket(ChannelSocket.java:604)
        at  
org.apache.jk.common.ChannelSocket Source code of org.apache.jk.common.ChannelSocket(ChannelSocket.java:
562)
        at  
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
        at  
org.apache.tomcat.util.threads.ThreadPool Source code of org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:619)
        at java.lang.Thread Source code of java.lang.Thread(Thread.java:554)
Caused by: net.sf.hibernate.MappingException:  
org.dom4j.DocumentException Source code of org.dom4j.DocumentException:  
http://hibernate.sourceforge.net/hibernate-mapping-2.1.dtd Nested  
exception: http://hibernate.sourceforge.net/hibernate-mapping-2.1.dtd
        at  
net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:
290)
        at  
net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:322)
        ... 58 more
Caused by: org.dom4j.DocumentException Source code of org.dom4j.DocumentException:  
http://hibernate.sourceforge.net/hibernate-mapping-2.1.dtd Nested  
exception: http://hibernate.sourceforge.net/hibernate-mapping-2.1.dtd
        at org.dom4j.io.SAXReader Source code of org.dom4j.io.SAXReader(SAXReader.java:358)
        at  
net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:
281)
        ... 59 more