MyEclipse: A configuration object could not be built

zhangxin69 - Aug 26, 2006 - 03:38 AM
Post subject: A configuration object could not be built
Open HQL Editor, error as follow:
A configuration object could not be built, autocomplete and dynamic query translation will be unavailable. Query cannot be excuted.
reason:
Could not parse Configuration:
C:\workspace\HibernateDemo\src\hibernate.cfg.xml

eclipse 3.2M2
MyEclipse Enterprise Workbench
Version: 5.0.0

thanks
Support-Brian - Aug 26, 2006 - 06:26 PM
Post subject:
Zhang,

1) Does the file HibernateDemo\src\hibernate.cfg.xml exist and is it valid? (Is this the HibernateDemo project from the MyEclipse documentation?)
2) There will be a stack trace in your error log when you get this exception. Can you please paste that here?
3) How do you open the HQL editor? Do you open an existing hql file or use the "Open HQL Editor" menu item? After opening the HQL editor, if you press the refresh button, what happens?
4) Are you connected to the internet when you're using the HQL editor?

Brian.
korovev - Sep 06, 2006 - 09:06 AM
Post subject:
:-)

I have the same problem

While I try to do that I'm not connected to the Internet....
Eclipse enlights some warning about the parsing of hibernate.cfg

.....help !


thank you!!!
gefwhy@gmail.com - Sep 28, 2006 - 09:21 PM
Post subject:
Brian,
I too am getting this error. My hibernate.cfg.xml file does exist at that location. I am connected to the internet. To open the editor I right-click the project and select MyEclipse->Open HQL editor... See below for the stack trace. Thanks in advance for your help.


!ENTRY com.genuitec.org.hibernate.eclipse.console 4 4 2006-09-28 15:02:56.218
!MESSAGE Could not parse configuration: C:\workspace\hib\hibernate.cfg.xml
!STACK 0
org.hibernate.HibernateException: Could not parse configuration: C:\workspace\hib\hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1376)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: org.dom4j.DocumentException: Error on line 1 of document http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd : The markup declarations contained or pointed to by the document type declaration must be well-formed. Nested exception: The markup declarations contained or pointed to by the document type declaration must be well-formed.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
... 10 more
!SUBENTRY 1 com.genuitec.org.hibernate.eclipse.console 4 150 2006-09-28 15:02:56.218
!MESSAGE org.dom4j.DocumentException: Error on line 1 of document http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd : The markup declarations contained or pointed to by the document type declaration must be well-formed. Nested exception: The markup declarations contained or pointed to by the document type declaration must be well-formed.
!STACK 0
org.dom4j.DocumentException: Error on line 1 of document http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd : The markup declarations contained or pointed to by the document type declaration must be well-formed. Nested exception: The markup declarations contained or pointed to by the document type declaration must be well-formed.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Nested exception:
org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
!SUBENTRY 2 com.genuitec.org.hibernate.eclipse.console 4 150 2006-09-28 15:02:56.218
!MESSAGE org.dom4j.DocumentException: Error on line 1 of document http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd : The markup declarations contained or pointed to by the document type declaration must be well-formed. Nested exception: The markup declarations contained or pointed to by the document type declaration must be well-formed.
!STACK 0
org.dom4j.DocumentException: Error on line 1 of document http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd : The markup declarations contained or pointed to by the document type declaration must be well-formed. Nested exception: The markup declarations contained or pointed to by the document type declaration must be well-formed.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Nested exception:
org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

!ENTRY com.genuitec.org.hibernate.eclipse.console 1 0 2006-09-28 15:02:56.218
!MESSAGE Could not refresh Hibernate project context com.genuitec.eclipse.hibernate.action.MERefreshCCAction$InProgressException
support-snpe - Sep 29, 2006 - 03:20 AM
Post subject:
Please, can you send your hibernate.cfg.xml file

Thanks
Peco
gefwhy@gmail.com - Sep 29, 2006 - 02:30 PM
Post subject:
Here it is. Thanks for your help.

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<!-- Generated by MyEclipse Hibernate Tools.-->
<hibernate-configuration>
<session-factory>
<property name="connection.username">hibernate</property>
<property name="connection.url">jdbc:mysql://localhost:3306/</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="myeclipse.connection.profile">hibernate</property>
<property name="connection.password">hibernate</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<mapping resource="stuff/Book.hbm.xml" />
<mapping resource="stuff/Address.hbm.xml" />
<mapping resource="stuff/PersonBook.hbm.xml" />
<mapping resource="stuff/Person.hbm.xml" />
</session-factory>
</hibernate-configuration>
support-snpe - Sep 29, 2006 - 03:48 PM
Post subject:
Your file is correct (I suppose that driver and hbm.xml are correctly).What vesrion hibernate you use ?

Best
gefwhy@gmail.com - Sep 29, 2006 - 07:27 PM
Post subject:
Yes the JDBC driver name and the resource mappings are coreect. I'm using Hibernate 3.1
support-snpe - Sep 30, 2006 - 12:59 AM
Post subject:
Do you use MyEclipse hibernate libraries ?
gefwhy@gmail.com - Sep 30, 2006 - 01:37 AM
Post subject:
Yes I am. This whole project was created in MyEclipse using the Hibernate stuff. I created the database files and generated everything else using MyEclipse. Thanks.
support-snpe - Sep 30, 2006 - 01:47 AM
Post subject:
We can't reproduce your case.I have supposed that you have some library in project which not play fine with dom4j (hibernate use dom4j i for parsing xml).Is it possible ?
gefwhy@gmail.com - Sep 30, 2006 - 11:07 PM
Post subject:
Actually the only libray I have in this project is your Hibernate library. This is basically a test project to see if MyEclipse will work for me. I'm not using anything else at this point. Everything was generated in MyEclipse using a test database I constructed.
support-snpe - Oct 01, 2006 - 12:47 AM
Post subject:
Please can you check next next :

Windows-Preferences-MyEclipse-Editors-XML-XML Catalog

Looka at nodes : -//Hibernate/Hibernate Configuration DTD 3.0//EN and remember URI
It will be like this
file:/<YOUR_MYECLIPSE_DIR>/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_<YOUR_MYECLIPSE_VERSION>/catalog-dtd/hibernate-configuration-3.0.dtd

check file hibernate-configuration-3.0.dtd (size have to be 2547 bytes)

It looks that you have wrong this file or your xml catalog show to wrong location

Best
Peco
support-rkalla - Oct 03, 2006 - 01:17 AM
Post subject:
qefwhy,
Was this issue resolved?
prescott.travis - Oct 03, 2006 - 03:24 PM
Post subject:
I'm getting all of the same issues. I find another post that indicates the same problem (towards bottom of post):

<1>http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-14362.html</i>

I am accessing the editor by right-clicking the project >> MyEclipse >> HQL Editor. It thinks about it for a long time and I get an identical error.

I'll post my config below but all of the files and references to them seem to be accurate...I've dbl-checked. Everything was generated by myEclipse including the database itself as we are testing out the tools (which have been awesome up to this point, I should say).

Code:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
          "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
          "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<!-- Generated by MyEclipse Hibernate Tools.                   -->
<hibernate-configuration>

   <session-factory>
      <property name="connection.username">travisp</property>
      <property name="connection.url">
         url blacked out for security reasons
      </property>
      <property name="dialect">
         org.hibernate.dialect.SybaseDialect
      </property>
      <property name="myeclipse.connection.profile">spamis</property>
      <property name="connection.password">travisp1234</property>
      <property name="connection.driver_class">
         com.sybase.jdbc2.jdbc.SybDriver
      </property>
      <mapping resource="com/label/dao/hibernate/Artist.hbm.xml" />
      <mapping resource="com/label/dao/hibernate/Album.hbm.xml" />
      <mapping resource="com/label/dao/hibernate/Song.hbm.xml" />
      <mapping
         resource="com/label/dao/hibernate/ReleaseDetail.hbm.xml" />
      <mapping
         resource="com/label/dao/hibernate/ArtistDetail.hbm.xml" />
      <mapping
         resource="com/label/dao/hibernate/FeatureDetail.hbm.xml" />
      <mapping
         resource="com/label/dao/hibernate/PerformanceCredit.hbm.xml" />

   </session-factory>

</hibernate-configuration>

Support-Brian - Oct 03, 2006 - 03:45 PM
Post subject:
Prescott,

Could you help us by answering the following questions about your setup?

1) Can you try out the above when connected to the Internet? Does it work then?

2) What is the path at which you have installed MyEclipse?

3) Have you made any changes to the MyEclipse configuration or installed any other plugins like Hibernate Tools or WTP?

4) Could you go here: Window>Preferences>MyEclipse>Editors>XML>XML Catalog and see if a
-//Hibernate/Hibernate Configuration DTD 3.0//EN entry is present? If you observe the Details Pane when you select this entry, you should get a file system URI - can you go to this location and check if the corresponding DTD file is OK? The file size should be 2547 bytes.

5) Have you added any libraries, (notably Xerces) to your hibernate project?

6) Please post the stack trace from the error log here. Instructions on how to do this and other relevant questions here: Posting Guidelines

Thank you for the compliment, we're glad you've had a positive experience so far.

Best,
Brian.
prescott.travis - Oct 03, 2006 - 09:47 PM
Post subject:
Brian,
Here's the information you mention:

1. I am always connected to the Internet - LAN connection
2. myEclipse: D:\Program Files\MyEclipse 5.0GA
3. I have installed the Hibernate plugin, Spring plugin and the Web Tools plugin
4. I have checked the XML catalog file and it is there in the proper directory. The file size is rounded to 43k in explorer
5. I have not added any file parsing libraries to the project. I did add a jUnit jar and a sybase db driver jar, however

Code:


!ENTRY com.genuitec.org.hibernate.eclipse.console 4 4 2006-10-03 08:56:17.237
!MESSAGE Could not parse configuration: D:\tools\java\workspace\label\src\main\java\hibernate.cfg.xml
!STACK 0
org.hibernate.HibernateException: Could not parse configuration: D:\tools\java\workspace\label\src\main\java\hibernate.cfg.xml
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1376)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: org.dom4j.DocumentException: Error on line 1 of document http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd : The markup declarations contained or pointed to by the document type declaration must be well-formed. Nested exception: The markup declarations contained or pointed to by the document type declaration must be well-formed.
   at org.dom4j.io.SAXReader.read(SAXReader.java:482)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   ... 10 more
!SUBENTRY 1 com.genuitec.org.hibernate.eclipse.console 4 150 2006-10-03 08:56:17.237
!MESSAGE org.dom4j.DocumentException: Error on line 1 of document http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd : The markup declarations contained or pointed to by the document type declaration must be well-formed. Nested exception: The markup declarations contained or pointed to by the document type declaration must be well-formed.
!STACK 0
org.dom4j.DocumentException: Error on line 1 of document http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd : The markup declarations contained or pointed to by the document type declaration must be well-formed. Nested exception: The markup declarations contained or pointed to by the document type declaration must be well-formed.
   at org.dom4j.io.SAXReader.read(SAXReader.java:482)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Nested exception:
