<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Error configuring Hibernate console
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/cbaumgartner">Chris Baumgartner</a> in <i>JBoss Tools</i> - <a href="http://community.jboss.org/message/605519#605519">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>I'm trying to use the Hibernate Console for Eclipse.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I'm getting a rather long error message that starts with:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Error while opening console configuration</p><p>Reason: org.hibernate.console.HibernateConsuleRuntimeException: Could not load AnnotationConfiguration.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>It looks like the cause is:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>org.hibernate.MappingException: Invalid ORM mapping file.</p><p>Error parsing XML (line5 : column 30): schema_reference.4: Failed to read schema document 'orm_2_0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not &lt;xsd:schema&gt;.</p><p>Error parsing XML (line5 : column 30): cvc-elt.1: Cannot find the declaration of element 'entity-mappings'.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>(many similar lines deleted...)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:920) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:107) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.Configuration.addResource(Configuration.java:668) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.AnnotationConfiguration.addResource(AnnotationConfiguration.java:1134) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:719) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1647) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1626) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfiguration.java:1224) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfiguration.java:107) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1600)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfiguration.java:1212) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfiguration.java:107) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.Configuration.configure(Configuration.java:1554) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:1206) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:107) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.console.ConfigurationFactory.loadConfigurationXML(ConfigurationFactory.java:347) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.console.ConfigurationFactory.configureStandardConfiguration(ConfigurationFactory.java:276) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.console.ConfigurationFactory.buildConfiguration(ConfigurationFactory.java:162) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.console.ConfigurationFactory.createConfiguration(ConfigurationFactory.java:94) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.console.ConsoleConfiguration$3.execute(ConsoleConfiguration.java:213) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:72) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:210) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:166) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:40) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:100) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:106) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:235) </p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The start of my mapping file looks like:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p><p><span>&lt;entity-mappings xmlns="</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span>"</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlns:xsi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xsi:schemaLocation="</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span> orm_1_0.xsd"</span></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; version="1.0"&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Any ideas on what is causing this?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/605519#605519">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Tools at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>