- This topic has 28 replies, 7 voices, and was last updated 18 years, 9 months ago by
Haris Peco.
-
AuthorPosts
-
rajapkpMemberHi I have installed MyEclipse 4.1 running on Eclipse 3.1
I am trying out the Hibernate Project and I am getting the following error. I have the database explorer setup and able to connect. I am using Oralce Dialect.
Pleae my hibernate config file. Please note that I am trying to use a local DTD because I am not sure if My eclipse can connect to hibernate.sourceforge.net/hibernate-configuration-3.0.dtd as it might require proxy settings.Also I see error
ERROR Worker-66 org.hibernate.util.XMLHelper – Error parsing XML: C:\development\eclipse\workspace\Hib\src\hibernate.cfg.xml(4) External entity not found: “file://c:/temp/hibernate-configuration-3.0.dtd”.<?xml version=’1.0′ encoding=’UTF-8′?>
<!DOCTYPE hibernate-configuration PUBLIC
“-//Hibernate/Hibernate Configuration DTD 3.0//EN”
“file://c:/temp/hibernate-configuration-3.0.dtd”><!– Generated by MyEclipse Hibernate Tools. –>
<hibernate-configuration><session-factory>
<property name=”connection.username”>checklist_app</property>
<property name=”connection.url”>jdbc:oracle:thin:@oradev:1523:ELLIS</property>
<property name=”dialect”>org.hibernate.dialect.OracleDialect</property>
<property name=”myeclipse.connection.profile”>ellis</property>
<property name=”connection.password”>checklist_app</property>
<property name=”connection.driver_class”>oracle.jdbc.driver.OracleDriver</property></session-factory>
</hibernate-configuration>
org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:57)
at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39)
at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:378)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:110)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1877)
at com.genuitec.eclipse.hibernate.wizards.MEJDBCMetaDataConfiguration.readFromJDBC(MEJDBCMetaDataConfiguration.java:71)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$5.execute(GenerateArtifactsJob.java:405)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:68)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.buildConfiguration(GenerateArtifactsJob.java:400)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:266)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
Riyad KallaMemberDid you add hibernate capabilities to this project? When you ran through the wizard did you setup the dialect for the wizard correctly? The error looks fairly straight forward…
rajapkpMemberThis message has not been recovered.
Riyad KallaMemberThis message has not been recovered.
rajapkpMemberThis message has not been recovered.
Riyad KallaMemberThis message has not been recovered.
rajapkpMemberThis message has not been recovered.
rajapkpMemberThis message has not been recovered.
rajapkpMemberThis message has not been recovered.
Haris PecoMemberThis message has not been recovered.
rajapkpMemberThis message has not been recovered.
Brian FernandesModeratorThis message has not been recovered.
Haris PecoMemberThis message has not been recovered.
rajapkpMemberThis message has not been recovered.
rajapkpMemberThis message has not been recovered.
-
AuthorPosts