You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Viktor Gamov <vi...@gmail.com> on 2014/04/22 17:42:48 UTC
Include of external entity to web.xml is stopped working on 7.0.52
Hello tomcat users,
Before I can submit formal bug to the issue tracker, I want to ask here.
I have web.xml and I include some text file in it using !ENTITY tag:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" [
*<!ENTITY remoteClasses SYSTEM "generated/djn-settings.inc">*
]>
<web-app>
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>com.example.MyServlet</servlet-class>
<init-param>
<param-name>application.classes</param-name>
<param-value>
&remoteClasses;
</param-value>
</init-param>
</servlet>
</web-app>
It worked fine until version 7.0.52. With 7.0.52, I'm getting following
error during application deployment
https://gist.github.com/gAmUssA/11183618
<https://gist.github.com/gAmUssA/11183618>
*p.s.* Doesn't work with v8 as well.
Please, advise.
Thanks
--
With Best Regards,
Vik Gamov
Re: Include of external entity to web.xml is stopped working on 7.0.52
Posted by Konstantin Kolinko <kn...@gmail.com>.
2014-04-22 19:42 GMT+04:00 Viktor Gamov <vi...@gmail.com>:
> Hello tomcat users,
> Before I can submit formal bug to the issue tracker, I want to ask here.
> I have web.xml and I include some text file in it using !ENTITY tag:
>
As I already answered about a week a go, you have to enable this
feature in Context configuration.
See "xmlBlockExternal" attribute of Context.
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE web-app
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd" [
> *<!ENTITY remoteClasses SYSTEM "generated/djn-settings.inc">*
> ]>
> <web-app>
> <servlet>
> <servlet-name>MyServlet</servlet-name>
>
> <servlet-class>com.example.MyServlet</servlet-class>
> <init-param>
> <param-name>application.classes</param-name>
> <param-value>
> &remoteClasses;
> </param-value>
> </init-param>
> </servlet>
> </web-app>
>
> It worked fine until version 7.0.52. With 7.0.52, I'm getting following
> error during application deployment
>
> https://gist.github.com/gAmUssA/11183618
> <https://gist.github.com/gAmUssA/11183618>
>
If you are not citing the error message,
how to you expect others to find this discussion in the mailing list archives?
> *p.s.* Doesn't work with v8 as well.
>
> Please, advise.
>
> Thanks
>
> --
> With Best Regards,
> Vik Gamov
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Include of external entity to web.xml is stopped working on 7.0.52
Posted by Mark Thomas <ma...@apache.org>.
On 22/04/2014 16:42, Viktor Gamov wrote:
<snip/>
> It worked fine until version 7.0.52. With 7.0.52, I'm getting following
> error during application deployment
Read this:
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html
Look for this:
xmlBlockExternal
The default changed in 7.0.52.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org