erp_03--Code Generator Heimacodeutil

Source: Internet
Author: User

Dark Horse Latest Course code generator heimacodeutil_v2.4 https://www.cnblogs.com/gj-blog/p/9415969.html

MAVEN+SSH2 Project Error

Severity: Exception sending context initialized event to listener instance ofclassorg.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException : Error creating Bean with name' depbiz ' defined in file [C:\Users\Administrator\Desktop\1\me\erp_parent\erp_biz\target\classes\applicationContext _biz.xml]: Cannot resolve reference to bean ' Depdao ' whileSetting bean property ' Depdao '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Depdao ' defined in file [C:\Users\Administrator\Desktop\1\me\erp_parent\erp_dao\target\classes\applicationContext_dao.xml ]: Cannot resolve reference to bean ' sessionfactory ' whileSetting bean property ' sessionfactory '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Sessionfactory ' defined in file [C:\Users\Administrator\Desktop\1\me\erp_parent\erp_dao\target\classes\ Applicationcontext_datasource.xml]: Invocation of Init method failed; Nested exception is org.hibernate.boot.InvalidMappingException:Could not parse mapping document:NULL(Input_stream) at Org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference ( Beandefinitionvalueresolver.java:359) at Org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary ( Beandefinitionvalueresolver.java:108) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ( Abstractautowirecapablebeanfactory.java:1481) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean ( Abstractautowirecapablebeanfactory.java:1226) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( Abstractautowirecapablebeanfactory.java:543) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( Abstractautowirecapablebeanfactory.java:482) at org.springframework.beans.factory.support.abstractbeanfactory$1.getObject (abstractbeanfactory.java:306) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( Defaultsingletonbeanregistry.java:230) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (Abstractbeanfactory.java:60W) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (Abstractbeanfactory.java:197) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( Defaultlistablebeanfactory.java:772) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( Abstractapplicationcontext.java:839) at Org.springframework.context.support.AbstractApplicationContext.refresh (Abstractapplicationcontext.java: 538) at Org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext ( Contextloader.java:446) at Org.springframework.web.context.ContextLoader.initWebApplicationContext (Contextloader.java:328) at org.springframework.web.context.ContextLoaderListener.contextInitialized (Contextloaderlistener.java: 107) at Org.apache.catalina.core.StandardContext.listenerStart (Standardcontext.java:4939) at Org.apache.catalina.core.StandardContext.startInternal (Standardcontext.java:5434) 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.run (Futuretask.java:266) at Java.util.concurrent.ThreadPoolExecutor.runWorker (Threadpoolexecutor.java:1149) at Java.util.concurrent.threadpoolexecutor$worker.run (Threadpoolexecutor.java:624) at Java.lang.Thread.run (Thread.java:748) caused by:org.springframework.beans.factory.BeanCreationException:Error creating bean with name' Depdao ' defined in file [C:\Users\Administrator\Desktop\1\me\erp_parent\erp_dao\target\classes\applicationContext _dao.xml]: Cannot resolve reference to bean ' sessionfactory ' whileSetting bean property ' sessionfactory '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Sessionfactory ' defined in file [C:\Users\Administrator\Desktop\1\me\erp_parent\erp_dao\target\classes\ Applicationcontext_datasource.xml]: Invocation of Init method failed; Nested exception is org.hibernate.boot.InvalidMappingException:Could not parse mapping document:NULL(Input_stream) at Org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference ( Beandefinitionvalueresolver.java:359) at Org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary ( Beandefinitionvalueresolver.java:108) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ( Abstractautowirecapablebeanfactory.java:1481) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean ( Abstractautowirecapablebeanfactory.java:1226) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( Abstractautowirecapablebeanfactory.java:543) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( Abstractautowirecapablebeanfactory.java:482) at org.springframework.beans.factory.support.abstractbeanfactory$1.getObject (abstractbeanfactory.java:306) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( Defaultsingletonbeanregistry.java:230) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (Abstractbeanfactory.java:60W) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (Abstractbeanfactory.java:197) at Org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference ( Beandefinitionvalueresolver.java:351)    ... 24morecaused by:org.springframework.beans.factory.BeanCreationException:Error creating bean with name' sessionfactory ' defined in file [C:\Users\Administrator\Desktop\1\me\erp_parent\erp_dao\target\classes\ Applicationcontext_datasource.xml]: Invocation of Init method failed; Nested exception is org.hibernate.boot.InvalidMappingException:Could not parse mapping document:NULL(Input_stream) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean ( Abstractautowirecapablebeanfactory.java:1578) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( Abstractautowirecapablebeanfactory.java:545) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( Abstractautowirecapablebeanfactory.java:482) at org.springframework.beans.factory.support.abstractbeanfactory$1.getObject (abstractbeanfactory.java:306) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( Defaultsingletonbeanregistry.java:230) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (Abstractbeanfactory.java:60W) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (Abstractbeanfactory.java:197) at Org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference ( Beandefinitionvalueresolver.java:351)    ... 34morecaused by:org.hibernate.boot.InvalidMappingException:Could Not parse mapping document:NULL(Input_stream) at Org.hibernate.boot.jaxb.internal.InputStreamXmlSource.doBind (Inputstreamxmlsource.java: 46) at Org.hibernate.boot.jaxb.internal.InputStreamXmlSource.doBind (Inputstreamxmlsource.java:38) at Org.hibernate.boot.spi.XmlMappingBinderAccess.bind (Xmlmappingbinderaccess.java:94) at Org.hibernate.boot.MetadataSources.addInputStream (Metadatasources.java:381) at Org.hibernate.cfg.Configuration.addInputStream (Configuration.java:476) at Org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet ( Localsessionfactorybean.java:329) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods ( Abstractautowirecapablebeanfactory.java:1637) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean ( Abstractautowirecapablebeanfactory.java:1574)    ... 41morecaused by:org.hibernate.boot.MappingException:Unable to perform unmarshalling on line number8 and column 14. message:cvc-complex-type.2.3: The element ' ID ' must contain no characters [children], because the content type of the type is element only. : Origin (NULL) at ORG.HIBERNATE.BOOT.JAXB.INTERNAL.ABSTRACTBINDER.JAXB (Abstractbinder.java:177) at Org.hibernate.boot.jaxb.internal.MappingBinder.doBind (Mappingbinder.java:61) at Org.hibernate.boot.jaxb.internal.AbstractBinder.doBind (Abstractbinder.java:102) at Org.hibernate.boot.jaxb.internal.AbstractBinder.bind (Abstractbinder.java:57) at Org.hibernate.boot.jaxb.internal.InputStreamXmlSource.doBind (Inputstreamxmlsource.java:43)    ... 48morecaused by:javax.xml.bind.UnmarshalException-with linked exception:[org.xml.sax.saxparseexception; linenumber:8; columnnumber:14; cvc-complex-type.2.3: element ' ID 'must not contain a character [child] because the content type of the type is element only. ] at Com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException ( Unmarshallerimpl.java:468) at Com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0 (Unmarshallerimpl.java: 448) at Com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal (Unmarshallerimpl.java: 420) at ORG.HIBERNATE.BOOT.JAXB.INTERNAL.ABSTRACTBINDER.JAXB (Abstractbinder.java:171)    ... 52morecaused by:org.xml.sax.SAXParseException; linenumber:8; columnnumber:14; cvc-complex-type.2.3: element ' ID 'must not contain a character [child] because the content type of the type is element only. At Com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException (Errorhandlerwrapper.java :203) at Com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error (Errorhandlerwrapper.java:134) at Com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError (Xmlerrorreporter.java:396) at Com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError (Xmlerrorreporter.java:327) at Com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError (Xmlerrorreporter.java:284) at Com.sun.org.apache.xerces.internal.impl.xs.xmlschemavalidator$xsierrorreporter.reporterror ( Xmlschemavalidator.java:453) at Com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError (Xmlschemavalidator.java :3231) at Com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.elementLocallyValidComplexType ( Xmlschemavalidator.java:3194) at Com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.elementLocallyValidType ( Xmlschemavalidator.java:3154) at Com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processElementContent ( Xmlschemavalidator.java:3056) at Com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleEndElement (Xmlschemavalidator.java: 2135) at Com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement (Xmlschemavalidator.java:854) at Com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.endElement ( Validatorhandlerimpl.java:582) at Com.sun.xml.internal.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.endElement ( Validatingunmarshaller.java:91) at Com.sun.xml.internal.bind.v2.runtime.unmarshaller.InterningXmlVisitor.endElement ( Interningxmlvisitor.java:66) at Com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXEventConnector.handleEndElement ( Staxeventconnector.java:219) at Com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXEventConnector.bridge (Staxeventconnector.java: 120) at Com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0 (Unmarshallerimpl.java: 445)    ... More

Error reason: Problem with entity's mapping file

The project starts normally after the correct modification

erp_03--Code Generator Heimacodeutil

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.