0 Replies Latest reply on Sep 22, 2010 12:03 PM by he youlin

    Problem with org.jboss.seam.util.ProxyFactory

    he youlin Novice
      Hi,guys
      
      Recently my project needs to be moved to glassfish v3.1. I modified some of seam 2.2.1 snapshot of the source code, the hibernate validation replaced jsr303, remove the richfaces dependency, EJB3.0 replaced with EJB3.1.
      I test on glassfish3.1 with:
       hibernate 3.6 beta4, Mojarra jsf2.1 snapshot, primefaces2.2 rc1 snapshot.
      
      But following error:
      Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoader) previously initiated loading for a different type with name "javassist/bytecode/ClassFile"
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
              at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1829)
              at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716)
              at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
              at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
              at javassist.util.proxy.FactoryHelper.toBytecode(FactoryHelper.java:190)
              at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:149)
              at org.jboss.seam.util.ProxyFactory.createClass3(ProxyFactory.java:350)
              at org.jboss.seam.util.ProxyFactory.createClass2(ProxyFactory.java:325)
              at org.jboss.seam.util.ProxyFactory.createClass(ProxyFactory.java:284)
              at org.jboss.seam.Component.createProxyFactory(Component.java:2452)
              at org.jboss.seam.Component.getProxyFactory(Component.java:1516)
              at org.jboss.seam.Component.wrap(Component.java:1507)
              at org.jboss.seam.Component.instantiateJavaBean(Component.java:1445)
              at org.jboss.seam.Component.instantiate(Component.java:1362)
              at org.jboss.seam.Component.newInstance(Component.java:2148)
              at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
              at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
              at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:143)
              at org.jboss.seam.init.Initialization.init(Initialization.java:747)
              at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
              at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4703)
              at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:533)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:5323)
      
      
      So i change org.jboss.seam.util.ProxyFactory to javassist.util.proxy.ProxyFactory of javassist 3.12.0.GA and it work fine.
      
      
      My question is what adverse effects will occur when i do the changing.
      
      Have any suggestions?