-->
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.  [ 1 post ] 
Author Message
 Post subject: Reply soon
PostPosted: Sat Dec 02, 2006 3:42 am 
Newbie

Joined: Sat Dec 02, 2006 3:38 am
Posts: 1
run:

[java] 23:27:21,125 ERROR XMLHelper:61 - Error parsing XML: /hibernate.cfg.xml(36) Th
e content of element type "session-factory" must match "(property*,mapping*,(class-cache|c
ollection-cache)*,event*,listener*)".
[java] Initial SessionFactory creation failed.org.hibernate.MappingException: invalid
configuration
[java] Exception in thread "main" java.lang.ExceptionInInitializerError
[java] at util.HibernateUtil.<clinit>(Unknown Source)
[java] at events.EventManager.createAndStoreEvent(Unknown Source)
[java] at events.EventManager.main(Unknown Source)
[java] Caused by: org.hibernate.MappingException: invalid configuration
[java] at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1369)
[java] at org.hibernate.cfg.Configuration.configure(Configuration.java:1310)
[java] at org.hibernate.cfg.Configuration.configure(Configuration.java:1296)
[java] ... 3 more
[java] Caused by: org.xml.sax.SAXParseException: The content of element type "session
-factory" must match "(property*,mapping*,(class-cache|collection-cache)*,event*,listener*
)".
[java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXPa
rseException(ErrorHandlerWrapper.java:236)
[java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Error
HandlerWrapper.java:172)
[java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XM
LErrorReporter.java:382)
[java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XM
LErrorReporter.java:316)
[java] at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndEl
ement(XMLDTDValidator.java:2048)
[java] at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(
XMLDTDValidator.java:932)
[java] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEn
dElement(XMLNSDocumentScannerImpl.java:719)
[java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$
FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
[java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.
scanDocument(XMLDocumentFragmentScannerImpl.java:368)
[java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML
11Configuration.java:834)
[java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML
11Configuration.java:764)
[java] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.ja
va:148)
[java] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abst
ractSAXParser.java:1242)
[java] at org.dom4j.io.SAXReader.read(SAXReader.java:465)
[java] at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
[java] ... 5 more
[java] Java Result: 1

BUILD SUCCESSFUL
Total time: 3 seconds


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.