facebook

Problem creating Hibernate Mapping

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #246520 Reply

    kalyanic
    Member

    I 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 SDK

    Version: 3.1.2
    Build id: M20060118-1600

    (c) Copyright Eclipse contributors and others 2000, 2005. All rights reserved.
    Visit http://www.eclipse.org/platform

    This 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 Workbench

    Version: 4.1.0 GA
    Build id: 20060122-4.1-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Platform

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse RCP

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Java Development Tools

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Plug-in Development Environment

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Project SDK

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse 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

    #246523 Reply

    kalyanic
    Member

    Additional 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 more

    Looked at the project properties and the pg73jdbc3.jar is listed in the libraries section. So, still clueless regarding why the problem.

    #246527 Reply

    Haris Peco
    Member

    kalyanic,

    try with newer jdbc driver – try seek last for your database
    this is link http://jdbc.postgresql.org/download.html

    what is your postgresql version ?

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Problem creating Hibernate Mapping

You must be logged in to post in the forum log in