Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5548

Hibernate with Spring-ORM cannot load an application's entity class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • jboss-fuse-6.2.1
    • Hibernate
    • None
    • % %
    • Hide

      features:install cxf-rs-security-oauth2
      features:install hibernate
      features:install spring-jdbc
      features:install spring-orm
      install -s wrap:mvn:com.microsoft.sqlserver/sqljdbc4/4.0
      install -s mvn:com.example.it.sample.oauth2/sample-oauth/1.0-SNAPSHOT

      Show
      features:install cxf-rs-security-oauth2 features:install hibernate features:install spring-jdbc features:install spring-orm install -s wrap:mvn:com.microsoft.sqlserver/sqljdbc4/4.0 install -s mvn:com.example.it.sample.oauth2/sample-oauth/1.0-SNAPSHOT

    Description

      Tracking ENTESB-2223.
      It seems that the issue still persist in fuse 6.2.1 with the following exception:

      Caused by: java.lang.ClassNotFoundException: com.example.it.sample.oauth.entity.AccessTokens not found by org.hibernate.core [279]
      	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1556)
      	at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:77)
      	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1993)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:270)
      	at org.hibernate.annotations.common.util.ReflectHelper.classForName(ReflectHelper.java:60)
      	at org.hibernate.annotations.common.reflection.java.JavaReflectionManager.classForName(JavaReflectionManager.java:138)
      	at org.hibernate.cfg.BinderHelper.getPropertyOverriddenByMapperOrMapsId(BinderHelper.java:812)
      	... 27 more
      

      testcase attached.

      Attachments

        Activity

          People

            pantinor@redhat.com Paolo Antinori
            hooman_b2455 Hooman Broujerdi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: