Hi George,
The command line is: scaffold-generate --webRoot / --overwrite yes --targets
com.package.Candidato
The log is:
17:24:29,950 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:24:30,067 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: null
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_40]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_40]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_40]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_40]
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_9b860e33-ef8c-41ab-8259-49b22e97fbab.generateFrom(AbstractFacet_$$_javassist_9b860e33-ef8c-41ab-8259-49b22e97fbab.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_40]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_40]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_40]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_40]
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_ac79b82d-d3b6-4b4f-9c32-9372bfcacb44.execute(ScaffoldExecuteGenerationStep_$$_javassist_ac79b82d-d3b6-4b4f-9c32-9372bfcacb44.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_40]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_40]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]
Caused by: java.lang.IllegalArgumentException
at org.eclipse.jdt.core.dom.SimpleName.setIdentifier(SimpleName.java:194)
at org.eclipse.jdt.core.dom.AST.newSimpleName(AST.java:2045)
at org.eclipse.jdt.core.dom.AST.newName(AST.java:1795)
at
org.jboss.forge.parser.java.impl.AbstractJavaSource.setPackage(AbstractJavaSource.java:528)
at
org.jboss.forge.parser.java.impl.AbstractJavaSource.setPackage(AbstractJavaSource.java:55)
at
org.jboss.forge.addon.scaffold.faces.FacesScaffoldProvider.generateFromEntity(FacesScaffoldProvider.java:710)
... 26 more
Posted by forums
Original post:
https://community.jboss.org/message/855993#855993