facebook

MySQL 5.5M1 Hiberntae Reverse Eng troubles

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

    mogarick
    Member

    Hi,

    Im using MyEclipse 5.5 M1 and I’m having serious problems with the hibernate reverse engineering from DB.

    Many times i get errors but some times i can generate the files without a trouble. I’ve spent many hours trying to find a common pattern for the problem without luck.

    The 2 most common errors I’m getting are:

    (1)
    ————————————————————————————————————————-
    !MESSAGE An internal error occurred during: “Generating Artifacts”.
    !STACK 0
    java.lang.NoClassDefFoundError
    at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:145)
    at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:56)
    at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:134)
    at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:111)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.buildConfiguration(GenerateArtifactsJob.java:575)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:324)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
    ————————————————————————————————————————-

    (2)
    ———————————————————————————————————————
    !ENTRY org.eclipse.core.jobs 4 2 2007-02-25 10:28:03.156
    !MESSAGE An internal error occurred during: “Generating Artifacts”.
    !STACK 0
    org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of ‘org.apache.commons.logging.Log’ visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of ‘org.apache.commons.logging.Log’ visible, which is not allowed.) (Caused by org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of ‘org.apache.commons.logging.Log’ visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of ‘org.apache.commons.logging.Log’ visible, which is not allowed.))
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
    at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.<init>(AbstractMetaDataDialect.java:24)
    at org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.<init>(JDBCMetaDataDialect.java:18)
    at org.hibernate.cfg.JDBCReaderFactory.newMetaDataDialect(JDBCReaderFactory.java:35)
    at com.genuitec.eclipse.hibernate.wizards.MEJDBCMetaDataConfiguration$1.readDatabaseSchema(MEJDBCMetaDataConfiguration.java:88)
    at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:89)
    at com.genuitec.eclipse.hibernate.wizards.MEJDBCMetaDataConfiguration.readFromJDBC(MEJDBCMetaDataConfiguration.java:137)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$7.execute(GenerateArtifactsJob.java:605)
    at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:56)
    at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:89)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.buildConfiguration(GenerateArtifactsJob.java:589)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:324)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
    Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of ‘org.apache.commons.logging.Log’ visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of ‘org.apache.commons.logging.Log’ visible, which is not allowed.)
    at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
    … 15 more
    Caused by: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of ‘org.apache.commons.logging.Log’ visible, which is not allowed.
    at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:385)
    … 16 more
    ————————————————————————————————————————–

    I don’t get these errors at the same time.

    I’m using MyEclipse 5.5M1, SpringIDE 2.0.0.v200701250610 and Subclipse 1.2

    Hope you can help me

    #266638 Reply

    Haris Peco
    Member

    Your version of spring-ide requires eclipse 3.3M4 and wtp 2.0M4. This is not compatible with MyEclipse 5.5M1 (requires eclipse 3.2.1-3.2.2, patched wtp 1.5.3).

    Try disabling it or remove the Spring-IDE feature

    Regards,

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: MySQL 5.5M1 Hiberntae Reverse Eng troubles

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