Org.hibernate.internal.util.config.ConfigurationException:Unable to perform unmarshalling @ line n

Source: Internet
Author: User
Tags bind
Org.hibernate.internal.util.config.ConfigurationException:Unable to perform unmarshalling on line number-1 and column- 1 in RESOURCE Hibernate.cfg.xml. message:cvc-complex-type.3.2.2: Attribute ' resourse ' is not allowed in element ' mapping '.
At Org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal (jaxbcfgprocessor.java:133)
At Org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal (jaxbcfgprocessor.java:65)
At Org.hibernate.boot.cfgxml.internal.ConfigLoader.loadConfigXmlResource (configloader.java:57)
At Org.hibernate.boot.registry.StandardServiceRegistryBuilder.configure (standardserviceregistrybuilder.java:163 )
At Org.hibernate.cfg.Configuration.configure (configuration.java:258)
At Org.hibernate.cfg.Configuration.configure (configuration.java:244)
At Test. Studentstest.init (studentstest.java:30)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
At Java.lang.reflect.Method.invoke (Unknown Source)
At Org.junit.runners.model.frameworkmethod$1.runreflectivecall (frameworkmethod.java:45)
At Org.junit.internal.runners.model.ReflectiveCallable.run (reflectivecallable.java:15)
At org.junit.runners.model.FrameworkMethod.invokeExplosively (frameworkmethod.java:42)
At Org.junit.internal.runners.statements.RunBefores.evaluate (runbefores.java:27)
At Org.junit.internal.runners.statements.RunAfters.evaluate (runafters.java:30)
At Org.junit.runners.ParentRunner.runLeaf (parentrunner.java:263)
At Org.junit.runners.BlockJUnit4ClassRunner.runChild (blockjunit4classrunner.java:68)
At Org.junit.runners.BlockJUnit4ClassRunner.runChild (blockjunit4classrunner.java:47)
At Org.junit.runners.parentrunner$3.run (parentrunner.java:231)
At Org.junit.runners.parentrunner$1.schedule (parentrunner.java:60)
At Org.junit.runners.ParentRunner.runChildren (parentrunner.java:229)
At org.junit.runners.parentrunner.access$000 (parentrunner.java:50)
At Org.junit.runners.parentrunner$2.evaluate (parentrunner.java:222)
At Org.junit.runners.ParentRunner.run (parentrunner.java:300)
At Org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run (junit4testreference.java:86)
At Org.eclipse.jdt.internal.junit.runner.TestExecution.run (testexecution.java:38)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:459)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests (remotetestrunner.java:675)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run (remotetestrunner.java:382)
At Org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main (remotetestrunner.java:192)
caused by:javax.xml.bind.UnmarshalException
-With linked exception:
[Org.xml.sax.SAXParseException; cvc-complex-type.3.2.2: Attribute ' resourse ' is not allowed in element ' mapping '. ]
At Com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException (Unknown Source)
At Com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0 (Unknown Source)
At Com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal (Unknown Source)
At Org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal (jaxbcfgprocessor.java:126)
... More
caused by:org.xml.sax.SAXParseException; cvc-complex-type.3.2.2: Attribute ' resourse ' is not allowed in element ' mapping '.
At Com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException (Unknown Source)
At Com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error (Unknown Source)
At Com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError (Unknown Source)
At Com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError (Unknown Source)
At Com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError (Unknown Source)
At Com.sun.org.apache.xerces.internal.impl.xs.xmlschemavalidator$xsierrorreporter.reporterror (Unknown Source)
At Com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError (Unknown Source)
At Com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes (Unknown Source)
At Com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement (Unknown Source)
At Com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement (Unknown Source)
At Com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement (Unknown Source)
At Com.sun.xml.internal.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.startElement (Unknown Source)
At Com.sun.xml.internal.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement (Unknown Source)
At Com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXEventConnector.handleStartElement (Unknown Source)
At Com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXEventConnector.bridge (Unknown Source)

... More



solve the problem:

Too believe oneself, did not think is oneself resource spelling wrong, still thought is own jar bag wrong, have been engaged for a long time. It's killing me, the English is really not good, write a blog record oneself do stupid.

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.