1 Reply Latest reply on Apr 1, 2007 10:15 AM by mgrouch

    javassist.CannotCompileException: duplicate method: createIn

    mgrouch Expert

      I get this exception with seam app running on weblogic 9.1
      when I click on some links. the app works fine under JBoss.

      Any ideas?
      Thanks a lot


      javax.el.ELException: /Status.xhtml: Could not instantiate Seam component: statusHome
      at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:50)
      at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
      at org.jboss.seam.ui.JSF.renderChild(JSF.java:171)
      at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
      at org.jboss.seam.ui.UIDecorate.encodeChildren(UIDecorate.java:234)
      at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:282)
      at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
      at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:189)
      at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:184)
      at org.ajax4jsf.framework.renderer.RendererBase.encodeChildren(RendererBase.java:121)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:244)
      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
      at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
      at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
      at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
      at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
      at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3151)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
      Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: pmdbFailStatusHome
      at org.jboss.seam.Component.newInstance(Component.java:1740)
      at org.jboss.seam.Component.getInstance(Component.java:1643)
      at org.jboss.seam.Component.getInstance(Component.java:1610)
      at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:53)
      at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
      at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
      at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:73)
      at com.sun.el.parser.AstValue.getValue(AstValue.java:114)
      at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:195)
      at com.sun.facelets.el.ELText$ELTextVariable.writeText(ELText.java:184)
      at com.sun.facelets.el.ELText$ELTextComposite.writeText(ELText.java:108)
      at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:45)
      ... 44 more
      Caused by: java.lang.RuntimeException: duplicate method: createInstance
      at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:173)
      at org.jboss.seam.Component.createProxyFactory(Component.java:1979)
      at org.jboss.seam.Component.getProxyFactory(Component.java:1154)
      at org.jboss.seam.Component.wrap(Component.java:1145)
      at org.jboss.seam.Component.instantiateJavaBean(Component.java:1134)
      at org.jboss.seam.Component.instantiate(Component.java:1088)
      at org.jboss.seam.Component.newInstance(Component.java:1736)
      ... 55 more
      Caused by: javassist.CannotCompileException: duplicate method: createInstance
      at javassist.bytecode.ClassFile.testExistingMethod(ClassFile.java:544)
      at javassist.bytecode.ClassFile.addMethod(ClassFile.java:528)
      at javassist.util.proxy.ProxyFactory.override(ProxyFactory.java:373)
      at javassist.util.proxy.ProxyFactory.overrideMethods(ProxyFactory.java:349)
      at javassist.util.proxy.ProxyFactory.make(ProxyFactory.java:277)
      at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:164)
      ... 61 more