Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get rid of "The web.xml file does not exist" error in Eclipse from GWT Plugin?

I use Eclipse to develop my REST server, and GWT client in one project. To build this project I use Maven. Server side code is developed in Spring Framework and everything I configure using Java instead of XML files, so I don't have any web.xml file.

To compile project I have in maven pom.xml special entry as follow:

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-war-plugin</artifactId>
            <version>2.6</version>
            <configuration>
                <failOnMissingWebXml>false</failOnMissingWebXml>
            </configuration>
        </plugin>

Application (Spring server side and GWT client side) compiles and works as supposed. There is no problem, beside Eclipse, which point me out that I don't have web.xml file. Here is whole Eclipse error information:

Description                     | Resource | Path                 | Location | Type

The web.xml file does not exist | WEB-INF  | /cms/src/main/webapp | Unknown  | Google Web App Problem

enter image description here

As You can see error comes from GWT Eclipse plugin. But this plugin doesn't know that I use GWT only for client, and it shouldn't report me that error.

I wonder can and how to turn it off.

like image 869
masterdany88 Avatar asked Oct 24 '25 00:10

masterdany88


1 Answers

To turn this check off: (in Eclipse) Window -> Preferences -> Google -> Errors/Warnings -> Project structure and SDKs -> Missing web.xml

like image 62
Alexander Leshkin Avatar answered Oct 26 '25 15:10

Alexander Leshkin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!