Wednesday, November 10, 2010

Received IOException parsing the input stream for … web.xml

If you use Eclipse with the Google plugin to do development for App Engine, you might one day encounter the following error when you try to deploy your app:

  Received IOException parsing the input stream for …path/to/your/web.xml

This only happend when I updated my plugin recently, which is now:

  Google Plugin for Eclipse 3.5   1.4.0.v201010280047

The problem was the DTD in the header of the web.xml file, which was out of date. If you create a brand new Google Web Application Project, you can steal the proper header from that project.

Here’s what my web.xml header used to look like, causing deployment failure:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"


And here’s what the new header looks like:

<?xml version="1.0" encoding="utf-8"?>
<web-app xmlns:xsi=""
xsi:schemaLocation="" version="2.5">

No comments:

Post a Comment