Maven Java EE Configuration Marker with Java Server Faces 1.2

后端 未结 11 561
抹茶落季
抹茶落季 2020-12-14 01:49

I\'m having a weird configuration problem with Maven in Eclipse. Although I can build the project and deploy it to tomcat without any errors, The Marker tab keeps showing th

11条回答
  •  庸人自扰
    2020-12-14 01:59

    I have encountered this with Maven projects too. This is what I had to do to get around the problem:

    First update your web.xml

    
    Servlet 3.0 Web Application
    

    Then right click on your project and select Properties -> Project Facets In there you will see the version of your Dynamic Web Module. This needs to change from version 2.3 or whatever to version 2.5 or above (I chose 3.0).

    However to do this I had to uncheck the tick box for Dynamic Web Module -> Apply, then do a Maven Update on the project. Go back into the Project Facets window and it should already match your web.xml configuration - 3.0 in my case. You should be able to change it if not.

    If this does not work for you then try right-clicking on the Dynamic Web Module Facet and select change version (and ensure it is not locked).

    Or you can follow this steps:

    1. Window > Show View > Other > General > navigator
    2. There is a .settings folder under your project directory
    3. Change the dynamic web module version in this line to 3.0
    4. Change the Java version in this line to 1.5 or higher

    don't forget to update your project

    Hope that works!

提交回复
热议问题