XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Won't Do
    • Icon: Critical Critical
    • 2.x Future
    • 2.0.0.Final
    • Scaffold
    • None

      I cannot generate JSF pages from an entity. This is what happens when I do it :

      [Musician.java]$ scaffold-generate --targets com.pluralsight.persistence.module07.model.Author
      ***ERROR*** Error generating default scaffolding: java.lang.IllegalStateException: No instances of [org.jboss.forge.parser.spi.WildcardImportResolver] were found on the classpath.
      
      17:50:51,004 WARNING [org.metawidget.config.impl.BaseConfigReader] (AeshProcess: 1) class org.jboss.forge.addon.scaffold.faces.metawidget.inspector.ForgeInspector must be immutable, but appears to have a setter method (public void org.jboss.forge.addon.scaffold.faces.metawidget.inspector.ForgeInspector.setTypeUnderInspection(java.lang.String))
      17:50:51,010 SEVERE [org.jboss.forge.addon.shell.aesh.CommandAdapter] (AeshProcess: 1) Failed to execute [scaffold-generate] due to exception.: java.lang.RuntimeException: Error generating default scaffolding: java.lang.IllegalStateException: No instances of [org.jboss.forge.parser.spi.WildcardImportResolver] were found on the classpath.
      	at org.jboss.forge.addon.scaffold.faces.FacesScaffoldProvider.generateFromEntity(FacesScaffoldProvider.java:774)
      	at org.jboss.forge.addon.scaffold.faces.FacesScaffoldProvider.generateFrom(FacesScaffoldProvider.java:222)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_45]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_45]
      	at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:59) [furnace-proxy-2.0.0.Final.jar:2.0.0.Final]
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34) [furnace-api-2.0.0.Final.jar:2.0.0.Final]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:75) [furnace-proxy-2.0.0.Final.jar:2.0.0.Final]
      	at org.jboss.forge.addon.facets.AbstractFacet_$$_javassist_da16e6c2-7f13-4b8f-ad13-e107abfb062a.generateFrom(AbstractFacet_$$_javassist_da16e6c2-7f13-4b8f-ad13-e107abfb062a.java)
      	at org.jboss.forge.addon.scaffold.impl.ui.ScaffoldExecuteGenerationStep.execute(ScaffoldExecuteGenerationStep.java:63)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_45]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_45]
      	at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:59) [furnace-proxy-2.0.0.Final.jar:2.0.0.Final]
      	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34) [furnace-api-2.0.0.Final.jar:2.0.0.Final]
      	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:75) [furnace-proxy-2.0.0.Final.jar:2.0.0.Final]
      	at org.jboss.forge.addon.scaffold.impl.ui.ScaffoldExecuteGenerationStep_$$_javassist_206fec9e-77af-4da1-83ef-afb4376c2e2f.execute(ScaffoldExecuteGenerationStep_$$_javassist_206fec9e-77af-4da1-83ef-afb4376c2e2f.java)
      	at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.execute(WizardCommandControllerImpl.java:152) [ui-impl-2.0.0.Final.jar:2.0.0.Final]
      	at org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.execute(NoUIWizardControllerDecorator.java:149) [ui-impl-2.0.0.Final.jar:2.0.0.Final]
      	at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:69) [shell-impl-2.0.0.Final.jar:2.0.0.Final]
      	at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:295) [aesh-0.48.jar:0.48]
      	at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:41) [aesh-0.48.jar:0.48]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
      	at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
      Caused by: org.metawidget.inspector.iface.InspectorException: java.lang.IllegalStateException: No instances of [org.jboss.forge.parser.spi.WildcardImportResolver] were found on the classpath.
      	at org.metawidget.inspector.iface.InspectorException.newException(InspectorException.java:45)
      	at org.jboss.forge.addon.scaffold.faces.metawidget.inspector.propertystyle.ForgePropertyStyle.inspectProperties(ForgePropertyStyle.java:141)
      	at org.metawidget.inspector.impl.propertystyle.BasePropertyStyle.getUncachedTraits(BasePropertyStyle.java:172)
      	at org.metawidget.inspector.impl.BaseTraitStyle.getTraits(BaseTraitStyle.java:126)
      	at org.metawidget.inspector.impl.propertystyle.BasePropertyStyle.getProperties(BasePropertyStyle.java:54)
      	at org.metawidget.inspector.impl.BaseObjectInspector.getProperties(BaseObjectInspector.java:499)
      	at org.metawidget.inspector.impl.BaseObjectInspector.inspectTraits(BaseObjectInspector.java:341)
      	at org.metawidget.inspector.impl.BaseObjectInspector.inspectAsDom(BaseObjectInspector.java:243)
      	at org.metawidget.inspector.impl.BaseObjectInspector.inspectAsDom(BaseObjectInspector.java:69)
      	at org.metawidget.inspector.composite.CompositeInspector.runInspector(CompositeInspector.java:241)
      	at org.metawidget.inspector.composite.CompositeInspector.runInspectors(CompositeInspector.java:220)
      	at org.metawidget.inspector.composite.CompositeInspector.inspectAsDom(CompositeInspector.java:167)
      	at org.metawidget.inspector.composite.CompositeInspector.inspectAsDom(CompositeInspector.java:151)
      	at org.metawidget.inspector.composite.CompositeInspector.inspectAsDom(CompositeInspector.java:53)
      	at org.metawidget.pipeline.base.BasePipeline.inspectAsDom(BasePipeline.java:344)
      	at org.metawidget.statically.StaticMetawidget.inspect(StaticMetawidget.java:332)
      	at org.metawidget.statically.StaticMetawidget.write(StaticMetawidget.java:278)
      	at org.jboss.forge.addon.scaffold.faces.FacesScaffoldProvider.generateFromEntity(FacesScaffoldProvider.java:689)
      	... 26 more
      Caused by: java.lang.IllegalStateException: No instances of [org.jboss.forge.parser.spi.WildcardImportResolver] were found on the classpath.
      	at org.jboss.forge.parser.java.impl.AbstractJavaSource.getImportResolvers(AbstractJavaSource.java:382)
      	at org.jboss.forge.parser.java.impl.AbstractJavaSource.resolveType(AbstractJavaSource.java:350)
      	at org.jboss.forge.parser.java.impl.MethodImpl.getQualifiedReturnType(MethodImpl.java:238)
      	at org.jboss.forge.addon.scaffold.faces.metawidget.inspector.propertystyle.ForgePropertyStyle.lookupGetters(ForgePropertyStyle.java:203)
      	at org.jboss.forge.addon.scaffold.faces.metawidget.inspector.propertystyle.ForgePropertyStyle.inspectClassProperties(ForgePropertyStyle.java:156)
      	at org.jboss.forge.addon.scaffold.faces.metawidget.inspector.propertystyle.ForgePropertyStyle.inspectProperties(ForgePropertyStyle.java:135)
      	... 42 more
      

              Unassigned Unassigned
              agoncal Antonio Goncalves (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: