-->
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: Configuration Error
PostPosted: Tue Aug 24, 2010 2:53 am 
Newbie

Joined: Tue Aug 24, 2010 2:47 am
Posts: 2
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


Top
 Profile  
 
 Post subject: Re: Configuration Error
PostPosted: Tue Aug 24, 2010 4:45 am 
Beginner
Beginner

Joined: Thu Dec 11, 2008 8:18 am
Posts: 35
check this post, probably it ll hep u.
http://www.coderanch.com/t/216716/ORM/j ... ernate-cfg


Top
 Profile  
 
 Post subject: Re: Configuration Error
PostPosted: Tue Aug 24, 2010 5:54 am 
Newbie

Joined: Tue Aug 24, 2010 2:47 am
Posts: 2
I have checked the Link b4 coming to the forum, and it actually was the same, cos after seeing that post, I went back to make sure there was no space anywhere in my doc, and like I said b4 it works fine in Netbeans, but maybe there is some other thing I am looking at.


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.