gwt-eclipse-plugin icon indicating copy to clipboard operation
gwt-eclipse-plugin copied to clipboard

Get rid of error: “The web.xml file does not exist”

Open masterdany88 opened this issue 8 years ago • 4 comments

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

I use spring as a backend, which is allowed by GWT. GWT is client side framework. I configure my spring using java config instead of xml's files, so I don't have and I wouldn't have web.xml file. IMHO plugin should not demand this file on project, or should allow to set in configuration to not use web.xml.

Here http://docs.spring.io/autorepo/docs/spring-framework/3.1.x/javadoc-api/org/springframework/web/WebApplicationInitializer.html is spring documentation about java config

Here is post on stackoverflow: https://stackoverflow.com/questions/35332574/how-to-get-rid-of-the-web-xml-file-does-not-exist-error-in-eclipse-from-gwt-pl

masterdany88 avatar Jul 07 '16 09:07 masterdany88

Change web.xml check to "ignore" option. In Eclipse: Window -> Preferences -> Google -> Errors/Warnings -> Project structure and SDKs -> Missing web.xml

axls avatar Jul 07 '16 09:07 axls

Good answer. Thanks, but It is ide level configuration. It should be configured on project level (Project specific settings)

masterdany88 avatar Jul 07 '16 09:07 masterdany88

Thanks for reporting.

branflake2267 avatar Jul 07 '16 14:07 branflake2267

I could use a test project so I can verify how to define the logic. Do you have any archetypes that would work for generating such a project?

branflake2267 avatar Mar 02 '17 23:03 branflake2267