- This topic has 2 replies, 2 voices, and was last updated 18 years, 8 months ago by Haris Peco.
-
AuthorPosts
-
kalyanicMemberI am getting the following error when trying to create hibernate mappings for a table:
“An internal error occurred during: “Generating Artifacts””Looking at a previous post related to this I uninstalled MyEclipse and eclipse. Downloaded the 3.1.2 version of eclipse and installed it. Downloaded the MyEclipse 4.1.0 GA and installed it. Created a new workspace, a new project and I am still getting the error.
I have set up the driver (for postgresql) using project->preferences->drivers and when I enable my project with Hibernate capabilitites the hibernate.hbm.xml file is created fine. I am seeing the problem when I open the MyEclipse Database Explorer, opena connetion to the databasse, right click on a table to create hibernate mapping.
I am really at a loss on why this is happening as it has worked great with earlier versions of MyEclipse and eclipse. Any help with this would be greatly appreciated.
Here is my eclipse and MyEclipse information:
——-
Eclipse SDKVersion: 3.1.2
Build id: M20060118-1600(c) Copyright Eclipse contributors and others 2000, 2005. All rights reserved.
Visit http://www.eclipse.org/platformThis product includes software developed by the
Apache Software Foundation http://www.apache.org/——-
*** Date: Fri Feb 10 09:02:14 CST 2006*** System properties:
OS=Windows2000
OS version=5.0
Java version=1.5.0_02*** MyEclipse details:
MyEclipse Enterprise WorkbenchVersion: 4.1.0 GA
Build id: 20060122-4.1-GA*** Eclipse details:
Eclipse SDKVersion: 3.1.2
Build id: M20060118-1600Eclipse Platform
Version: 3.1.2
Build id: M20060118-1600Eclipse RCP
Version: 3.1.2
Build id: M20060118-1600Eclipse Java Development Tools
Version: 3.1.2
Build id: M20060118-1600Eclipse Plug-in Development Environment
Version: 3.1.2
Build id: M20060118-1600Eclipse Project SDK
Version: 3.1.2
Build id: M20060118-1600Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
C:\Program Files\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
e96c_48
-vm
C:\Java\jdk1.5.0_02\bin\javaw.exe
kalyanicMemberAdditional info:
The error log shows the following:
org.hibernate.console.HibernateConsoleRuntimeException: Problems while loading database driverclass (org.postgresql.Driver)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver(ConsoleConfiguration.java:234)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$5.execute(GenerateArtifactsJob.java:392)
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:388)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:255)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
Caused by: java.lang.ClassNotFoundException: org.postgresql.Driver
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:108)
at org.hibernate.console.ConsoleConfiguration.registerFakeDriver(ConsoleConfiguration.java:226)
… 6 moreLooked at the project properties and the pg73jdbc3.jar is listed in the libraries section. So, still clueless regarding why the problem.
Haris PecoMemberkalyanic,
try with newer jdbc driver – try seek last for your database
this is link http://jdbc.postgresql.org/download.htmlwhat is your postgresql version ?
Thanks
-
AuthorPosts