0 Replies Latest reply on Nov 11, 2013 2:16 AM by lukelukas

    JBoss 5.1 - deploy war scopekey addition (ClassNotFoundException)

    lukelukas

      Hi,

       

      When deploying a .war file in JBoss 5.1 (default config) I'm facing the same problem described here:JBoss 4 to Jboss 5 migration: JSF, EJB3...

      Caused by: java.lang.IllegalArgumentException: Exception loading class for ScopeKey addition.

              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:67)

              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126)

              ... 34 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.webbeans.bootstrap.WebBeansBootstrap from BaseClassLoader@141bf9f{VFSClassL

       

      As suggested, if I remove the jboss-5.1.0.GA\server\default\deployers\webbeans.deployer folder the problem is solved.

      Or commenting the lines in jboss-5.1.0.GA\server\default\deployers\webbeans.deployer\META-INF\webbeans-deployers-jboss-beans.xml file the problem is gone.

       

      But I would like to disable webbeans-deployers not touching the server files, just using configuration files inside my war.

      Is this possible?

       

      I've found this thread but it is not clear enough to me how to achieve it.

      JBoss5 - disable webbeans.deployer

       

      Note: the same .war works on JBoss 4.2.0

       

       

      Thanks.