Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-875

the `scaffold setup --scaffoldType faces;` command. failed to create beans.xml

XMLWordPrintable

    • Hide

      Added "beans setup" to generate.fsh file

      Show
      Added "beans setup" to generate.fsh file

      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.

            kaers@redhat.com Koen Aers
            randythomas Randy Thomas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: