-->
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: Eror implementing hibernate app in tomcat 6
PostPosted: Mon May 18, 2009 7:49 am 
Newbie

Joined: Mon May 18, 2009 6:58 am
Posts: 1
HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

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

exception

javax.servlet.ServletException: Servlet execution threw an exception


root cause

java.lang.ExceptionInInitializerError
util.HibernateUtil.<clinit>(Unknown Source)
events.EventManagerServlet.doGet(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause

org.hibernate.InvalidMappingException: Could not parse mapping document from resource events/Event.hbm.xml
org.hibernate.cfg.Configuration.addResource(Configuration.java:602)
org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1621)
org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1589)
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1568)
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1542)
org.hibernate.cfg.Configuration.configure(Configuration.java:1462)
org.hibernate.cfg.Configuration.configure(Configuration.java:1448)
util.HibernateUtil.<clinit>(Unknown Source)
events.EventManagerServlet.doGet(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause

org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
org.hibernate.cfg.Configuration.addInputStream(Configuration.java:541)
org.hibernate.cfg.Configuration.addResource(Configuration.java:599)
org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1621)
org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1589)
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1568)
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1542)
org.hibernate.cfg.Configuration.configure(Configuration.java:1462)
org.hibernate.cfg.Configuration.configure(Configuration.java:1448)
util.HibernateUtil.<clinit>(Unknown Source)
events.EventManagerServlet.doGet(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause

org.dom4j.DocumentException: Error on line 2 of document : White spaces are required after keyword PUBLIC in DOCTYPE decl. Nested exception: White spaces are required after keyword PUBLIC in DOCTYPE decl.
org.dom4j.io.SAXReader.read(SAXReader.java:482)
org.hibernate.cfg.Configuration.addInputStream(Configuration.java:532)
org.hibernate.cfg.Configuration.addResource(Configuration.java:599)
org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1621)
org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1589)
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1568)
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1542)
org.hibernate.cfg.Configuration.configure(Configuration.java:1462)
org.hibernate.cfg.Configuration.configure(Configuration.java:1448)
util.HibernateUtil.<clinit>(Unknown Source)
events.EventManagerServlet.doGet(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.18


Top
 Profile  
 
 Post subject: Re: Eror implementing hibernate app in tomcat 6
PostPosted: Tue May 19, 2009 4:45 am 
Newbie

Joined: Sun May 17, 2009 5:46 pm
Posts: 8
The stack trace contains: Could not parse mapping document from resource events/Event.hbm.xml

This suggests that the problem is in your mapping file: Event.hbm.xml.

Further down in the stack trace you also see the following:
Error on line 2 of document : White spaces are required after keyword PUBLIC in DOCTYPE decl.

This tells you where in the file the problem is, and what it is.


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.