[jbosstools-issues] [JBoss JIRA] (JBIDE-10036) Forge and JAX-RS: Project configuration is not up-to-date with pom.xml. Run project configuration update

Max Rydahl Andersen (Commented) (JIRA) jira-events at lists.jboss.org
Wed Oct 26 04:35:45 EDT 2011


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

Max Rydahl Andersen commented on JBIDE-10036:
---------------------------------------------

A few tips:
0) Forge integration is still very weak in this area ;)
1) when there are problem markers check if there is a quick fix for it (use Ctrl+1 or right click on the problem marker and click "Quick fix" - it should give you an option to refresh it directly)

About "updating project configuration", Updating project configuration is a tricky beast and cannot be done safely automatically in all cases. It was one of the problems in previous versions of m2e it caused continuous refreshing and deadlocks thus m2e team decided to make this an explicit operation as the lesser of the two evils. That said - in this case Forge tools should be able to know things has changed, do the refresh and if pom.xml is known to be updated call out to "update project configuration" (once!). Do note that doing this blindly can cause a big delay in case the changes involves getting more dependencies - so it probably should be done by asking the user if he wishes to do so.

The other error about servlet-mapping is an separate issue - Koen, can you look and report it as separate issue with details you might find on it ?
                
> Forge and JAX-RS: Project configuration is not up-to-date with pom.xml. Run project configuration update
> --------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-10036
>                 URL: https://issues.jboss.org/browse/JBIDE-10036
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: forge
>         Environment: 3.3.M4 (QA version)
>            Reporter: Burr Sutter
>         Attachments: Forge_JBossTools-3.png, Forge_JBossTools-4.png, Forge_JBossTools-5.png
>
>
> 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>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list