3 Replies Latest reply on Aug 29, 2013 4:31 AM by alixey

    Seam 2.3 and glassfish v3

    alixey

      Hello, i try to deploy seam example "booking" on glassfish-3.1.2.2, but i get follow error:

       

      java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.LinkageError: loader constraint violation: when resolving method "javassist.util.proxy.FactoryHelper.toClass(Ljavassist/bytecode/ClassFile;Ljava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class;" the class loader (instance of org/glassfish/javaee/full/deployment/EarClassLoader) of the current class, org/jboss/seam/util/ProxyFactory, and the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) for resolved class, javassist/util/proxy/FactoryHelper, have different Class objects for the type javassist/bytecode/ClassFile used in the signature. Please see server.log for more details.

       

      Help me, please.

        • 1. Re: Seam 2.3 and glassfish v3
          netkiss.li

          I encountered with this problem.

          • 2. Re: Seam 2.3 and glassfish v3
            alixey

            I try to use another OSGi framework for glassfish - eclipse Equinox. But i get similar error:

            Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.LinkageError: loader constraint violation: when resolving method "javassist.util.proxy.FactoryHelper.toClass(Ljavassist/bytecode/ClassFile;Ljava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class;" the class loader (instance of org/glassfish/javaee/full/deployment/EarClassLoader) of the current class, org/jboss/seam/util/ProxyFactory, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved class, javassist/util/proxy/FactoryHelper, have different Class objects for the type lassFile;Ljava/lang/ClassLoader;Ljava/security/ProtectionDomain;)Ljava/lang/Class; used in the signature. Please see server.log for more details.        

            • 3. Re: Seam 2.3 and glassfish v3
              alixey

              I found a solution:

              1) Stop glassfish

              2) Go to [glassfish3-folder]/glassfish/modules/weld-osgi-bundle.jar and REMOVE from this archive folder "javassist"

              3) Copy javassist.jar from Seam 2.3 libs to [glassfish3-folder]/glassfish/lib/

              4) Start glassfish

              5) Deploy Seam 2.3 example and enjoy