Uploaded image for project: 'Seam Persistence'
  1. Seam Persistence
  2. SEAMPERSIST-74

Broken dependency for JBossAS 7.1 and Weld 1.1.3

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Out of Date
    • Affects Version/s: 3.1.0.Beta4
    • Fix Version/s: None
    • Labels:
      None

      Description

      I upgraded my JBossAS installation to Jenkins build 1904 which uses Weld 1.1.3 and get now the stacktrace below.
      The issue can easily be fixed if you add this line to META-INF/MANIFEST.MF in seam-persistence-api-VERSION.jar:
      Dependencies: org.hibernate

      The stacktrace:
      08:04:22,988 INFO [org.jboss.weld.ClassLoading] (MSC service thread 1-4) catching: org.jboss.weld.resources.spi.ResourceLoadingException: Error loading class org.jboss.seam.persistence.hibernate.SeamManagedHibernateSessionCreated
      at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:154) [weld-core-1.1.3.Final.jar:2011-11-09 12:17]
      at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:86) [weld-core-1.1.3.Final.jar:2011-11-09 12:17]
      at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:115) [weld-core-1.1.3.Final.jar:2011-11-09 12:17]
      at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:168) [weld-core-1.1.3.Final.jar:2011-11-09 12:17]
      at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:331) [weld-core-1.1.3.Final.jar:2011-11-09 12:17]
      at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:81) [jboss-as-weld-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
      at org.jboss.as.weld.services.WeldService.start(WeldService.java:89) [jboss-as-weld-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.7.0_01]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.7.0_01]
      at java.lang.Thread.run(Thread.java:722) [:1.7.0_01]
      Caused by: java.lang.NoClassDefFoundError: Lorg/hibernate/Session;
      at java.lang.Class.getDeclaredFields0(Native Method) [:1.7.0_01]
      at java.lang.Class.privateGetDeclaredFields(Class.java:2308) [:1.7.0_01]
      at java.lang.Class.getDeclaredFields(Class.java:1760) [:1.7.0_01]
      at org.jboss.weld.util.reflection.SecureReflections$4.work(SecureReflections.java:102) [weld-core-1.1.3.Final.jar:2011-11-09 12:17]
      at org.jboss.weld.util.reflection.SecureReflections$4.work(SecureReflections.java:99) [weld-core-1.1.3.Final.jar:2011-11-09 12:17]
      at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.3.Final.jar:2011-11-09 12:17]
      at org.jboss.weld.util.reflection.SecureReflectionAccess.runAndWrap(SecureReflectionAccess.java:63) [weld-core-1.1.3.Final.jar:2011-11-09 12:17]
      at org.jboss.weld.util.reflection.SecureReflections.getDeclaredFields(SecureReflections.java:99) [weld-core-1.1.3.Final.jar:2011-11-09 12:17]
      at org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:153) [weld-core-1.1.3.Final.jar:2011-11-09 12:17]
      at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:118) [weld-core-1.1.3.Final.jar:2011-11-09 12:17]
      at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:48) [weld-core-1.1.3.Final.jar:2011-11-09 12:17]
      at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:39) [weld-core-1.1.3.Final.jar:2011-11-09 12:17]
      at com.google.common.collect.ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:355) [guava-10.0-rc1.jar:]
      at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:184) [guava-10.0-rc1.jar:]
      at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:153) [guava-10.0-rc1.jar:]
      at com.google.common.collect.ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:69) [guava-10.0-rc1.jar:]
      at com.google.common.collect.ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:393) [guava-10.0-rc1.jar:]
      at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:151) [weld-core-1.1.3.Final.jar:2011-11-09 12:17]
      ... 11 more
      Caused by: java.lang.ClassNotFoundException: org.hibernate.Session from [Module "deployment.swe.ear.sweWeb.war:main" from Service Module Loader]
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:471)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:421)
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:143)
      ... 29 more

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            juergen.zimmermann Juergen Zimmermann
            Archiver:
            samahaja Sagar Mahajan

              Dates

              Created:
              Updated:
              Resolved:
              Archived: