To answer my own question,

the problem can be fixed by placing the newest xalan.jar (2.6.0) in WEB-INF/lib.

Thanks to Jouko Johansson, who obviously ran into the same problem:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg119042.html
||
-Felix

Felix Gnass wrote:

Hello,

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(Parser2.java:1632)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1481)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:934)


at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:750)

at org.apache.taglibs.standard.tag.common.xml.TransformSupport.doStartTag(Unknown Source)


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).

-Felix


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to