tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Gnass <>
Subject [Tomcat 5] x:transfrom throws exception
Date Sun, 11 Apr 2004 16:33:27 GMT

I am migrating a webapp from Tomcat 4 to Tomcat 5.0.19. Everything works
fine (including JSTL 1.1), only when using <x:transform> the following
exception is thrown:

java.lang.IllegalStateException: can't declare any more prefixes in this context
        at org.xml.sax.helpers.NamespaceSupport$Context.declarePrefix(Unknown Source)
        at org.xml.sax.helpers.NamespaceSupport.declarePrefix(Unknown Source)
        at org.apache.crimson.parser.Parser2.processAttributeNS(
        at org.apache.crimson.parser.Parser2.maybeElement(
        at org.apache.crimson.parser.Parser2.parseInternal(
        at org.apache.crimson.parser.Parser2.parse(
        at org.apache.crimson.parser.XMLReaderImpl.parse(
        at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(
        at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(
        at org.apache.taglibs.standard.tag.common.xml.TransformSupport.doStartTag(Unknown

I'm wondering why crimson is used (instead of xerces, which is located
in the common/endorsed dir), although java is invoked with the correct
-Djava.endorsed.dirs property.

Im using JDK 1.4.2 (same results in 1.4.1) on a Debian system. I've also
tried the latest nightly snapshot (jakarta-tomcat-5-20040410), which
does not change anything.

Again, the application works fine with  tomcat 4.1.30 (and JSTL 1.0).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message