[forge-issues] [JBoss JIRA] (FORGE-875) the `scaffold setup --scaffoldType faces; ` command. failed to create beans.xml

Vineet Reynolds (JIRA) jira-events at lists.jboss.org
Fri May 3 11:36:53 EDT 2013


    [ https://issues.jboss.org/browse/FORGE-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12771984#comment-12771984 ] 

Vineet Reynolds commented on FORGE-875:
---------------------------------------

This looks like a race condition issue in the Forge/JBT integration. When walking through the code under a debugger attached to the Forge instance in JBT, this is no longer reproducible - the beans.xml file is never deleted after it is created the first time. Restarting the Eclipse workspace and running the script in Forge without an attached debugger, almost always reproduces the issue. I can't be definite about this, but it does seem that the file is lost when Eclipse updates the facets of the created project.

The workaround of running {{beans setup}} before {{scaffold setup}} in the script prevents this specific instance of the bug from occurring, but there could be others.
                
> the `scaffold setup --scaffoldType faces;` command. failed to create beans.xml
> ------------------------------------------------------------------------------
>
>                 Key: FORGE-875
>                 URL: https://issues.jboss.org/browse/FORGE-875
>             Project: Forge
>          Issue Type: Bug
>    Affects Versions: 1.2.2.Final
>         Environment: Mac: OS X 10.8.3, 2.66 GHz Intel Core i7, 4GG  1067 MHz DDR3
> Running Forge Console in JBoss Developers Studio version 6.1.0.GA, Deploying to JBoss EAP 6.0.1
>            Reporter: Randy Thomas
>            Assignee: George Gastaldi
>            Priority: Blocker
>              Labels: forge
>
> I generated a sample project using the generate.fsh script.  I deployed the war file to EAP 6 and everything seemed to be working fine.
> The welcome page comes up for the app with no problems.  However, an error is generated upon the attempt to add data to the database.
> I was able to resolve the problem by adding the following lines to the script:
> @/* Add beans.xml for CDI */;
> touch src/main/webapp/WEB-INF/beans.xml
> Lincoln indicated that this should have already been done by the 
> `scaffold setup --scaffoldType faces;` command.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the forge-issues mailing list