9 Replies Latest reply on Aug 3, 2011 7:13 AM by Marcos Antonio

    Weld, as always, gets in the way

    Marcos Antonio Novice

      - JBoss 7.1.0.Alpha1-SNAPSHOT (downloaded from https://ci.jboss.org/jenkins/view/JBoss%20AS/job/JBoss-AS-7.0.x/)
      - Java 6 Update 26
      - JBoss Tools 3.3.0.M2

       

      Hello, everybody!

       

      First I had this problem with Weld:

       

      http://seamframework.org/Community/JBoss6M2WELD000702UnableToFindBeanManagerForOrgapachecatalinacoreApplicationContextFacadeb8c4f5
      https://issues.jboss.org/browse/JBAS-8297

       

      Notice that this last issue took more than one year to get solved in JBoss. Others application servers solved it more quickly.

       

      Now I have this one, with JBoss AS 7:

       

      This is the structure of my EAR archive:

       

      scdh.ear

        scdh-web.war

        scdh-ejb.jar (ejb module)

        scdh-dao-impl.jar (ejb module)

        lib/scdh-modelo.jar (entity classes, @Local interfaces for EJBs, persistence.xml)

        lib/scdh-dao.jar

        lib/urca.jar (utility)

        lib/commons-codec.1.3.jar (utility)

       

      I have these classes in scdh-modelo.jar:

       

      IGerenciadorCadastro.java

       

      package br.urca.scdh;

       

      public interface IGerenciadorCadastro<T, C extends Number>
      {
          T criar();
      }

       

      IGerenciadorCadastroArquivo.java

       

      package br.urca.scdh;

       

      import javax.ejb.Local;

       

      @Local
      public interface IGerenciadorCadastroArquivo extends IGerenciadorCadastro<Arquivo, Short>
      {
          Arquivo criar();
      }

       

      These classes in scdh-ejb.jar:

       

      GerenciadorCadastroBase.java

       

      package br.urca.scdh.ejb;

       

      import java.lang.reflect.ParameterizedType;

      import br.urca.scdh.IGerenciadorCadastro;

       

      abstract class GerenciadorCadastroBase<T, C extends Number> implements IGerenciadorCadastro<T, C>
      {
          @Override
          public T criar()
          {
              try
              {
                  @SuppressWarnings("unchecked")
                  Class<T> classe = (Class<T>) ((ParameterizedType) getClass().
                      getGenericSuperclass()).getActualTypeArguments()[0];
                  return classe.newInstance();
              }
              catch (InstantiationException ex)
              {
                  throw new RuntimeException(ex);
              }
              catch (IllegalAccessException ex)
              {
                  throw new RuntimeException(ex);
              }
          }
      }

       

      GerenciadorCadastroArquivoBean.java

       

      package br.urca.scdh.ejb;

       

      import javax.ejb.Stateless;

       

      import br.urca.scdh.Arquivo;
      import br.urca.scdh.IGerenciadorCadastroArquivo;

       

      @Stateless
      public class GerenciadorCadastroArquivoBean extends GerenciadorCadastroBase<Arquivo, Short> implements IGerenciadorCadastroArquivo
      {
          @Override
          public Arquivo criar()
          {
              return super.criar();
          }
      }

       

      Theses class in scdh-web.war:

       

      Cadastro.java

       

      package br.urca.scdh.web;

       

      import java.io.Serializable;

       

      import javax.enterprise.context.spi.CreationalContext;
      import javax.enterprise.inject.spi.Bean;
      import javax.enterprise.inject.spi.BeanManager;
      import javax.faces.FacesException;
      import javax.faces.event.ValueChangeEvent;
      import javax.naming.InitialContext;
      import javax.naming.NamingException;

       

      import br.urca.scdh.IGerenciadorCadastro;

       

      public abstract class Cadastro<T, C extends Number> implements Serializable
      {
          private static final long serialVersionUID = 4507343831290246569L;

          private T _entidade;
          private C _chave;
          private EstadoDados _estadoDados = EstadoDados.CONSULTA;
          private boolean _entidadeExistente;
          private IGerenciadorCadastro<T, C> _gerenciador;

          public Cadastro()
          {
              _entidade = getGerenciador().criar();
          }

       

          // Getters, setters, and more methods...

          private IGerenciadorCadastro<T, C> getGerenciador()
          {
              if (_gerenciador == null)
              {
                  _gerenciador = criarGerenciador();
              }
              return _gerenciador;
          }

         

          abstract Class<? extends IGerenciadorCadastro<T, C>> getClasseGerenciador();

       

          private IGerenciadorCadastro<T, C> criarGerenciador()
          {
              try
              {
                  BeanManager gerenciadorBean =
                      (BeanManager) new InitialContext().lookup("java:comp/BeanManager");
                  @SuppressWarnings("unchecked")
                  Bean<IGerenciadorCadastro<T, C>> bean =
                      (Bean<IGerenciadorCadastro<T, C>>) gerenciadorBean.getBeans(getClasseGerenciador()).iterator().next();
                  CreationalContext<IGerenciadorCadastro<T, C>> contexto =
                      gerenciadorBean.createCreationalContext(bean);
                  @SuppressWarnings("unchecked")
                  IGerenciadorCadastro<T, C> gerenciador =
                      (IGerenciadorCadastro<T, C>) gerenciadorBean.getReference(bean, getClasseGerenciador(), contexto);
                  return gerenciador;
              }
              catch (NamingException ex)
              {
                  throw new FacesException(ex);
              }
          }
      }

       

      CadastroArquivo.java

       

      package br.urca.scdh.web;

       

      import javax.faces.bean.ManagedBean;
      import javax.faces.bean.ViewScoped;

       

      import br.urca.scdh.Arquivo;
      import br.urca.scdh.IGerenciadorCadastro;
      import br.urca.scdh.IGerenciadorCadastroArquivo;

       

      @ManagedBean
      @ViewScoped
      public class CadastroArquivo extends Cadastro<Arquivo, Short>
      {
          private static final long serialVersionUID = 4968940996719605145L;

          @Override
          Class<? extends IGerenciadorCadastro<Arquivo, Short>> getClasseGerenciador()
          {
              return IGerenciadorCadastroArquivo.class;
          }
      }

       

      When I execute the application I always get this error:

       

      14:28:47,890 GRAVE [javax.enterprise.resource.webcontainer.jsf.application] (http--127.0.0.1-8080-4) Error Rendering View[/cadastroarquivo.xhtml]: javax.faces.FacesException: com.sun.faces.mgbean.ManagedBeanCreationException: Não é possível criar instância para·a classe: br.urca.scdh.web.CadastroArquivo.
      at javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:2218) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at com.sun.faces.renderkit.RenderKitUtils.renderXHTMLStyleBooleanAttributes(RenderKitUtils.java:486) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.renderkit.html_basic.ButtonRenderer.encodeBegin(ButtonRenderer.java:158) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:828) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:853) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1652) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49) [jboss-as-jpa-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at java.lang.Thread.run(Unknown Source) [:1.6.0_26]
      Caused by: com.sun.faces.mgbean.ManagedBeanCreationException: Não é possível criar instância para·a classe: br.urca.scdh.web.CadastroArquivo.
      at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:193) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:102) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:409) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:244) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:116) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:67) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:63) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.el.parser.AstValue.getValue(AstValue.java:115) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.el.parser.AstEqual.getValue(AstEqual.java:37) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:193) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.html.HtmlCommandButton.isDisabled(HtmlCommandButton.java:183) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_26]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_26]
      at java.lang.reflect.Method.invoke(Unknown Source) [:1.6.0_26]
      at javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:2210) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      ... 34 more
      Caused by: java.lang.IllegalArgumentException: View of type interface br.urca.scdh.IGerenciadorCadastro not found on bean
      at org.jboss.as.weld.ejb.SessionObjectReferenceImpl.getBusinessObject(SessionObjectReferenceImpl.java:91) [jboss-as-weld-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:122) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:62) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at br.urca.scdh.ejb.IGerenciadorCadastro$IGerenciadorCadastroArquivo$-436867141$Proxy$_$$_Weld$Proxy$.criar(IGerenciadorCadastro$IGerenciadorCadastroArquivo$-436867141$Proxy$_$$_Weld$Proxy$.java) [weld-core-1.1.2.Final.jar:]
      at br.urca.scdh.web.Cadastro.<init>(Cadastro.java:31) [classes:]
      at br.urca.scdh.web.CadastroArquivo.<init>(CadastroArquivo.java:16) [classes:]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_26]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [:1.6.0_26]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [:1.6.0_26]
      at java.lang.reflect.Constructor.newInstance(Unknown Source) [:1.6.0_26]
      at java.lang.Class.newInstance0(Unknown Source) [:1.6.0_26]
      at java.lang.Class.newInstance(Unknown Source) [:1.6.0_26]
      at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:188) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      ... 58 more

      14:28:47,921 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/scdh].[Faces Servlet]] (http--127.0.0.1-8080-4) Servlet.service() for servlet Faces Servlet threw exception: java.lang.IllegalArgumentException: View of type interface br.urca.scdh.IGerenciadorCadastro not found on bean
      at org.jboss.as.weld.ejb.SessionObjectReferenceImpl.getBusinessObject(SessionObjectReferenceImpl.java:91) [jboss-as-weld-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:122) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:62) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at br.urca.scdh.ejb.IGerenciadorCadastro$IGerenciadorCadastroArquivo$-436867141$Proxy$_$$_Weld$Proxy$.criar(IGerenciadorCadastro$IGerenciadorCadastroArquivo$-436867141$Proxy$_$$_Weld$Proxy$.java) [weld-core-1.1.2.Final.jar:]
      at br.urca.scdh.web.Cadastro.<init>(Cadastro.java:31) [classes:]
      at br.urca.scdh.web.CadastroArquivo.<init>(CadastroArquivo.java:16) [classes:]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_26]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [:1.6.0_26]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [:1.6.0_26]
      at java.lang.reflect.Constructor.newInstance(Unknown Source) [:1.6.0_26]
      at java.lang.Class.newInstance0(Unknown Source) [:1.6.0_26]
      at java.lang.Class.newInstance(Unknown Source) [:1.6.0_26]
      at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:188) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:102) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:409) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:244) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:116) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:67) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:63) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.el.parser.AstValue.getValue(AstValue.java:115) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.el.parser.AstEqual.getValue(AstEqual.java:37) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:193) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.html.HtmlCommandButton.isDisabled(HtmlCommandButton.java:183) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_26]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_26]
      at java.lang.reflect.Method.invoke(Unknown Source) [:1.6.0_26]
      at javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:2210) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at com.sun.faces.renderkit.RenderKitUtils.renderXHTMLStyleBooleanAttributes(RenderKitUtils.java:486) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.renderkit.html_basic.ButtonRenderer.encodeBegin(ButtonRenderer.java:158) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:828) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:853) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1652) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49) [jboss-as-jpa-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at java.lang.Thread.run(Unknown Source) [:1.6.0_26]

       

      or this one:

       

      14:30:19,125 GRAVE [javax.enterprise.resource.webcontainer.jsf.application] (http--127.0.0.1-8080-2) Error Rendering View[/cadastroarquivo.xhtml]: javax.faces.FacesException: java.lang.AbstractMethodError: br.urca.scdh.ejb.IGerenciadorCadastro$IGerenciadorCadastroArquivo$-436867141$Proxy$_$$_Weld$Proxy$.criar()Ljava/lang/Object;
      at javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:2218) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at com.sun.faces.renderkit.RenderKitUtils.renderXHTMLStyleBooleanAttributes(RenderKitUtils.java:486) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.renderkit.html_basic.ButtonRenderer.encodeBegin(ButtonRenderer.java:158) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:828) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:853) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1652) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49) [jboss-as-jpa-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at java.lang.Thread.run(Unknown Source) [:1.6.0_26]
      Caused by: java.lang.AbstractMethodError: br.urca.scdh.ejb.IGerenciadorCadastro$IGerenciadorCadastroArquivo$-436867141$Proxy$_$$_Weld$Proxy$.criar()Ljava/lang/Object;
      at br.urca.scdh.web.Cadastro.<init>(Cadastro.java:31) [classes:]
      at br.urca.scdh.web.CadastroArquivo.<init>(CadastroArquivo.java:16) [classes:]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_26]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [:1.6.0_26]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [:1.6.0_26]
      at java.lang.reflect.Constructor.newInstance(Unknown Source) [:1.6.0_26]
      at java.lang.Class.newInstance0(Unknown Source) [:1.6.0_26]
      at java.lang.Class.newInstance(Unknown Source) [:1.6.0_26]
      at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:188) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:102) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:409) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:244) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:116) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:67) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:63) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.el.parser.AstValue.getValue(AstValue.java:115) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.el.parser.AstEqual.getValue(AstEqual.java:37) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:193) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.html.HtmlCommandButton.isDisabled(HtmlCommandButton.java:183) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_26]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_26]
      at java.lang.reflect.Method.invoke(Unknown Source) [:1.6.0_26]
      at javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:2210) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      ... 34 more

      14:30:19,156 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/scdh].[Faces Servlet]] (http--127.0.0.1-8080-2) Servlet.service() for servlet Faces Servlet threw exception: java.lang.AbstractMethodError: br.urca.scdh.ejb.IGerenciadorCadastro$IGerenciadorCadastroArquivo$-436867141$Proxy$_$$_Weld$Proxy$.criar()Ljava/lang/Object;
      at br.urca.scdh.web.Cadastro.<init>(Cadastro.java:31) [classes:]
      at br.urca.scdh.web.CadastroArquivo.<init>(CadastroArquivo.java:16) [classes:]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_26]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [:1.6.0_26]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [:1.6.0_26]
      at java.lang.reflect.Constructor.newInstance(Unknown Source) [:1.6.0_26]
      at java.lang.Class.newInstance0(Unknown Source) [:1.6.0_26]
      at java.lang.Class.newInstance(Unknown Source) [:1.6.0_26]
      at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:188) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:102) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:409) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:244) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:116) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:67) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:63) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.el.parser.AstValue.getValue(AstValue.java:115) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.el.parser.AstEqual.getValue(AstEqual.java:37) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:193) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.html.HtmlCommandButton.isDisabled(HtmlCommandButton.java:183) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_26]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.6.0_26]
      at java.lang.reflect.Method.invoke(Unknown Source) [:1.6.0_26]
      at javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:2210) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at com.sun.faces.renderkit.RenderKitUtils.renderXHTMLStyleBooleanAttributes(RenderKitUtils.java:486) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.renderkit.html_basic.ButtonRenderer.encodeBegin(ButtonRenderer.java:158) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:828) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:853) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1652) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49) [jboss-as-jpa-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.1.0.Alpha1-SNAPSHOT]
      at java.lang.Thread.run(Unknown Source) [:1.6.0_26]

       

      If I'm doing something wrong or missing something, please I would like someone to tell me what it is.Or if this is another Weld bug, I hope this one doesn't take another year or more to get solved in JBoss.

       

      Thank you.

       

      Marcos

        • 1. Re: Weld, as always, gets in the way
          Scott Kroll Newbie

          I have the same exact problem. If I deploy the application as a WAR, with everything in WEB-INF/lib the application works perfectly. I cannot for the life of me get the EAR to work correctly.

          • 2. Re: Weld, as always, gets in the way
            Ales Justin Master

            Caused by: java.lang.IllegalArgumentException: View of type interface br.urca.scdh.IGerenciadorCadastro not found on bean
            at org.jboss.as.weld.ejb.SessionObjectReferenceImpl.getBusinessObject(SessionObjectReferenceImpl.java:91) [jboss-as-weld-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
            at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:122) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
            at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:62) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
            at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
            at br.urca.scdh.ejb.IGerenciadorCadastro$IGerenciadorCadastroArquivo$-436867141$Proxy$_$$_Weld$Proxy$.criar(IGerenciadorCadastro$IGerenciadorCadastroArquivo$-436867141$Proxy$_$$_Weld$Proxy$.java) [weld-core-1.1.2.Final.jar:]

            Could be WELD-921 related, which is not trivial to solve with the current api.

             

            Or if this is another Weld bug, I hope this one doesn't take another year or more to get solved in JBoss.

            Thanks for the sarcasm, this will definitely push us to help you faster.

            btw: it's all open source, so you're welcome to solve this faster ;-)

            • 3. Re: Weld, as always, gets in the way
              Stuart Douglas Master

              I have fixed the

               

              java.lang.IllegalArgumentException: View of type interface br.urca.scdh.IGerenciadorCadastro not found on bean

               

              in AS7 upstream. I am not really sure about the AbstractMethodError though. Can you provide a reproducable test case?

              • 4. Re: Weld, as always, gets in the way
                Marcos Antonio Novice

                Hello, Stuart!

                 

                I've made the reproducable test case. How can I send it to you?

                 

                Marcos

                • 5. Re: Weld, as always, gets in the way
                  jaikiran pai Master

                  You can attach it to this thread. Reply -> Use Advanced Editor (top right corner) -> Attach (button on bottom left)

                  • 6. Re: Weld, as always, gets in the way
                    Ales Justin Master

                    I've made the reproducable test case. How can I send it to you?

                    What about if you create an Arquillian test for this?

                    • 7. Re: Weld, as always, gets in the way
                      Marcos Antonio Novice

                      Hello, Stuart.

                       

                      I'm sending you the reproducable test case in a zip file. The error happens when you click the "Entrar" button in the login form (you can leave the login fields blank). Sometimes you'll see the "View of type interface br.urca.scdh.IGerenciadorCadastro not found on bean" error and sometimes you'll see the AbstractMethodError error. Just test more than once to see one or another.

                       

                      Although I'm using a postgreSQL datasource in this project, for the time being the database doesn't have anything. So you can change the datasource to point to your own database.

                       

                      I access the application like this: http://localhost:8080/scdh

                       

                      These are the configurations that I have in the standalone.xml file (change to your own):

                       

                      in <datasources>:

                       

                                      <datasource jndi-name="java:jboss/datasources/SCDH_DS" pool-name="SCDH_DS" enabled="true" jta="true" use-java-context="true" use-ccm="true">
                                          <connection-url>
                                              jdbc:postgresql://localhost/solicitacoes
                                          </connection-url>
                                          <driver>
                                              postgresql
                                          </driver>
                                          <new-connection-sql>
                                              select 1
                                          </new-connection-sql>
                                          <security>
                                              <user-name>
                                                  user
                                              </user-name>
                                              <password>
                                                  password
                                              </password>
                                          </security>
                                          <validation>
                                              <check-valid-connection-sql>
                                                  select 1
                                              </check-valid-connection-sql>
                                              <validate-on-match>
                                                  false
                                              </validate-on-match>
                                              <background-validation>
                                                  false
                                              </background-validation>
                                              <useFastFail>
                                                  false
                                              </useFastFail>
                                          </validation>
                                      </datasource>

                       

                      in <drivers>:

                       

                                      <driver name="postgresql" module="org.postgresql"/>

                       

                      in <security-domains>:

                       

                                      <security-domain name="scdh" cache-type="default">
                                          <authentication>
                                              <login-module code="br.urca.scdh.web.seguranca.ModuloLogin" flag="required"/>
                                          </authentication>
                                      </security-domain>

                       

                      Even though I think you won't want it, I'm also sending the postgreSQL module that I'm using and that I placed in <JBOSS_HOME>/modules/org.

                      In my opinion it's worth setting up this test case. The error always happens.

                       

                      Thank you.

                       

                      Marcos

                      • 8. Re: Weld, as always, gets in the way
                        Marcos Antonio Novice

                        So, any news about this issue? Were you able to see the error?

                         

                        Marcos

                        • 9. Re: Weld, as always, gets in the way
                          Marcos Antonio Novice

                          One last question: do I have to assume that this is a bug in Weld or in my application?

                           

                          Marcos