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
|