Including mime-mapping in web.xml not working?

264 views
Skip to first unread message

andrew_d_mackenzie

unread,
Sep 3, 2010, 6:32:13 AM9/3/10
to Google Web Toolkit
When I include the following XML chunk:

<mime-mapping>
<extension>cer</extension>
<mime-type>application/x-x509-ca-cert</mime-type>
</mime-mapping>

in my web.xml deployment descriptor I get the following exception:

[WARN] Unable to process 'file:/C:/Users/andrew/Documents/DevProjects/
WebApps/ta/war/WEB-INF/web.xml' for servlet validation
javax.servlet.UnavailableException: Configuration problem
at
org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfiguration.java:
298)
at
org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfiguration.java:
222)
at com.google.gwt.dev.ServletValidator.create(ServletValidator.java:
69)
at com.google.gwt.dev.ServletValidator.create(ServletValidator.java:
52)
at com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:356)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1057)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
at com.google.gwt.dev.DevMode.main(DevMode.java:275)
Loading modules
com.bcntouch.ta.landing
Validating <servlet> tags for module 'landing'
For additional info see: file:/C:/Program%20Files/eclipse/
plugins/com.google.gwt.eclipse.sdkbundle.2.0.4_2.0.4.v201006301254/
gwt-2.0.4/doc/helpInfo/servletMappings.html
[WARN] Module declares 1 <servlet> declaration(s), but a
valid 'web.xml' was not found at 'C:\Users\andrew\Documents\DevProjects
\WebApps\ta\war\WEB-INF\web.xml'

abd my DevMode server is not started correctly.
Simply removing that element causes the error to go away.

It seems to appear in the 2.3 servlet web.xml DTD as specified, but
maybe
GWT doesn't fully support it?

Thomas Broyer

unread,
Sep 3, 2010, 8:43:45 AM9/3/10
to Google Web Toolkit


On Sep 3, 12:32 pm, andrew_d_mackenzie <and...@mackenzie-serres.net>
wrote:
See http://code.google.com/p/google-web-toolkit/issues/list?q=servletvalidator
I believe this is fixed in GWT 2.1 (not yet released, but you can try
milestones)

andrew_d_mackenzie

unread,
Sep 3, 2010, 2:30:52 PM9/3/10
to Google Web Toolkit
Thanks Tomas. I must get into the habit of checking issues list first!

I won't try the milestone, but will look forward to having it fixed in
2.1
Reply all
Reply to author
Forward
0 new messages