-->
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.  [ 2 posts ] 
Author Message
 Post subject: Could not parse configuration hibernate.cfg.xml
PostPosted: Sun May 08, 2011 4:48 am 
Newbie

Joined: Sun May 08, 2011 4:28 am
Posts: 1
org.apache.jasper.JasperException: org.hibernate.HibernateException: Could not parse configuration: /ormmapping/COLOMBOTODAY.cfg.xmll

this exception gives me sometimes in a web application on tomcat server, please help me to resolve this problem.

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: org.hibernate.HibernateException: Could not parse configuration: /ormmapping/COLOMBOTODAY.cfg.xml
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:498)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
root cause

javax.servlet.ServletException: org.hibernate.HibernateException: Could not parse configuration: /ormmapping/COLOMBOTODAY.cfg.xml
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
org.apache.jsp.index_jsp._jspService(index_jsp.java:866)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
root cause

org.orm.PersistentException: org.hibernate.HibernateException: Could not parse configuration: /ormmapping/COLOMBOTODAY.cfg.xml
model.NewsFactory.listNewsByQuery(NewsFactory.java:91)
org.apache.jsp.index_jsp._jspService(index_jsp.java:201)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
root cause

org.hibernate.HibernateException: Could not parse configuration: /ormmapping/COLOMBOTODAY.cfg.xml
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1494)
org.hibernate.cfg.Configuration.configure(Configuration.java:1428)
org.orm.PersistentManager.<init>(PersistentManager.java:64)
model.COLOMBOTODAYPersistentManager.<init>(COLOMBOTODAYPersistentManager.java:30)
model.COLOMBOTODAYPersistentManager.instance(COLOMBOTODAYPersistentManager.java:40)
model.NewsFactory.listNewsByQuery(NewsFactory.java:86)
org.apache.jsp.index_jsp._jspService(index_jsp.java:201)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
root cause

org.dom4j.DocumentException: Error on line 16 of document : The entity name must immediately follow the '&' in the entity reference. Nested exception: The entity name must immediately follow the '&' in the entity reference.
org.dom4j.io.SAXReader.read(SAXReader.java:482)
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1484)
org.hibernate.cfg.Configuration.configure(Configuration.java:1428)
org.orm.PersistentManager.<init>(PersistentManager.java:64)
model.COLOMBOTODAYPersistentManager.<init>(COLOMBOTODAYPersistentManager.java:30)
model.COLOMBOTODAYPersistentManager.instance(COLOMBOTODAYPersistentManager.java:40)
model.NewsFactory.listNewsByQuery(NewsFactory.java:86)
org.apache.jsp.index_jsp._jspService(index_jsp.java:201)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.30 logs.

Apache Tomcat/5.5.30

=================================================================================
this is not permanent error it gives two three hours per day.


Last edited by sameera on Tue May 10, 2011 3:29 am, edited 3 times in total.

Top
 Profile  
 
 Post subject: Re: Could not parse configuration hibernate.cfg.xml
PostPosted: Sun May 08, 2011 2:02 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
what do you mean with "sometimes" ?
did you check the file syntax is correct?

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.