I recently installed grails-2.0.0.M1 (using STS) and got a deployment error from the grails war command:
Exception during schema validation: cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'. One of '{"http://java.sun.com/xml/ns/javaee":init-param}' is expected.
I opened the web.xml into XMLSpy, and found that the async-supported element name is invalid:
This deployment error occurs under Tomcat (our corporate cloud deployment container) when I generate a war file, but the application works fine in STS using the built-in Tc Server. (which creates no visible war).Code:<web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> . . . <filter> <filter-name>sitemesh</filter-name> <filter-class>org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter</filter-class> <async-supported>true</async-supported> </filter>
Any ideas?
Brian Gardner


Reply With Quote
