Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-10036

Forge and JAX-RS: Project configuration is not up-to-date with pom.xml. Run project configuration update

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M5
    • None
    • forge

      Following this Forge "script"
      new-project --named forgeProject1 --topLevelPackage com.burrsutter.forgeProject1
      persistence setup --provider HIBERNATE --container JBOSS_AS7

      I notice that the project is not refresh to show the additional generated files. So I right-click on the project and select Refresh from the context menu and I get a red x, opening up the Problems tab tells me that
      "Project configuration is not up-to-date with pom.xml. Run project configuration update".
      This message is a challenge - finding 'project configuration update' in the menu system is difficult. A new Maven user would not know that the right item is
      Right-click on the project, Maven -> Update Project Configuration

      This step should have happened automatically

      After running Update Project Configuration, the next error is
      "error: Attribute servlet-name references to javax.ws.rs.core.Application that is not a servlet"

      What was thrown into web.xml
      <servlet-mapping>
      <servlet-name>javax.ws.rs.core.Application</servlet-name>
      <url-pattern>/rest/*</url-pattern>
      </servlet-mapping>

            kaers@redhat.com Koen Aers
            bsutter@redhat.com Burr Sutter
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: