Hi Christian,

[EMAIL PROTECTED] wrote:

Now I get this error when I use the class on the server:
Mon Jan 31 09:40:52 CET 2005:<E> <ServletContext-General> Servlet failed with 
Exception
java.lang.NoSuchMethodError
        at 
org.apache.batik.dom.util.SAXDocumentFactory.startElement(SAXDocumentFactory.java:471)

Can you tell me what is at line 471 in your copy of Batik. In mine it's a reference to HaltingThread which has always had the method referenced. There are two likely problems: 1) You have mixed Batik jars 2) You may be using a different JVM on the Server than locally. I mention this because I believe the old code referenced a method on 'Thread' which may not have existed in JDK 1.2 (Batik requires Java 1.3 now days).
This is my solution for forcing Batik to use Xerxes:
       t.addTranscodingHint(JPEGTranscoder.KEY_XML_PARSER_CLASSNAME,
                              "org.apache.xerces.parsers.SAXParser");

Ahh, I forgot you could do that. This is also a good solution.

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



Reply via email to