hibernate启动报错(在线等,大神来)
我用tomcat启动工程时,当加载hibernate时发生了如下的错误。我用的hibernate是3.6.10的版本
2013-03-15 10:21:55,824 (Version.java:37) Hibernate Commons Annotations 3.2.0.Final
2013-03-15 10:21:55,839 (Environment.java:603) Hibernate 3.6.10.Final
2013-03-15 10:21:55,839 (Environment.java:636) hibernate.properties not found
2013-03-15 10:21:55,839 (Environment.java:814) Bytecode provider name : javassist
2013-03-15 10:21:55,855 (Environment.java:695) using JDK 1.4 java.sql.Timestamp handling
2013-03-15 10:21:55,980 (Configuration.java:2156) configuring from resource: /hibernate.cfg.xml
2013-03-15 10:21:55,980 (Configuration.java:2175) Configuration resource: /hibernate.cfg.xml
2013-03-15 10:21:56,027 (DTDEntityResolver.java:73) recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2013-03-15 10:21:56,058 (Configuration.java:789) Reading mappings from resource : com/hitachijoho/cydeen/kjmng/model/Dat_PA0010.hbm.xml
2013-03-15 10:21:56,214 (DTDEntityResolver.java:73) recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2013-03-15 10:21:56,261 (Configuration.java:789) Reading mappings from resource : com/hitachijoho/cydeen/kjmng/model/Dat_PA0020.hbm.xml
2013-03-15 10:21:56,277 (DTDEntityResolver.java:73) recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2013-03-15 10:21:56,277 (Configuration.java:789) Reading mappings from resource : com/hitachijoho/cydeen/kjmng/model/Dat_PA0060.hbm.xml
2013-03-15 10:21:56,605 (DTDEntityResolver.java:73) recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2013-03-15 10:21:56,605 (Configuration.java:789) Reading mappings from resource : com/hitachijoho/cydeen/kjmng/model/Dat_TC3113.hbm.xml
2013-03-15 10:21:56,605 (DTDEntityResolver.java:73) recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2013-03-15 10:21:56,621 (Configuration.java:789) Reading mappings from resource : com/hitachijoho/cydeen/kjmng/model/Dat_TC3114.hbm.xml
2013-03-15 10:21:56,636 (DTDEntityResolver.java:73) recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2013-03-15 10:21:56,636 (Configuration.java:789) Reading mappings from resource : com/hitachijoho/cydeen/kjmng/model/Dat_TC3117.hbm.xml
2013-03-15 10:21:56,636 (DTDEntityResolver.java:73) recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2013-03-15 10:21:56,652 (Configuration.java:789) Reading mappings from resource : com/hitachijoho/cydeen/kjmng/model/Dat_TC3121.hbm.xml
2013-03-15 10:21:56,668 (DTDEntityResolver.java:73) recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2013-03-15 10:21:56,683 (Configuration.java:789) Reading mappings from resource : com/hitachijoho/cydeen/kjmng/model/Dat_TC3122.hbm.xml
2013-03-15 10:21:56,699 (DTDEntityResolver.java:73) recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2013-03-15 10:21:56,699 (Configuration.java:789) Reading mappings from resource : com/hitachijoho/cydeen/kjmng/model/Dat_TC3123.hbm.xml
2013-03-15 10:21:56,761 (DTDEntityResolver.java:73) recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2013-03-15 10:21:56,777 (Configuration.java:789) Reading mappings from resource : com/hitachijoho/cydeen/kjmng/model/Dat_TC3131.hbm.xml
2013-03-15 10:21:56,808 (DTDEntityResolver.java:73) recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2013-03-15 10:21:56,871 (Configuration.java:789) Reading mappings from resource : com/hitachijoho/cydeen/kjmng/model/Dat_TC3132.hbm.xml
2013-03-15 10:21:56,871 (DTDEntityResolver.java:73) recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2013-03-15 10:22:17,949 (ServletContextCoordinator.java:49) org.hibernate.InvalidMappingException: Unable to read XML
2013-03-15 10:22:18,480 (TilesPlugin.java:236) Tiles definition factory loaded for module ''.
2013-03-15 10:22:18,496 (ValidatorPlugIn.java:211) Loading validation rules file from '/WEB-INF/validator-rules.xml'
2013-03-15 10:22:18,496 (ValidatorPlugIn.java:211) Loading validation rules file from '/WEB-INF/validation-gyousya.xml'
2013-03-15 10:22:18,496 (ValidatorPlugIn.java:211) Loading validation rules file from '/WEB-INF/validation-sikkou.xml'
2013-03-15 10:22:18,496 (ValidatorPlugIn.java:211) Loading validation rules file from '/WEB-INF/validation.xml'
2013-03-15 10:22:18,605 (Digester.java:1463) Parse Error at line 763 column 10: The content of element type "form" is incomplete, it must match "(field)+".
org.xml.sax.SAXParseException: The content of element type "form" is incomplete, it must match "(field)+".
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2017)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:901)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2939)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at org.apache.commons.digester.Digester.parse(Digester.java:1591)
at org.apache.commons.validator.ValidatorResources.<init>(ValidatorResources.java:159)
at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:237)
at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:162)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
at com.hitachijoho.cydeen.kjmng.extend.I18NActionServlet.init(I18NActionServlet.java:28)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5033)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5317)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
[解决办法]
2013-03-15 10:21:56,871 (Configuration.java:789) Reading mappings from resource : com/hitachijoho/cydeen/kjmng/model/Dat_TC3132.hbm.xml
2013-03-15 10:21:56,871 (DTDEntityResolver.java:73) recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
2013-03-15 10:22:17,949 (ServletContextCoordinator.java:49) org.hibernate.InvalidMappingException: Unable to read XML
2013-03-15 10:22:18,480 (TilesPlugin.java:236) Tiles definition factory loaded for module ''.
2013-03-15 10:22:18,496 (ValidatorPlugIn.java:211) Loading validation rules file from '/WEB-INF/validator-rules.xml'
2013-03-15 10:22:18,496 (ValidatorPlugIn.java:211) Loading validation rules file from '/WEB-INF/validation-gyousya.xml'
2013-03-15 10:22:18,496 (ValidatorPlugIn.java:211) Loading validation rules file from '/WEB-INF/validation-sikkou.xml'
2013-03-15 10:22:18,496 (ValidatorPlugIn.java:211) Loading validation rules file from '/WEB-INF/validation.xml'
2013-03-15 10:22:18,605 (Digester.java:1463) Parse Error at line 763 column 10: The content of element type "form" is incomplete, it must match "(field)+".
org.xml.sax.SAXParseException: The content of element type "form" is incomplete, it must match "(field)+".
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)