Note that there are some explanatory texts on larger screens.

plurals
  1. POOracle hibernate cfg
    primarykey
    data
    text
    <p>I am getting this error when trying to start up my hibernate. I am a hibernate newbie so was hoping someone could point out the mistake I made with my cfg. I included the error, hope it is an easy fix, thanks.</p> <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt; </code></pre> <p></p> <p> </p> <pre><code> &lt;!-- Database connection settings --&gt; &lt;property name="connection.driver_class"&gt;oracle.jdbc.driver.OracleDriver&lt;/property&gt; &lt;property name="connection.url"&gt;jdbc:oracle:thin:@localhost:1521:orcl"&lt;/property&gt; &lt;property name="connection.username"&gt;scott&lt;/property&gt; &lt;property name="connection.password"&gt;tiger&lt;/property&gt; &lt;property name="hibernate.dialect" value="org.hibernate.dialect.OracleDialect"/&gt; &lt;!-- Echo all executed SQL to stdout --&gt; &lt;property name="show_sql"&gt;true&lt;/property&gt; &lt;/session-factory&gt; </code></pre> <p></p> <pre><code>Exception in thread "main" org.hibernate.MappingException: invalid configuration at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2241) at org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfiguration.java:230) at org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfiguration.java:71) at org.hibernate.cfg.Configuration.configure(Configuration.java:2158) at org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:212) at org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:71) at org.hibernate.cfg.Configuration.configure(Configuration.java:2137) at org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:206) at HibernateContext.setConfiguration(HibernateContext.java:20) at HibernateContext.addClass(HibernateContext.java:205) at HibernateContext.addClasses(HibernateContext.java:216) at main.main(main.java:8) </code></pre> <p>Caused by: org.xml.sax.SAXParseException; lineNumber: 14; columnNumber: 89; Attribute "value" must be declared for element type "property". 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.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(Unknown Source) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.dom4j.io.SAXReader.read(SAXReader.java:465) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2238) ... 11 more</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload