- This topic has 61 replies, 11 voices, and was last updated 13 years, 9 months ago by manny.
-
AuthorPosts
-
Haris PecoMemberTravis,
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.travisMemberPeco,
*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
Haris PecoMemberTravis,
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.comParticipant@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.
Haris PecoMemberqefwhy,
When you reinstall eclipse and MyEclipse have you use old workspace again ?
Please, can you send your project to mailto:support@genuitec.com with subject ATTN : support-snpe
Best
Peco
gefwhy@gmail.comParticipantI tried it with the old workspace and also a completely new one as well. Same results. I’ll email the project now.
Haris PecoMemberqefwhy,
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.dtdIn 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.dtdThanks
Peco
gefwhy@gmail.comParticipantI’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.
Haris PecoMemberI’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
Haris PecoMembergefwhy,
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
Bob SkinnerMemberHi
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 MyEclipsehibernate.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
Haris PecoMemberBob,
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 directroyWe 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 pathWe will fix all known issues with hibernate xml parsing in the version 5.0.3
Sorry for the inconvenience caused
Best
Peco
Bob SkinnerMemberPeco
I uninstalled and reinstalled, and you were right about the space in the directory name.
Thanks.
Bob Skinner
heypigMemberI 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~
KrishnanGanesanMemberMy 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 queriesdid u get a solution to it ??
-
AuthorPosts