gretty
gretty copied to clipboard
DOCTYPE is disallowed
Trying to execute tomcatRun, got following message:
DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true.
It seems like a Groovy issue. But is it a way to set the feature to false?
I get this as well, but I get it immediately during configuration.
I got the same error. Gretty does not seem to support Servlet 2.3 deployment descriptors. DOCTYPE is required there and parser is not set up to allow DOCTYPE declaration. Probably best to use Servlet 2.4 or later. I do not have workaround for 2.3
I got same error also. Any workaround?
Same error at config time
Any details available on Gretty configuration, build.gradle
etc., Tomcat version in-use? Is Servlet >= 2.4 ever effected?
Servlet 2.3 was released August 2001, 2.4 November 2003 and 4.0 is current, so if this only impacts Servlet <= 2.3 it's hard to see it getting fixed without a PR contribution from a concerned developer.
gradle 4.6. There is a Jetty-eclipse 9.4.7. in the classpath. Servlet api 3.1.0 Thanks!
@rsivan Can you share parts of your web.xml
? Does it contain a DOCTYPE
declaration, and if-so, why? For Servlet 3.1 I wouldn't expect that, rather an xmlns
and xsi:schemaLocation
.
Oops, you are right, thank you so much. That fixed my issue!