2 Replies Latest reply on Jun 26, 2014 5:25 PM by Anton Hughes

    Errai and forge2 - error

    Anton Hughes Master

      Hi mbarkley

       

      FYI

       

      I am trying to use Forge2 with Eclipse Luna, and when I try to create a new project, I get the following error.

       

      org.jboss.forge.furnace.exception.ContainerException: Failed to get instance of [class org.jboss.errai.forge.facet.dependency.ErraiBuildDependencyFacet] with proxy for ClassLoader [ModuleClassLoader for Module "org.jboss.errai.forge.errai-forge-addon:3.0.0.20140325-M5_8ccf20b6-abff-4da6-bd56-7f0ac076dcb9" from AddonModuleLoader]

        at org.jboss.forge.furnace.container.cdi.services.ExportedInstanceImpl.get(ExportedInstanceImpl.java:76)

        at org.jboss.forge.furnace.impl.addons.ImportedImpl$ImportedIteratorImpl.next(ImportedImpl.java:183)

        at org.jboss.forge.addon.facets.FacetFactoryImpl.createFacets(FacetFactoryImpl.java:94)

        at org.jboss.forge.addon.facets.FacetFactoryImpl.createFacets(FacetFactoryImpl.java:76)

        at org.jboss.forge.addon.facets.FacetFactoryImpl.register(FacetFactoryImpl.java:296)

        at org.jboss.forge.addon.facets.FacetFactoryImpl.register(FacetFactoryImpl.java:245)

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

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

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

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

        at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:65)

        at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)

        at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:81)

        at org.jboss.forge.addon.facets.FacetFactoryImpl_$$_javassist_db570171-7025-4855-a99c-ad25117eb15c.register(FacetFactoryImpl_$$_javassist_db570171-7025-4855-a99c-ad25117eb15c.java)

        at org.jboss.forge.addon.projects.impl.ProjectFactoryImpl.registerAvailableFacets(ProjectFactoryImpl.java:384)

        at org.jboss.forge.addon.projects.impl.ProjectFactoryImpl.createProject(ProjectFactoryImpl.java:313)

        at org.jboss.forge.addon.projects.ui.NewProjectWizardImpl.execute(NewProjectWizardImpl.java:375)

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

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

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

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

        at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:65)

        at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)

        at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:81)

        at org.jboss.forge.addon.projects.ui.NewProjectWizardImpl_$$_javassist_5a64c6ab-5551-4995-a42d-d09c571d064a.execute(NewProjectWizardImpl_$$_javassist_5a64c6ab-5551-4995-a42d-d09c571d064a.java)

        at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.execute(WizardCommandControllerImpl.java:153)

        at org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.execute(NoUIWizardControllerDecorator.java:152)

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

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

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

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

        at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:123)

        at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)

        at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:96)

        at org.jboss.forge.addon.ui.controller.CommandController_$$_javassist_133f1f53-a2cf-4164-9f74-e214b6f39f36.execute(CommandController_$$_javassist_133f1f53-a2cf-4164-9f74-e214b6f39f36.java)

        at org.jboss.tools.forge.ui.internal.ext.wizards.ForgeWizard$1.run(ForgeWizard.java:90)

        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

      Caused by: org.jboss.forge.furnace.exception.ContainerException: Failed to get instance of [class org.jboss.errai.forge.facet.dependency.ErraiBuildDependencyFacet] with proxy for ClassLoader [ModuleClassLoader for Module "org.jboss.errai.forge.errai-forge-addon:3.0.0.20140325-M5_8ccf20b6-abff-4da6-bd56-7f0ac076dcb9" from AddonModuleLoader]

        ... 37 more

      Caused by: java.lang.IllegalStateException: Addon service [org.codehaus.plexus.util.cli.shell.Shell] is not registered.

        at org.jboss.forge.furnace.container.cdi.impl.ImportedBeanLifecycle.create(ImportedBeanLifecycle.java:121)

        at org.jboss.forge.furnace.container.cdi.util.ImmutableBean.create(ImmutableBean.java:68)

        at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:69)

        at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:740)

        at org.jboss.weld.manager.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:831)

        at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:92)

        at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:364)

        at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:375)

        at org.jboss.weld.injection.producer.DefaultInjector$1.proceed(DefaultInjector.java:71)

        at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)

        at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:68)

        at org.jboss.weld.injection.producer.ResourceInjector.access$101(ResourceInjector.java:46)

        at org.jboss.weld.injection.producer.ResourceInjector$1.proceed(ResourceInjector.java:70)

        at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)

        at org.jboss.weld.injection.producer.ResourceInjector.inject(ResourceInjector.java:65)

        at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:109)

        at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:150)

        at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:69)

        at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:740)

        at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:760)

        at org.jboss.weld.util.ForwardingBeanManager.getReference(ForwardingBeanManager.java:61)

        at org.jboss.weld.bean.builtin.BeanManagerProxy.getReference(BeanManagerProxy.java:78)

        at org.jboss.forge.furnace.container.cdi.services.ExportedInstanceImpl$1.call(ExportedInstanceImpl.java:64)

        at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)

        at org.jboss.forge.furnace.container.cdi.services.ExportedInstanceImpl.get(ExportedInstanceImpl.java:72)

        ... 36 more