java.lang.ClassNotFoundException: com.noi.momentary.model.ConnectRequest

Hibernate JIRA | Clay Graham | 7 years ago
  1. 0

    I know this is a problem that many newbies trip on, and I have spent many hours researching this before filing a bug. Saying that after 20 years of windoze use I just bought a new Mac Book pro, which I love, and I am trying to get my development environment together. I use the maven2 plugin from sonotype, the subversion plugin, the tomcat plugin, and >the hibernate plugin< as my core development platform (JDK 1.6) with eclipse. Version: 3.2.4.GA-R200905070146-H18 The only problem I have had is with the Hibernate Tools plugin. Specifically the classpath for the project cannot be found when attempting to rebuild the configuration: Error Sat Jun 06 14:08:00 PDT 2009 java.lang.ClassNotFoundException: com.noi.momentary.model.ConnectRequest java.lang.ClassNotFoundException: com.noi.momentary.model.ConnectRequest at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:483) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387) 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.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:70) at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:276) at org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:401) at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:334) at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:273) at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:144) at org.hibernate.cfg.Configuration.add(Configuration.java:669) at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:483) at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:277) at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115) at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter$1.execute(ConsoleConfigurationWorkbenchAdapter.java:45) at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:94) at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:41) at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:99) at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:105) at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) So I have tried a *bunch* of things to resolve this (attached images) 1. make sure the project (default) classpath is in the configuration 2. make sure a jar, which is built, is in the configuration 3. make sure the maven build target class dir is in the configration no matter what I have tried it always comes back the same, the class path cannot be found which is necessary for the configuration to bind to the database. here is one interesting detail: I have exported the configuration file (attached) and there seems to be some XML encoded entries in the file. This seems different than most XML configuration files I have seen before. I would love a fix for this. I love this tool. I am happy to provide more information if its helpful.

    Hibernate JIRA | 7 years ago | Clay Graham
    java.lang.ClassNotFoundException: com.noi.momentary.model.ConnectRequest
  2. 0

    I know this is a problem that many newbies trip on, and I have spent many hours researching this before filing a bug. Saying that after 20 years of windoze use I just bought a new Mac Book pro, which I love, and I am trying to get my development environment together. I use the maven2 plugin from sonotype, the subversion plugin, the tomcat plugin, and >the hibernate plugin< as my core development platform (JDK 1.6) with eclipse. Version: 3.2.4.GA-R200905070146-H18 The only problem I have had is with the Hibernate Tools plugin. Specifically the classpath for the project cannot be found when attempting to rebuild the configuration: Error Sat Jun 06 14:08:00 PDT 2009 java.lang.ClassNotFoundException: com.noi.momentary.model.ConnectRequest java.lang.ClassNotFoundException: com.noi.momentary.model.ConnectRequest at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:483) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387) 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.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:70) at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:276) at org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:401) at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:334) at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:273) at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:144) at org.hibernate.cfg.Configuration.add(Configuration.java:669) at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:483) at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:277) at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115) at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter$1.execute(ConsoleConfigurationWorkbenchAdapter.java:45) at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64) at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:94) at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:41) at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:99) at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:105) at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) So I have tried a *bunch* of things to resolve this (attached images) 1. make sure the project (default) classpath is in the configuration 2. make sure a jar, which is built, is in the configuration 3. make sure the maven build target class dir is in the configration no matter what I have tried it always comes back the same, the class path cannot be found which is necessary for the configuration to bind to the database. here is one interesting detail: I have exported the configuration file (attached) and there seems to be some XML encoded entries in the file. This seems different than most XML configuration files I have seen before. I would love a fix for this. I love this tool. I am happy to provide more information if its helpful.

    Hibernate JIRA | 7 years ago | Clay Graham
    java.lang.ClassNotFoundException: com.noi.momentary.model.ConnectRequest
  3. 0

    Re: [higgins-dev] RCP Identity Selector 1.0

    eclipse.org | 3 months ago
    java.lang.ClassNotFoundException: org.eclipse.higgins.sts.server.trust.SecurityTokenServiceFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    XMind Pro in a MAC OS (Leopard)

    Google Groups | 8 years ago | aribe...@gmail.com
    java.lang.ClassNotFoundException: org.xmind.ui.carbon.OpenDocumentHook
  6. 0

    Eclipse plugin: Trying to load JDBC Driver via Class.forName("...")

    Google Groups | 1 decade ago | georg....@gmail.com
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassNotFoundException

      com.noi.momentary.model.ConnectRequest

      at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal()
    2. Eclipse OSGi
      DefaultClassLoader.loadClass
      1. org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:483)
      2. org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
      3. org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)
      4. org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
      4 frames
    3. Java RT
      Class.forName
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      2. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
      3. java.lang.Class.forName0(Native Method)
      4. java.lang.Class.forName(Class.java:164)
      4 frames
    4. Hibernate
      ReflectHelper.reflectedPropertyClass
      1. org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
      2. org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:70)
      2 frames
    5. Hibernate
      Configuration.buildMappings
      1. org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:276)
      2. org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:401)
      3. org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:334)
      4. org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:273)
      5. org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:144)
      6. org.hibernate.cfg.Configuration.add(Configuration.java:669)
      7. org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:483)
      8. org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:277)
      9. org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)
      9 frames
    6. org.hibernate.eclipse
      ConsoleConfigurationWorkbenchAdapter$1.execute
      1. org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter$1.execute(ConsoleConfigurationWorkbenchAdapter.java:45)
      1 frame
    7. org.hibernate.console
      ConsoleConfiguration.execute
      1. org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
      2. org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:94)
      2 frames
    8. org.hibernate.eclipse
      BasicWorkbenchAdapter.fetchDeferredChildren
      1. org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:41)
      2. org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:99)
      3. org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:105)
      3 frames
    9. Workbench
      DeferredTreeContentManager$1.run
      1. org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
      1 frame
    10. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      1 frame