Hi Thomas,

I really didn't manage to solve the problem.
This is the error on Bea-Weblogic.

I have an SVG-File and the save_to_jpeg method. When I use it locally
from an static void main function it works
when I test it from a servlet (locally) I get: SAX2 driver class 
org.apache.xerces.parsers.SAXParser not found
I'm using the newest Batik distribution. 


Mon Jan 31 17:50:32 CET 2005:<I> <WebLogicServer> Read per-server properties 
/wwws/wlx51sp11/twmotw1/weblogic.properties
 java.lang.NoSuchMethodError
        at org.apache.batik.dom.util.SAXDocumentFactory.startElement(Unknown 
Source)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown 
Source)
        at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
 Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown 
Source)
        at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown 
Source)
        at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown Source)
        at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown Source)
        at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown 
Source)
        at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown 
Source)
        at xinfo.quality.qfk.chart.QFKChart.save_as_jpeg(QFKChart.java:252)
        xinfo.testix.Servlet2.doGet(Servlet2.java:45)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
        at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120)
        at weblogic.servlet.ServletServlet.service(ServletServlet.java:46)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
        at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120)
        at 
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:941)
        at 
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:905)
        at 
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
        at 
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:391)
        at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:273)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
null

-----Ursprüngliche Nachricht-----
Von: Thomas DeWeese [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 31. Januar 2005 13:39
An: Batik Users
Betreff: Re: AW: How to force Batik to use the Xerxes Parser when
transforming from SVG to JPEG?


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]


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

Reply via email to