Hi, I am pretty new to Hibernate, but I love the working, I am currently working on a project JPOS and Hibernate, and when I test my work within the Netbeans I did, it works fine but on porting it to my Q2 container for JPOS I get this error
<log realm="access-server.server.session/127.0.0.1" at="Mon Aug 23 14:19:00 WAT 2010.185"> <session-error> <exception name="null"> java.lang.ExceptionInInitializerError at com.access.server.LogMessage.logRequest(LogMessage.java:58) at com.access.server.RequestProcessor.processBalance(RequestProcessor.java:96) at com.access.server.RequestProcessor.process(RequestProcessor.java:45) at org.jpos.iso.ISOServer$Session.run(ISOServer.java:135) at org.jpos.util.ThreadPool$PooledThread.run(ThreadPool.java:71) Caused by: org.hibernate.HibernateException: Could not parse configuration: cfg\hibernate.cfg.xml at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1494) at org.hibernate.cfg.Configuration.configure(Configuration.java:1462) at com.access.dao.DAO.<clinit>(DAO.java:22) ... 5 more Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1484) ... 7 more </exception> </session-error>
can anyone help cos the path to my cfg\hibernate.cfg.xml is actually valid, and the XML parses well when I test with some XML parsers.
Thanks
|