[forge-users] Problem while scaffolding from entity

Lincoln Baxter, III lincolnbaxter at gmail.com
Tue May 10 12:39:47 EDT 2011


Ah. File paths on windows are a bit iffy - we are having issues with them
(known bugs right now).

https://issues.jboss.org/browse/SEAMFORGE-163

I'm not sure why you are getting prompt choice errors, that might be caused
if you are offline or have bad data in your maven repository. If you have
some time, try starting over with a clean maven repository.

I hope this helps,
~Lincoln

On Fri, May 6, 2011 at 4:55 AM, Xavier Coulon <xcoulon at gmail.com> wrote:

> Hello Lincoln,
>
> Thanks for the answer. Here's what I've got now, using the latest snapshot:
>
> [customers] customers $ scaffold setup
>  ? No scaffold type was selected, use default (Metawidget & JSF)? [Y/n] Y
>  ? Scaffold provider [metawidget] is not installed. Install it? [Y/n] Y
>  ? Facet [forge.maven.WebResourceFacet] requires packaging type(s) [war],
> but is currently [jar]. Update packaging? (Note: this could deactivate other
> plugins in your project.) [Y/n] Y
> ***SUCCESS*** Installed [forge.maven.WebResourceFacet] successfully.
> Wrote /code/sample/customers/src/main/resources/META-INF/persistence.xml
> ***SUCCESS*** Installed [forge.spec.jpa] successfully.
> Wrote /code/sample/customers/src/main/webapp/WEB-INF/beans.xml
> ***SUCCESS*** Installed [forge.spec.cdi] successfully.
> Wrote /code/sample/customers/src/main/webapp/WEB-INF/web.xml
> Wrote /code/sample/customers/src/main/webapp/index.html
> ***SUCCESS*** Installed [forge.spec.servlet] successfully.
> Wrote /code/sample/customers/src/main/webapp/WEB-INF/faces-config.xml
> ***SUCCESS*** Installed [forge.spec.jsf] successfully.
> ***ERROR*** [scaffold setup] promptChoice() Cannot ask user to select from
> a list of nothing. Ensure you have values in your options list.
>
> I also had a problem with the 'new-project' command:
> [no project] bin $ new-project --named customers --topLevelPackage
> com.sample.customers --projectFolder
>  /code/samples/customers
> ***ERROR*** [new-project] command option '--projectFolder' must be of type
> 'Resource'
>
> But with a turn-around:
>
> [no project] bin $ new-project --named customers --topLevelPackage
> com.sample.customers
>  ? Use [/software/forge-1.0.0-SNAPSHOT/bin/customers] as project directory?
> [Y/n] n
>  ? Where would you like to create the project? [Press ENTER to use the
> current directory: bin] /code/sample/customers
> Wrote /code/sample/customers/src/main/resources/META-INF/forge.xml
> ***SUCCESS*** Created project [customers] in new working directory
> [/code/sample/customers]
>
>
> Also, I forgot to mention that (sadly for those tests), I'm running on
> win32... (and the prompt message at startup made me laugh ;-))
>
>    ____                          _____
>   / ___|  ___  __ _ _ __ ___    |  ___|__  _ __ __ _  ___
>   \___ \ / _ \/ _` | '_ ` _ \   | |_ / _ \| '__/ _` |/ _ \  \\
>    ___) |  __/ (_| | | | | | |  |  _| (_) | | | (_| |  __/  //
>   |____/ \___|\__,_|_| |_| |_|  |_|  \___/|_|  \__, |\___|
>                                                 |___/
>   Windows? Really? Okay...
>
>
> Is there any log or anything I should look at to help ?
>
> Regards,
> Xavier
>
>
> On Thu, May 5, 2011 at 11:10 PM, Lincoln Baxter, III <
> lincolnbaxter at gmail.com> wrote:
>
>> Strange... could you try downloading a recent snapshot and seeing if this
>> is fixed? The command names may have changed slightly:
>>
>>
>> https://repository.jboss.org/nexus/content/groups/public/org/jboss/forge/forge-distribution/1.0.0-SNAPSHOT/
>> (scroll to the bottom and grab th elatest zip)
>>
>> ~Lincoln
>>
>> On Thu, May 5, 2011 at 11:25 AM, Xavier Coulon <xcoulon at gmail.com> wrote:
>>
>>> Hello,
>>>
>>> I'm just starting playing with seam-forge (version 0.3 Alpha), following
>>> the example provided at
>>> http://docs.jboss.org/forge/snapshot/reference/en-US/html_single/
>>>
>>> Hélas, I get the error message below when running the 'scaffold
>>> from-entity' command:
>>>
>>> [forge-customersmgt-sample] Customer.java $ scaffold setup
>>> [forge-customersmgt-sample] Customer.java $ scaffold from-entity
>>> No scaffold type was provided, use Forge default? [Y/n] Y
>>> ***ERROR*** [scaffold from-entity] promptChoice() Cannot ask user to
>>> select from a list of nothing. Ensure you have values in your options list.
>>>
>>> what should I add or check to solve this problem ?
>>>
>>> Thank you in advance.
>>>
>>> Best regards,
>>> --
>>> Xavier
>>>
>>> _______________________________________________
>>> forge-users mailing list
>>> forge-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/forge-users
>>>
>>>
>>
>>
>> --
>> Lincoln Baxter, III
>> http://ocpsoft.com
>> http://scrumshark.com
>> "Keep it Simple"
>>
>
>
>
> --
> Xavier
>



-- 
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-users/attachments/20110510/2694830c/attachment.html 


More information about the forge-users mailing list