org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at org.dom4j.io.SAXReader.read(SAXReader.java:465)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
!SUBENTRY 2 com.genuitec.org.hibernate.eclipse.console 4 150 2006-10-03 08:56:17.253
!MESSAGE org.dom4j.DocumentException: Error on line 1 of document http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd : The markup declarations contained or pointed to by the document type declaration must be well-formed. Nested exception: The markup declarations contained or pointed to by the document type declaration must be well-formed.
!STACK 0
org.dom4j.DocumentException: Error on line 1 of document http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd : The markup declarations contained or pointed to by the document type declaration must be well-formed. Nested exception: The markup declarations contained or pointed to by the document type declaration must be well-formed.
   at org.dom4j.io.SAXReader.read(SAXReader.java:482)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Nested exception:
org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at org.dom4j.io.SAXReader.read(SAXReader.java:465)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

!ENTRY com.genuitec.org.hibernate.eclipse.console 1 0 2006-10-03 08:56:17.300
!MESSAGE Could not refresh Hibernate project context com.genuitec.eclipse.hibernate.action.MERefreshCCAction$InProgressException

!ENTRY com.genuitec.org.hibernate.eclipse.console 4 4 2006-10-03 08:57:48.754
!MESSAGE Could not parse configuration: D:\tools\java\workspace\label\src\main\java\hibernate.cfg.xml
!STACK 0
org.hibernate.HibernateException: Could not parse configuration: D:\tools\java\workspace\label\src\main\java\hibernate.cfg.xml
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1376)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
   at org.dom4j.io.SAXReader.read(SAXReader.java:484)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   ... 10 more
!SUBENTRY 1 com.genuitec.org.hibernate.eclipse.console 4 150 2006-10-03 08:57:48.754
!MESSAGE org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
!STACK 0
org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
   at org.dom4j.io.SAXReader.read(SAXReader.java:484)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Nested exception:
java.net.ConnectException: Connection timed out: connect
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(Unknown Source)
   at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
   at java.net.PlainSocketImpl.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at sun.net.NetworkClient.doConnect(Unknown Source)
   at sun.net.www.http.HttpClient.openServer(Unknown Source)
   at sun.net.www.http.HttpClient.openServer(Unknown Source)
   at sun.net.www.http.HttpClient.<init>(Unknown Source)
   at sun.net.www.http.HttpClient.New(Unknown Source)
   at sun.net.www.http.HttpClient.New(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
   at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at org.dom4j.io.SAXReader.read(SAXReader.java:465)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
!SUBENTRY 2 com.genuitec.org.hibernate.eclipse.console 4 150 2006-10-03 08:57:48.754
!MESSAGE org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
!STACK 0
org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
   at org.dom4j.io.SAXReader.read(SAXReader.java:484)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Nested exception:
java.net.ConnectException: Connection timed out: connect
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(Unknown Source)
   at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
   at java.net.PlainSocketImpl.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at sun.net.NetworkClient.doConnect(Unknown Source)
   at sun.net.www.http.HttpClient.openServer(Unknown Source)
   at sun.net.www.http.HttpClient.openServer(Unknown Source)
   at sun.net.www.http.HttpClient.<init>(Unknown Source)
   at sun.net.www.http.HttpClient.New(Unknown Source)
   at sun.net.www.http.HttpClient.New(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
   at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at org.dom4j.io.SAXReader.read(SAXReader.java:465)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

!ENTRY com.genuitec.org.hibernate.eclipse.console 1 0 2006-10-03 08:57:48.769
!MESSAGE Could not refresh Hibernate project context com.genuitec.eclipse.hibernate.action.MERefreshCCAction$InProgressException

!ENTRY com.genuitec.org.hibernate.eclipse.console 4 4 2006-10-03 09:04:45.256
!MESSAGE Could not parse configuration: D:\tools\java\workspace\label\src\main\java\hibernate.cfg.xml
!STACK 0
org.hibernate.HibernateException: Could not parse configuration: D:\tools\java\workspace\label\src\main\java\hibernate.cfg.xml
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1376)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
   at org.dom4j.io.SAXReader.read(SAXReader.java:484)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   ... 10 more
!SUBENTRY 1 com.genuitec.org.hibernate.eclipse.console 4 150 2006-10-03 09:04:45.272
!MESSAGE org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
!STACK 0
org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
   at org.dom4j.io.SAXReader.read(SAXReader.java:484)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Nested exception:
java.net.ConnectException: Connection timed out: connect
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(Unknown Source)
   at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
   at java.net.PlainSocketImpl.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at sun.net.NetworkClient.doConnect(Unknown Source)
   at sun.net.www.http.HttpClient.openServer(Unknown Source)
   at sun.net.www.http.HttpClient.openServer(Unknown Source)
   at sun.net.www.http.HttpClient.<init>(Unknown Source)
   at sun.net.www.http.HttpClient.New(Unknown Source)
   at sun.net.www.http.HttpClient.New(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
   at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at org.dom4j.io.SAXReader.read(SAXReader.java:465)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
!SUBENTRY 2 com.genuitec.org.hibernate.eclipse.console 4 150 2006-10-03 09:04:45.272
!MESSAGE org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
!STACK 0
org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
   at org.dom4j.io.SAXReader.read(SAXReader.java:484)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Nested exception:
java.net.ConnectException: Connection timed out: connect
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(Unknown Source)
   at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
   at java.net.PlainSocketImpl.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at sun.net.NetworkClient.doConnect(Unknown Source)
   at sun.net.www.http.HttpClient.openServer(Unknown Source)
   at sun.net.www.http.HttpClient.openServer(Unknown Source)
   at sun.net.www.http.HttpClient.<init>(Unknown Source)
   at sun.net.www.http.HttpClient.New(Unknown Source)
   at sun.net.www.http.HttpClient.New(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
   at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at org.dom4j.io.SAXReader.read(SAXReader.java:465)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

!ENTRY com.genuitec.org.hibernate.eclipse.console 1 0 2006-10-03 09:04:45.272
!MESSAGE Could not refresh Hibernate project context com.genuitec.eclipse.hibernate.action.MERefreshCCAction$InProgressException

!ENTRY com.genuitec.org.hibernate.eclipse.console 4 4 2006-10-03 09:11:03.415
!MESSAGE Could not parse configuration: D:\tools\java\workspace\label\src\main\java\hibernate.cfg.xml
!STACK 0
org.hibernate.HibernateException: Could not parse configuration: D:\tools\java\workspace\label\src\main\java\hibernate.cfg.xml
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1376)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
   at org.dom4j.io.SAXReader.read(SAXReader.java:484)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   ... 10 more
!SUBENTRY 1 com.genuitec.org.hibernate.eclipse.console 4 150 2006-10-03 09:11:03.415
!MESSAGE org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
!STACK 0
org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
   at org.dom4j.io.SAXReader.read(SAXReader.java:484)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Nested exception:
java.net.ConnectException: Connection timed out: connect
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(Unknown Source)
   at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
   at java.net.PlainSocketImpl.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at sun.net.NetworkClient.doConnect(Unknown Source)
   at sun.net.www.http.HttpClient.openServer(Unknown Source)
   at sun.net.www.http.HttpClient.openServer(Unknown Source)
   at sun.net.www.http.HttpClient.<init>(Unknown Source)
   at sun.net.www.http.HttpClient.New(Unknown Source)
   at sun.net.www.http.HttpClient.New(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
   at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at org.dom4j.io.SAXReader.read(SAXReader.java:465)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
!SUBENTRY 2 com.genuitec.org.hibernate.eclipse.console 4 150 2006-10-03 09:11:03.415
!MESSAGE org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
!STACK 0
org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
   at org.dom4j.io.SAXReader.read(SAXReader.java:484)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Nested exception:
java.net.ConnectException: Connection timed out: connect
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(Unknown Source)
   at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
   at java.net.PlainSocketImpl.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at sun.net.NetworkClient.doConnect(Unknown Source)
   at sun.net.www.http.HttpClient.openServer(Unknown Source)
   at sun.net.www.http.HttpClient.openServer(Unknown Source)
   at sun.net.www.http.HttpClient.<init>(Unknown Source)
   at sun.net.www.http.HttpClient.New(Unknown Source)
   at sun.net.www.http.HttpClient.New(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
   at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
   at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at org.dom4j.io.SAXReader.read(SAXReader.java:465)
   at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)
   at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)
   at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:211)
   at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:158)
   at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:134)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:115)
   at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:120)
   at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:100)
   at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:90)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

!ENTRY com.genuitec.org.hibernate.eclipse.console 1 0 2006-10-03 09:11:03.431
!MESSAGE Could not refresh Hibernate project context com.genuitec.eclipse.hibernate.action.MERefreshCCAction$InProgressException

Support-Brian - Oct 03, 2006 - 11:24 PM
Post subject:
Prescott,

Quote:
3. I have installed the Hibernate plugin, Spring plugin and the Web Tools plugin

Could you be a bit more specific? I assume you're talking about Hibernate Tools from JBoss and Spring from SpringIDE.org? Could you let me know the version numbers of these plugins?
It is quite probable that the Web Tools or Hibernate Tools is interfering with our internal XML catalog and causing the DTDs to be unavailable. (Web Tools + Hibernate Tools + MyEclipse amounts to quite a few overlapped plugins and technology)

Just to help zero in on the problem, can you install only Eclipse and MyEclipse to a new location and see if the HQL editor works then? We are currently trying to replicate this issue and your feedback will help us a great deal.

Quote:
4. I have checked the XML catalog file and it is there in the proper directory. The file size is rounded to 43k in explorer

I assume you are talking about the hibernate-mapping-3.0.dtd file. I was asking about the hibernate-configuration-3.0.dtd file which should be rounded to 3KB in Explorer (2547 bytes to be precise); can you confirm this? From some of the stack traces you posted, this file also seems corrupt. Can you email both files to us at support@myeclipseide.com with subject ATTN Brian?

I appreciate your time and detailed repsonse to my queries,
Best,
Brian.
prescott.travis - Oct 04, 2006 - 04:38 PM
Post subject:
I am unsure how to check the current version of all the plugins...is there a view for that? Here is a list of what I think you might be looking for but it seems to be indicating the myEclipse versions of the plugins...not the version of the plugins themselves. Maybe it will help, though...

<ul>
<li>EMF 2.2.0.v200606271057
<li>SDO 2.2.0.v200606271057
<li>GEF 3.2.0.v20060626
<li>JST 1.5.0.v20060703
<li>Java EMF Model 1.2.0.v20060530_RC2--ZasJzJJez
<li>WST 1.5.0.v20060703
<li>XSD Schema Infoset Model 2.2.0.v200606271057
<li>MyEclipse Bugzilla 5.0.0 Support
<li>MyEclipse Core Tooling Support 5.0.0
<li>MyEclipse Database Support 5.0.1
<li>MyEclipse Help Documentation 5.0.1
<li>MyEclipse Hibernate Support 5.0.0
<li>MyEclipse JSF Support 5.0.0
<li>MyEclipse JSP Design Support 5.0.1
<li>MyEclipse Spring Framework Support 5.0.0
<li>MyEclipse Struts Support 5.0.0
<li>MyEclipse Tapestry / Spindle Support 5.0.0
<li>MyEclipse UML Support 5.0.0
<li>MyEclipse Web Developement Tooling 5.0.1
<li>MyEclipse Web Services Support 5.0.1
</ul>

The hibernate-configuration-3.0.dtd file is there and appears to be the correct size. I emailed that file and the hibernate-mapping-3.0.dtd file to you...


Travis
Support-Brian - Oct 04, 2006 - 07:50 PM
Post subject:
Travis,

Thanks for the detail, but I was more interested in the version of the plugins you have installed besides MyEclipse. Notably Hibernate Tools and Web tools. You can get a rough estimate of the version numbers from Help > About Eclipse SDK > Feature Details and then selecting the appropriate feature.

Besides the version numbers, I really need you to test this in an isolated environment with just MyEclipse and Eclipse installed, and no other plugins. As I mentioned above, MyEclipse, Web Tools and Hibernate Tools will lead to quite a few overlapped plugins and very likely a bad eclipse configuration on the whole.

If you can determine whether the issue is solved for you (or not) in an isolated test environment, we can work towards a more robust solution.

I have not received your DTD files yet, can you please confirm that you sent them to the correct address?

Best regards,
Brian.
prescott.travis - Oct 04, 2006 - 08:32 PM
Post subject:
OK...

There are too many plugins to list all of them. The Web Tools info is:

WST: 1.5.0.v20060703 - version 1.0.1.200608110849

The Hibernate info is:


MyEclipse Hibernate Capabilities v5.0.0
MyEclipse Hibernate Feature v5.0.0
Hibernate Console v5.0.0
Hibernate Core Plugin v5.0.0
Mapper Plug-in v5.0.0


Unfortunately, it doesn't look like I'm able to export the list or I could give it to you as a complete plugin list. Is this even what you're looking for? I got this under 'Feature Details' per your instruction although 'Plugin Details' seemed a bit more intuitive. The list under 'Plugin Details' is very large and there's no way to copy it...as there's no way to copy the stuff under 'Feature Details'.

I would love to help you debug this but I've just been given a few days to evaluate tools and don't really have time to debug that. If there is a way I can get you more information to help you isolate the problem, let me know. Sorry I don't have more time to give...

Travis
Support-Brian - Oct 04, 2006 - 10:39 PM
Post subject:
Travis,

I just needed a rough estimate, which is why I asked for Feature Details and not plugin details; I know what I wanted to know, thanks.

I have a question for you. When you installed Eclipse, did you only add MyEclipse to it or did you install additional tools and plugins from other locations? This is what you mentioned earlier.
Quote:
I have installed the Hibernate plugin, Spring plugin and the Web Tools
. But from the detail you provided it looks like you have only installed MyEclipse? I cannot be sure, but that is what I need to know.

If you are evaluating MyEclipse, I suggest a plain Eclipse + MyEclipse install. We already include Spring, Hibernate and WTP / WST features and plugins, so installing these plugins is not necessary and they would only cause configuration issues, hampering a proper evaluation; we do not support mixed installed either.

If you have installed just MyEclipse, I would suggest you check your downloaded archive for corruption and try restarting eclipse with -clean.
You mention you are connected to the internet directly, is there a proxy server involved?

Thanks for your time,
Brian.
prescott.travis - Oct 05, 2006 - 03:38 PM
Post subject:
Brian,

I installed Eclipse b/c the latest version of myEclipse recommended that I upgrade. I just backed up my existing eclipse directory and installed. The first thing that I did was to install a Borland plugin for StarTeam b/c that's how we connect to our source management tool. Then I installed myEclipse and all the tools that I installed are ones that I think that I've mentioned...Spring, Hibernate, Web-tools, Struts (in that order).

We have used Eclipse for a long time so that's why the Eclipse / myEclipse combo is not preferrable. As for myEclipse, I've been using it at home and I'm working on licensing it for an upcoming project we have coming up

We don't have a proxy server but we do use cache engines, if that matters

Travis
support-rkalla - Oct 05, 2006 - 04:09 PM
Post subject:
Travis,
I think the confusion on Brian's part is he is trying to determine what plugins you have installed *besides* MyEclipse as you've hinted to having other plugins installed ("Spring, Hibernate, web-tools, struts, etc").

The reason Brian wants to know this is because MyEclipse ships *all* this functionality, and if there is some library conflict occuring between MYEclipse and one of these 3rd party products you have installed that could explain why the HQL editor is failing to load.

That being said, this might be a case of simple language miscommunication, when you say installing "Spring, Hibernate, etc." do you mean adding those capabilities to your project using the MyEclipse menu or did you mean actually downloading other plugins from other sites and installing them?

Sorry for how long winded this thread has gotten, it's really important that we are communicating at the same level, otherwise it's much too easy to run off down a tangent for pages only to figure out that we've been talking about the same thing the whole time.
prescott.travis - Oct 05, 2006 - 07:59 PM
Post subject:
Riyad,

No problem...I think I understood where he's headed. I tried to indicate, probably poorly, that I have only installed one other plugin the "old-fashioned" way, if you will. I installed a plugin from Borland that facilitates communication with our source control too which is StarTeam (Borland product). I did install this before I installed myEclipse. After I did that, I installed all of the other tools mentioned (Spring, Hibernate...)

Note that other than the Borland plugin, everything I installed I did using myElcipse menus (usually by right-clicking on the project >> myEclipse >> [too to add].

Travis
support-rkalla - Oct 05, 2006 - 10:00 PM
Post subject:
That is perfect, exactly what we wanted to know. I'll let Brian know.
support-snpe - Oct 09, 2006 - 08:25 AM
Post subject:
Travis,

It is possible that your StarTeam plugin have some xml parser (xerces or something else) which is incompatible with xerces parser from MyEclipse ?
Please , can you try install MyEclipse without StarTeam or disable StarTeam feature plugin (Help-Update-Manage Installation).
This is for testing, of course.

Thanks
Peco
prescott.travis - Oct 09, 2006 - 03:24 PM
Post subject:
Peco, I could disable the StarTeam thing temporarily if you can tell me how to do that. It is actually a client install (install anywhere or some such rather than just an unzip). How do I disable that? I'm not at work today so I can't check. Do you know how to disable a plugin without uninstalling it?
support-snpe - Oct 09, 2006 - 03:42 PM
Post subject:
Travis,

I have seen installation program for StarTeam, but haven't tried installation because it request added software
You can disable some feature with :
Help - Software Updates - Manage Configuration

Find StarTeam feature and click on disable and restart configuration (screenshoot attached)

If StarTeam haven't feature (mostly added plugins have feature) you can't do it and only solution is install eclipse and MyEclipse in separate directory

Can you see if exists plugin with name {SOMETHING}xerces{SOMETHING} in name except org.apache.xerces_2.8.0.xxxx (where xxxx is som enumber/date and it is related with MyEclipse version - 5.0, 5.0.1).
You can check if you have some jars in directory {YOUR_JDK_HOME}/jre/lib/ext - xerces or some xml parser in this directory can break xerces from MyEclipse too

Regards,
Peco
prescott.travis - Oct 09, 2006 - 08:15 PM
Post subject:
Peco,

I have a plugin "org.apache.xerces_4.0.13" in the eclipse directory. I have only these .jar files in the jre/lib/ext directory:

dnsns.jar
localedata.jar
sunjce_provider.jar
sunpkcs11.jar

None of these look like they'd do the things your talking about...

Travis
support-snpe - Oct 09, 2006 - 09:59 PM
Post subject:
Travis,

It is probably problem, because MyEclipse contents xerces 2.8.0 (this is bigger version - it is xerces2 and xerces 4.0.13 is old plugin which was in eclipse before jdk 1.4).I will try find this plugin and check is problem exists for me

Regards,
Peco
support-snpe - Oct 09, 2006 - 11:36 PM
Post subject:
Travis,

I have found xerces version 4.0.13 (in eclipse 2.1.3), but I can't reproduce your case with simple adding plugins
Please, try disable StarTeam feature

Thanks
Peco
prescott.travis - Oct 10, 2006 - 08:03 PM
Post subject:
Peco,
I deactivated the Borland stuff and now I get the following error:

Quote:

A configuration object could not be built, autocomplete and dynamic query translation will be unavailable. Queries cannot be executed.

Reason:
Could not read mappings from resource:
com/label/dao/hibernate/Artist.hbm.xml


The mapping it claims not to read exists, it is in the proper directory and it is currently being read during execution of my jUnit tests. Again, this all happens when I right click on the project >> MyEclipse >> HQL Editor

Travis
support-snpe - Oct 10, 2006 - 09:03 PM
Post subject:
Travis,

Great.This was hard, because we couldn't reproduce

For problem with hbm.xml please try next :

- remove hbm.xml mapping from hibernate.cfg and add it with cfg.xml configuration
editor

This is possible :

- hbm.xml are not in source directory
- hbm.xml are in other project (HQL editor doesn't work with dependency project - this will be possibel in next release)

Thanks
Peco
prescott.travis - Oct 11, 2006 - 02:55 PM
Post subject:
Peco,

I looked and don't see a "cfg.xml configuration editor" and I'm unfamiliar with it.

FYI: I used the generation tool to generate the mapping files in a *different* directory than the source (same project).

Travis
support-snpe - Oct 11, 2006 - 03:17 PM
Post subject:
Travis,

Your hibernate.cfg.xml and all mapping files have to be in source folder

Best
Peco
prescott.travis - Oct 11, 2006 - 03:30 PM
Post subject:
I looked again...my pojos and the mapping files are in a source folder and they actually are in the same packgage. The hibernate.cfg.xml, however, is on the project root. Of all the tools I've tried this is the only one that has complained about anything...and this doesn't seem to be the thing it's complaining about really. Here's what it looks like:

Quote:


[project root] / [src] / hibernate.cfg.xml
[project root] / [src] / ... / [mapping] / AbstractPojo.java
[project root] / [src] / ... / [mapping] / Pojo.java
[project root] / [src] / ... / [mapping] / PojoDAO.java
[project root] / [src] / ... / [mapping] / Pojo.hbm.xml



Travis
support-snpe - Oct 11, 2006 - 03:57 PM
Post subject:
Travis,

Can you send your project to
mailto:support@myeclipseide.com with subject ATTN: support-snpe
I will try reproduce your case

Thanks
Peco
prescott.travis - Oct 11, 2006 - 04:25 PM
Post subject:
I just sent it
support-snpe - Oct 11, 2006 - 05:54 PM
Post subject:
Travis,

I can reproduce your case with broken libraries.However, when I fix broken libraries in classpath (build path) it works fine
Check your build path and remove broken (unexisting) libraries - You have 2 paths to jconn2.jar and strange path for junit.jar

Best
Peco
prescott.travis - Oct 12, 2006 - 01:46 PM
Post subject:
ok...how do I get access to the jUnit library? I had to add it in there manually to get it to compile and run tests. I was sure that there's access to it but I could only figure out how to add it manually.

Travis
support-snpe - Oct 12, 2006 - 02:53 PM
Post subject:
Travis,

You can do it in different way, but it is better that you import jar in project and call 'Add jar' in BuildPath.

Best
Peco
prescott.travis - Oct 12, 2006 - 03:37 PM
Post subject:
Peco,

Ok...import how? I right-click project and select import but that gives me no opportunity that I can see to import a jar file. I guess I'm confused generally about adding to the build path and adding to the classpath. I'm also having an issue deploying b/c the Spring libraries that were added to the project when I added Spring capabilities is not part of the packages that are being deployed to Apache. My .classpath looks like this:

Quote:

<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/test/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="com.genuitec.eclipse.j2eedt.core.J2EE14_CONTAINER"/>
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.hibernate.MYECLIPSE_HIBERNATE3_EXTRAS"/>
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.springframework.MYECLIPSE_SPRING12_DAO"/>
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.springframework.MYECLIPSE_SPRING12_AOP"/>
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.hibernate.MYECLIPSE_HIBERNATE3_CORE"/>
<classpathentry kind="lib" path="lib/mysql-connector-java-3.1.13-bin.jar"/>
<classpathentry kind="lib" path="E:/projects/label/lib/junit.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/antlr.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-beanutils.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-digester.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-fileupload.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-logging.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-validator.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jakarta-oro.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/struts.jar"/>
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.springframework.MYECLIPSE_SPRING12_CORE"/>
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.springframework.MYECLIPSE_SPRING12_WEB"/>
<classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>
</classpath>


It's not deploying any of the .jar files associated wtih the kind="con" types or so it'd seem. It is launching the kind="lib" types.

So, I guess that's two related questions. How do you "import" a package like jUnit and is there something specific I need to do with the framework libraries to get all the packages to deploy without manually putting them into the Apache lib directory...I'm afraid if I do that, I'll have issues similar to what we've been experiencing...

Thanks for your patience.

Travis
support-snpe - Oct 12, 2006 - 07:31 PM
Post subject:
Travis,

Importing files (jars) in project :

- right click on folder where you want import jar (for example lib) and choose Import
- choose file system
- show to directory where is jar
- check jar which you want import
- press finish

Add in build path :
- rigth click on project and choose Properties
- click on Java Build Path page
- choose Libraries tab
- click on 'Add Jars' and show to project's lib directory from previous import


You second problem is related with build path - If you have nonexisting library in build path (like your unit.jar) then deployment fail

Best
Peco
prescott.travis - Oct 12, 2006 - 08:17 PM
Post subject:
Peco,

I think that I've got the issue resolved we've been working on. Thanks for your dedication to my issue.

The second issue below isn't really related to this stuff except that it's classpath stuff. Basically, I added Spring capabilities to my project the usual way and it builds fine. I can run it flawlessly in jUnit tests. When I add the web end of things, though, I find that my deploy isn't deploying properly to Tomcat. I was expecting that by adding these libraries through myEclipse that I would automatically get all of the associated jar files in my deploy area under tomcat. However, none of the "con" entries from the below .classpath file are actually getting deployed. For example, the following is not promoted to the server:

melibrary.com.genuitec.eclipse.springframework.MYECLIPSE_SPRING12_DAO

I suspect that if I added the individual .jar files associated with this library reference for Spring that it would work. However, this whole experience has taught me that I probably ought to use the myEclipse tools to make this happen. That way I can take advantage of the jar management features you guys work hard on. Am I missing something? Why are these jar files not being promoted by the deploy function?

Travis
support-snpe - Oct 12, 2006 - 08:29 PM
Post subject:
Travis,

MyEclipse has preferences which you decide deployments user libraries ('con').It is default on, but if you upgrade from older workspace you can have off.

Check next :

- right click on project and choose Properties
- expand MyEclipse>Web
- choose tab 'Deployment'
- check all checkbox in 'Libraries deployment Policies'

check that your project has not errors (special build path errors)

Regards,
Peco
prescott.travis - Oct 13, 2006 - 03:27 AM
Post subject:
Peco,
*That* is what I needed. I would have expected that to be the default but I'm glad you pointed that out to me. I really appreciate all of your help!
Travis
support-snpe - Oct 13, 2006 - 03:37 AM
Post subject:
Travis,

You are welcome.I'm glad for your success

'Libraries deployment' options are default, but it was off in older MyEclipse and you upgrade old workspace (or old project)

Regards,

Peco
gefwhy@gmail.com - Oct 13, 2006 - 05:04 PM
Post subject:
support-rkalla wrote:
qefwhy,
Was this issue resolved?


rkalla,
I'm sorry to have not responded for so long. I checked the size of the DTD file and it is the size you specified. My issue is still not resolved. I have completely reinstalled Eclipse and then MyEclipse. I haven't added any other plugins at all. I've generated a new project using just the MyEclipse hibernate tools and a very simple MySQL database (2 tables with 2 or 3 fields each). I'm still getting the same error. Is there anything else we can do? Thanks.
support-snpe - Oct 13, 2006 - 06:04 PM
Post subject:
qefwhy,

When you reinstall eclipse and MyEclipse have you use old workspace again ?

Please, can you send your project to mailto:support@myeclipseide.com with subject ATTN : support-snpe

Best
Peco
gefwhy@gmail.com - Oct 13, 2006 - 08:59 PM
Post subject:
I tried it with the old workspace and also a completely new one as well. Same results. I'll email the project now.
support-snpe - Oct 14, 2006 - 12:25 AM
Post subject:
qefwhy,

I have tried your case and it works, but I can imagine 2 scenarios :

1) you haven't permission for reading files in
<MyEclipse_Home>/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_5.0.0/catalog-dtd/hibernate-configuration.dtd

In this case MyEclipse will try connect to internet and if you are disconnected you will got 'org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect '

If you are connected to internet this is not your problem

2) your hibernate-configuration-3.0.dtd from point 1) is wrong (contents some trash - it is enough one character on start of file)

You will got exactly your case from post 5 :

'Error on line 1 of document http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd : The markup declarations contained or pointed to by the document type declaration must be well-formed. Nested exception: The markup declarations contained or pointed to by the document type declaration must be well-formed. '

I am not sure how is it possible, but your unpack sotware is not good, maybe.

what is your OS and please send me your
<MyEclipse_Home>/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_5.0.0/catalog-dtd/hibernate-configuration.dtd

Thanks
Peco
gefwhy@gmail.com - Oct 14, 2006 - 02:46 AM
Post subject:
I'm using windows XP SP2. I'll send the file out to you. I'm not sure what you mean by my unpack software is not good, I used your installer to install MyEclipse. I do have a good internet connection. I purposely tried disabling it to see if it read the version on the hard drive and it gave me the error that it couldn't connect to the internet. It never read the file on disk. When I first had this problem I compared the one on the disk to the one on the internet and they matched. Also, if it's reading the version from the internet and saying it's bad then the version on the hard drive has nothing to do with the error I'm getting. I'm pretty sure the one on the internet isn't bad so the problem has to lie elsewhere.
Thanks again.
support-snpe - Oct 14, 2006 - 05:22 PM
Post subject:
Quote:
I'm not sure what you mean by my unpack software is not good


zip on Windows XP is not reliable, but it is not problem if you check that files in <MyEclipse_Home>/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_5.0.0/catalog-dtd/ are correct (same like on internet)

