Re: Taglib errors (again)

Attila Szegedi <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
On 2010.07.15., at 8:24, Daniel Dekany wrote:

> Wednesday, July 14, 2010, 8:49:05 PM, Brian Pontarelli wrote:
> 
>> Let me know if something jumps out at you.
> 
> Unfortunately, nothing. So maybe it's some problem with the default
> XML parser on that server. I briefly looked at
> freemarker/ext/jsp/TaglibFactory.java, and I have seen this:
> 
>        factory.setValidating(false);
> 
> So no validation against the (missing) DTD should occur, in which case
> I don't understand why the XML parser tries that, and then even thinks
> the root element should be "null". (At least as far as I remember,
> validation against the W3C XML Schema is unaffected by
> factory.setValidating and doesn't happen automatically, and
> TaglibFactory doesn't invoke it either.)

Yeah, we fixed that over two years ago. The commits are here:

<http://freemarker.svn.sourceforge.net/viewvc/freemarker/trunk/freemarker/src/freemarker/ext/jsp/TaglibFactory.java?r1=428&r2=615>
and
<http://freemarker.svn.sourceforge.net/viewvc/freemarker/branches/2.3/freemarker/src/freemarker/ext/jsp/TaglibFactory.java?r1=559&r2=614>

and the tracker issue is: <http://sourceforge.net/tracker/index.php?func=detail&aid=1725107&group_id=794&atid=100794>

Brian, what FreeMarker version are you using? This should've been fixed in 2.3.13.

Attila

> What happens if you add this
> before the first element in web.xml:
> 
>  <!DOCTYPE web-app [
>    <!ELEMENT web-app ANY>
>  ]>
> 
>> Thanks,
>> -bp
> 
> -- 
> Best regards,
> Daniel Dekany

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.