2 Replies Latest reply on Jul 18, 2014 11:37 AM by jamezp

    The requested facet of type [org.jboss.forge.project.facets.ResourceFacet] was not found

    fharms

      Hi

       

      When I'm running this command from the forge-console 1.4.4.Final "arquillian setup --containerType MANAGED --containerName JBOSS_AS_MANAGED_7", on existing project it fails with the error below :

       

      Based on the few lira's I found there is any work around or solution, so any help will be appreciated

       

      Thanks!

       

      /Flemming

       

      My selection :

      What version of jboss-as-arquillian-container-managed do you want to use?

       

        1 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.0.0.Beta1]

        2 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.0.0.Beta2]

        3 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.0.0.Beta3]

        4 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.0.0.CR1]

        5 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.0.0.Final]

        6 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.0.1.Final]

        7 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.0.2.Final]

        8 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.1.0-alrwebinar-SNAPSHOT]

        9 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.1.0.Alpha1-SNAPSHOT]

        10 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.1.0.Beta1]

        11 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.1.0.Beta1b]

        12 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.1.0.CR1]

        13 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.1.0.CR1b]

        14 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.1.0.Final]

        15 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.1.1.Final]

        16 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.1.2.Final]

        17 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.1.3.Final]

        18 - [org.jboss.as:jboss-as-arquillian-container-managed:::7.2.0.Final]*

       

      ? Choose an option by typing the number of the selection [*-default]  [0]

      ? Do you want Arquillian to install the container? [y/N] y

      Which version of the container do you want to install?

       

        1 - [org.jboss.as:jboss-as-dist:::7.0.0.CR1]

        2 - [org.jboss.as:jboss-as-dist:::7.0.0.Final]

        3 - [org.jboss.as:jboss-as-dist:::7.0.1.Final]

        4 - [org.jboss.as:jboss-as-dist:::7.0.2.Final]

        5 - [org.jboss.as:jboss-as-dist:::7.1.0-alrwebinar-SNAPSHOT]

        6 - [org.jboss.as:jboss-as-dist:::7.1.0.Alpha1-SNAPSHOT]

        7 - [org.jboss.as:jboss-as-dist:::7.1.0.Beta1]

        8 - [org.jboss.as:jboss-as-dist:::7.1.0.Beta1b]

        9 - [org.jboss.as:jboss-as-dist:::7.1.0.CR1]

        10 - [org.jboss.as:jboss-as-dist:::7.1.0.CR1b]

        11 - [org.jboss.as:jboss-as-dist:::7.1.0.Final]

        12 - [org.jboss.as:jboss-as-dist:::7.1.1.Final]

        13 - [org.jboss.as:jboss-as-dist:::7.1.3.Final]

        14 - [org.jboss.as:jboss-as-dist:::7.2.0.Final]*

       

      ? Choose an option by typing the number of the selection [*-default]  [0]

      ? Where do you want to install the container? [jbossas-managed-7]

       

      org.jboss.forge.project.facets.FacetNotFoundException: The requested facet of type [org.jboss.forge.project.facets.ResourceFacet] was not found. The facet is not installed.

      Wrote /Users/fharms/work/db-bootstrap/pom.xml

      ***ERROR*** Exception encountered: (type "set VERBOSE false" to disable stack traces)

      [db-bootstrap-subsystem-parent] db-bootstrap $  at org.jboss.forge.project.BaseProject.getFacet(BaseProject.java:103)

        at org.jboss.forge.maven.ProjectImpl.getFacet(ProjectImpl.java:43)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)

        at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)

        at org.jboss.weld.proxies.Project$-1946286523$Proxy$_$$_WeldClientProxy.getFacet(Project$-1946286523$Proxy$_$$_WeldClientProxy.java)

        at org.jboss.forge.arquillian.ArquillianPlugin.configureSelectedContainer(ArquillianPlugin.java:164)

        at org.jboss.forge.arquillian.ArquillianPlugin.installContainer(ArquillianPlugin.java:127)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.jboss.forge.shell.command.Execution.perform(Execution.java:160)

        at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:109)

        at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:47)

        at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:796)

        at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:819)

        at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:609)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)

        at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)

        at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)

        at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)

        at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)

        at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)

        at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)

        at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)

        at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)

        at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)

        at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)

        at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)

        at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)

        at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)

        at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)

        at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:186)

        at java.lang.Thread.run(Thread.java:695)

        • 1. Re: The requested facet of type [org.jboss.forge.project.facets.ResourceFacet] was not found
          fharms

          Update :

           

          The problem seems to be related to when i'm using the Arquillian add-on on a existing project. But why I don't understand at this moment.

          If I create a new project with forge and use Arquillian it able to update my pom.xml and arguillian.xml with my choses.

           

          side note: if you choose Arquillian add-on to install the latest "org.jboss.as:jboss-as-arquillian-container-managed:::7.2.0.Final" it will not work when execute the command "build test --profile JBOSS_AS_MANAGED_7", because no zip file exist in repository only the pom

           

          update:

          The zip file does not exist because 7.2.0 is not a full distribution, just strange you can select and install it when running the forge command "arquillian setup"

           

          /F

          • 2. Re: The requested facet of type [org.jboss.forge.project.facets.ResourceFacet] was not found
            jamezp

            It looks like there might be too many available options for JBoss AS 7. I think this is a bug in the as7 plugin for Forge. 7.1.1.Final should be the latest one. The others might have a pom release and maybe some artifacts, but definitely not a dist.

             

            If possible, try selecting 7.1.1.Final as your version and see if that fixes it.

             

            --

            James R. Perkins