Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

What is the correct !DOCTYPE for the .gwt.xml file?

Morgan Creighton
5 years ago Jul 07, 2017 6:03pm
Henri Sara
5 years ago Jul 24, 2017 7:59am

I believe the correct DOCTYPE is (with the correct GWT version, e.g. "2.8.1" - check e.g. with "mvn dependency:list -DincludeGroupIds=com.google.gwt" in your project)

<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit ${gwt.version}//EN" "http://gwtproject.org/doctype/${gwt.version}/gwt-module.dtd">
Morgan Creighton
5 years ago Jul 24, 2017 8:14pm
Morgan Creighton
4 years ago Jul 25, 2018 4:13pm

Update: The URL given above is almost correct. (Actually I think it was correct for the past year, but something may have recently changed on the gwtproject.org website.)

You can no longer omit the "www." prefix. Under the hood, the website will return a 301 Moved Permanently, and redirect you to the fully prefixed address. So it prolly still works for validation purposes, but Eclipse can't deal with the 301.

The more correct URL is


Where ${gwt.version} is something like 2.7.0 or whatever your correct version number is.

Daniel Odhiambo
4 years ago Aug 07, 2018 10:05am