1 Reply Latest reply on Jun 21, 2011 4:59 AM by lightguard

    Seam2 app running on GlassFish 3.1

    mikebgx

      Hello folks,


      I'm having trouble running a Seam2 app under GlassFish 3.1
      I can get it to deploy (had to add several jars to deployed-jars-war.list) But when I browse to it I get this:


      Faces Servlet threw exception
      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/web/loader/WebappClassLoader) of the current class, org/jboss/seam/util/ProxyFactory,
      and the class loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5)
      for resolved class, javassist/util/proxy/FactoryHelper,
      have different Class objects for the type javassist/bytecode/ClassFile used in the signature


      Any ideas please?

        • 1. Re: Seam2 app running on GlassFish 3.1
          lightguard

          First, you're in the wrong forum, this should be asked in the Seam2 forum.


          What I think you're seeing is javassist being bled from the weld-osgi version shipped with Glassfish 3, you could update it (see the Compatibility link on the left for steps to update weld in glassfish) and see if things are better.