Please, send me configuration details: MyEclipse>Installation Summary>Installation details and Help>About>Configuration details

Check if you have some libraries in JDK endorsed directory (default is JDK_HOME/lib/endorsed; check JDK_HOME/jre/lib/ext too)

Best
Peco
support-snpe - Oct 17, 2006 - 02:06 AM
Post subject:
gefwhy,

I have seen you hibernate-configuration-3.0.dtd and it is correct

Please check 'libraries in JDK_HOME/lib/endorsed and JDK_HOME/jre/lib/ext - have you some jars in this directory ?
Check double if it JDK which you use for starting eclipse.

Have you some locale settings (-nl or -Duser.language options in starting eclipse; or non-english windows) ?

Thanks
Peco
bobskinner - Oct 18, 2006 - 07:01 PM
Post subject:
Hi

I'm trying the MyEclipse Hibernate Quickstart (the 12 October version), with the only change being that I point it at the Oracle db on our network. I already had the MyEclipse Database Explorer set up and it seems to display all the schemas and tables etc.

When I reach Step 6 and try to open the HQL editor I get this:

"A configuration object could not be built, autocomplete and dynamic query translation will be unavailable. Queries cannot be executed.
Reason:
Could not parse configuration:
C:\eclipse\workspace\HDemo3\src\hibernate.cfg.xml"

That's the correct path.

I've got Eclipse 3.2.0, MyEclipse 5.0, M2
Windows 2000
Java 1.4.2_10
On a network that's not on the internet
No plugins but MyEclipse

hibernate.cfg.xml (I've substituted "xxx" in 2 places):

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration>

<session-factory>
<property name="connection.username">sortdb</property>
<property name="connection.url">
jdbc:oracle:thin:@xxx:1521:xxx
</property>
<property name="dialect">
org.hibernate.dialect.OracleDialect
</property>
<property name="myeclipse.connection.profile">sortdb</property>
<property name="connection.driver_class">
oracle.jdbc.driver.OracleDriver
</property>
<!-- <property name="max_fetch_depth">1</property> -->
<mapping resource="com/induscorp/rskinner/Orglocn.hbm.xml" />

</session-factory>

+</hibernate-configuration>

A colleague with the same setup has gotten the same result.

Thanks for your help; this has been an interesting thread.

Bob Skinner
support-snpe - Oct 18, 2006 - 07:34 PM
Post subject:
Bob,

There are a few problems with searching for hibernate dtd :

- another plugin which adds some xml parser
- wrong contribution in xml catalog
- adding some xml parser in jdk endorsed directroy

We have discovered yet another problem : if you install MyEclipse in a directory with space (or some other non-URI character) you will have problem
I suppose that it is your problem and please send your Myeclipse's install path

We will fix all known issues with hibernate xml parsing in the version 5.0.3

Sorry for the inconvenience caused

Best
Peco
bobskinner - Oct 18, 2006 - 09:16 PM
Post subject:
Peco

I uninstalled and reinstalled, and you were right about the space in the directory name.

Thanks.

Bob Skinner
heypig - Sep 27, 2008 - 05:28 PM
Post subject:
I met the same situation,luckily,I had work out the problem

1.open the project root folder in your workspace
2,open a file named ".myhibernatedata"
3.make sure "configFile=/[Your Project Name]/src/....../hibernate.cfg.xml"
4,save. everything may be ok.

hope it could help you~
KrishnanGanesan - Feb 02, 2009 - 12:00 PM
Post subject:
My configuration is all perfect... Help me please anyone

zhangxin69
I was getting the same hibernate problem.
unable to create session factory for this configuration
my hql editor cannot dynamically generate queries


did u get a solution to it ??
KrishnanGanesan - Feb 02, 2009 - 12:01 PM
Post subject:
zhangxin69

i have the same problem did u get any solution??
manny - Feb 16, 2011 - 04:20 AM
Post subject: A session factory for this configuration
I'm working for almost 2 days now with error below:

Error Building Session Factory

A session factory for this configuration could not be built, dynamic query
translation will be unavailable. Queries cannot be executed.

Reason:
Association references unmapped class:
com. mtcperformance.spiffcentral.framework.data.entity.OrgUnitFunding Setting


But after checking with this error i checked the OrgUnitSettingFunding. on the Mappings of hibernate.cfg.xml and was indeed wasn't there then i add it to mapping and refresh but still the same error shown. Your help would be appreciated. thx .

Emman
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits