[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1088) Custom ReverseEngineeringStrategy class not loaded in Eclipse 3.4 Ganymede when project uses JDK 6

Rich Taylor (JIRA) noreply at atlassian.com
Fri Sep 19 12:40:04 EDT 2008


Custom ReverseEngineeringStrategy class not loaded in Eclipse 3.4 Ganymede when project uses JDK 6
--------------------------------------------------------------------------------------------------

                 Key: HBX-1088
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1088
             Project: Hibernate Tools
          Issue Type: Bug
          Components: reverse-engineer
    Affects Versions: 3.2.2
         Environment: Hibernate Tools 3.2.2 Nightly from 9/10/2008 
OSX Leopard 10.5.4
Eclipse 3.4 Ganymede
Eclipse Project: WTP 3.0 EJB Project, set to use Java 6
Java 1.6.0_05-b13-52 64bit (Mac OSX)
MySQl 5.1.26 
            Reporter: Rich Taylor
            Priority: Minor


When trying to execute a hibernate tools generation in Eclipse Ganymede with a custom ReverseEngineeringStrategy class, the class cannot be found by hibernate tools.   I only get this error when the project is set to use JDK 6.  If I lower it to JDK 5 the issue goes away.    Here is the resulting stack trace when executing the generation:

org.hibernate.console.HibernateConsoleRuntimeException: Could not create or find com.mycompany.hibernate.SimpleCustomReverseEngineeringStrategy with one argument delegate constructor
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.loadreverseEngineeringStrategy(CodeGenerationLaunchDelegate.java:358)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.access$0(CodeGenerationLaunchDelegate.java:339)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate$2.execute(CodeGenerationLaunchDelegate.java:303)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
   at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:93)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.buildConfiguration(CodeGenerationLaunchDelegate.java:283)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.runExporters(CodeGenerationLaunchDelegate.java:216)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:136)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:764)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:614)
   at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:880)
   at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:966)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.lang.ClassNotFoundException: com.mycompany.hibernate.SimpleCustomReverseEngineeringStrategy
   at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481)
   at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
   at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
   at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:164)
   at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.loadreverseEngineeringStrategy(CodeGenerationLaunchDelegate.java:341)
   ... 12 more
!SUBENTRY 1 org.hibernate.eclipse.console 4 666 2008-09-10 15:02:02.570
!MESSAGE java.lang.ClassNotFoundException: com.mycompany.hibernate.SimpleCustomReverseEngineeringStrategy
!STACK 0
java.lang.ClassNotFoundException: com.mycompany.hibernate.SimpleCustomReverseEngineeringStrategy
   at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481)
   at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
   at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
   at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:164)
   at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.loadreverseEngineeringStrategy(CodeGenerationLaunchDelegate.java:341)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.access$0(CodeGenerationLaunchDelegate.java:339)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate$2.execute(CodeGenerationLaunchDelegate.java:303)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
   at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:93)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.buildConfiguration(CodeGenerationLaunchDelegate.java:283)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.runExporters(CodeGenerationLaunchDelegate.java:216)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:136)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:764)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:614)
   at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:880)
   at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:966)
   at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) 

See here for more information:
http://forum.hibernate.org/viewtopic.php?p=2395107#2395107

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list