Re: xalan-2.0.0.jar and xerces-1.2.3.jar in classpath not working...
Oleg Tkachenko wrote: I am running fop in a servlet with jrun 3.1 as the servlet container. the only way I can get it to work is if I put xalan-2.0.0.jar and xerces-1.2.3.jar into my jdk/jre/lib/ext folder. I have all the other fop jars in my WEB-INF/lib folder. as long as I have xalan-2.0.0.jar and xerces-1.2.3.jar in the jdk/jre/lib/ext folder my servlet works, but if I move these to to the WEB-INF/lib it doesn't and I get this error: 500 Internal Server Error /servlet/FotoPDF: null java.lang.NoSuchMethodError at org.apache.fop.svg.SVGElement.init(SVGElement.java:199) That sounds very bizarre to me, but I guess it has something to do with batik.jar. Chances are you have another (old?) batik (or another svg lib?) somewhere in the classpath. The last line is the line in question: DOMImplementation impl = SVGDOMImplementation.getDOMImplementation(); String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI; doc = impl.createDocument(svgNS, "svg", null); There seems to be a comflict between DOM implementations here. Order in the classpath matters, and the jdk/jre/lib/ext directory is searched before the WEB-INF/lib (it's usually part of the bootclasspath). JRun ought to have some documentation detailing how the classpath is built and how other directories are searched. This should clear any misunderstandings. If in doubt, the JRun people should be asked for clarification. J.Pietschmann
RE: xalan-2.0.0.jar and xerces-1.2.3.jar in classpath not working ...
yes, this is the solution. I have replaced jaxp.jar and parser.jar with xalan.jar and xerces.jar and it worked. thank you very much. will -Original Message- From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 21, 2002 1:55 PM To: [EMAIL PROTECTED] Subject: Re: xalan-2.0.0.jar and xerces-1.2.3.jar in classpath not working ... Hello! Yes, that's probably the case. Well, it seems to me, JRun 3.1 uses rather old xml parser and xslt processor by default, (like websphere 3.5 does, btw), so you have to upgrade them (see http://www.macromedia.com/v1/Handlers/index.cfm?ID=22729&Method=Full) or override them by adding new versions in %JAVA_HOME%\jre\lib\ext directory, what you have done successfully. Carter, Will wrote: > thanks for the response... > > I have doublechecked my classpath and am certain that these are the only > jars it picks up: > > these files are in my only classpath (C:\Program > Files\Allaire\JRun\servers\lib): > ant.jar (289k 3/2/2002) > avalon-framework-4.0.jar (35k3/2/2002) > batik.jar (1896k 3/2/2002) > fop.jar (1806k 3/2/2002) > logkit-1.0.jar(69k3/2/2002) > xalanj1compat.jar (37k3/2/2002) > > if I put these to files in the above classpath, my servlet doesn't work. > xerces-1.2.3.jar (749k 3/2/2002) > xalan-2.0.0.jar (687k 3/2/2002) > > but if I put these 2 in my C:\jdk1.3.1_02\jre\lib\ext folder, the servlet > does. > > I think this message speaks to my problem. > http://www.opencms.org/majordomo/opencms-dev/0107/msg00020.html > > excerpt from above message --> > I have Cocoon (see: xml.apache.org) running on this W2000 system. For this > to work, I had to tackle the parser problem, i.e. replace the JRUN parser > with Xerces. I followed the instructions specific for Cocoon on the Allaire > website. Since Cocoon is running now, I am confident that I solved this > problem (There were some emails on this list dealing with this same > problem). I also passed the famous step 6 in the installation procedure. > end excerpt from above message --> > > At present, I can't find the directions to replace the JRUN parser with > Xerces. > > Do you all think I am barking up the wrong tree with this solution? > > thanks, > will > > -----Original Message----- > From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 21, 2002 11:59 AM > To: [EMAIL PROTECTED] > Subject: Re: xalan-2.0.0.jar and xerces-1.2.3.jar in classpath not > working... > > > Carter, Will wrote: > Hi, > >>I am running fop in a servlet with jrun 3.1 as the servlet container. >> >>the only way I can get it to work is if I put xalan-2.0.0.jar and >>xerces-1.2.3.jar into my jdk/jre/lib/ext folder. I have all the other fop >>jars in my WEB-INF/lib folder. >> >>as long as I have xalan-2.0.0.jar and xerces-1.2.3.jar in the >>jdk/jre/lib/ext folder my servlet works, but if I move these to to the >>WEB-INF/lib it doesn't and I get this error: >> >>500 Internal Server Error >>/servlet/FotoPDF: >> >>null >>java.lang.NoSuchMethodError >> at org.apache.fop.svg.SVGElement.init(SVGElement.java:199) > > > That sounds very bizarre to me, but I guess it has something to do with > batik.jar. Chances are you have another (old?) batik (or another svg lib?) > somewhere in the classpath. > -- Oleg Tkachenko Multiconn International, Israel
Re: xalan-2.0.0.jar and xerces-1.2.3.jar in classpath not working ...
Hello! Yes, that's probably the case. Well, it seems to me, JRun 3.1 uses rather old xml parser and xslt processor by default, (like websphere 3.5 does, btw), so you have to upgrade them (see http://www.macromedia.com/v1/Handlers/index.cfm?ID=22729&Method=Full) or override them by adding new versions in %JAVA_HOME%\jre\lib\ext directory, what you have done successfully. Carter, Will wrote: thanks for the response... I have doublechecked my classpath and am certain that these are the only jars it picks up: these files are in my only classpath (C:\Program Files\Allaire\JRun\servers\lib): ant.jar (289k 3/2/2002) avalon-framework-4.0.jar (35k3/2/2002) batik.jar (1896k 3/2/2002) fop.jar (1806k 3/2/2002) logkit-1.0.jar(69k3/2/2002) xalanj1compat.jar (37k3/2/2002) if I put these to files in the above classpath, my servlet doesn't work. xerces-1.2.3.jar (749k 3/2/2002) xalan-2.0.0.jar (687k 3/2/2002) but if I put these 2 in my C:\jdk1.3.1_02\jre\lib\ext folder, the servlet does. I think this message speaks to my problem. http://www.opencms.org/majordomo/opencms-dev/0107/msg00020.html excerpt from above message --> I have Cocoon (see: xml.apache.org) running on this W2000 system. For this to work, I had to tackle the parser problem, i.e. replace the JRUN parser with Xerces. I followed the instructions specific for Cocoon on the Allaire website. Since Cocoon is running now, I am confident that I solved this problem (There were some emails on this list dealing with this same problem). I also passed the famous step 6 in the installation procedure. end excerpt from above message --> At present, I can't find the directions to replace the JRUN parser with Xerces. Do you all think I am barking up the wrong tree with this solution? thanks, will -Original Message- From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 21, 2002 11:59 AM To: [EMAIL PROTECTED] Subject: Re: xalan-2.0.0.jar and xerces-1.2.3.jar in classpath not working... Carter, Will wrote: Hi, I am running fop in a servlet with jrun 3.1 as the servlet container. the only way I can get it to work is if I put xalan-2.0.0.jar and xerces-1.2.3.jar into my jdk/jre/lib/ext folder. I have all the other fop jars in my WEB-INF/lib folder. as long as I have xalan-2.0.0.jar and xerces-1.2.3.jar in the jdk/jre/lib/ext folder my servlet works, but if I move these to to the WEB-INF/lib it doesn't and I get this error: 500 Internal Server Error /servlet/FotoPDF: null java.lang.NoSuchMethodError at org.apache.fop.svg.SVGElement.init(SVGElement.java:199) That sounds very bizarre to me, but I guess it has something to do with batik.jar. Chances are you have another (old?) batik (or another svg lib?) somewhere in the classpath. -- Oleg Tkachenko Multiconn International, Israel
RE: xalan-2.0.0.jar and xerces-1.2.3.jar in classpath not working ...
thanks for the response... I have doublechecked my classpath and am certain that these are the only jars it picks up: these files are in my only classpath (C:\Program Files\Allaire\JRun\servers\lib): ant.jar (289k 3/2/2002) avalon-framework-4.0.jar (35k3/2/2002) batik.jar (1896k 3/2/2002) fop.jar (1806k 3/2/2002) logkit-1.0.jar(69k3/2/2002) xalanj1compat.jar (37k3/2/2002) if I put these to files in the above classpath, my servlet doesn't work. xerces-1.2.3.jar (749k 3/2/2002) xalan-2.0.0.jar (687k 3/2/2002) but if I put these 2 in my C:\jdk1.3.1_02\jre\lib\ext folder, the servlet does. I think this message speaks to my problem. http://www.opencms.org/majordomo/opencms-dev/0107/msg00020.html excerpt from above message --> I have Cocoon (see: xml.apache.org) running on this W2000 system. For this to work, I had to tackle the parser problem, i.e. replace the JRUN parser with Xerces. I followed the instructions specific for Cocoon on the Allaire website. Since Cocoon is running now, I am confident that I solved this problem (There were some emails on this list dealing with this same problem). I also passed the famous step 6 in the installation procedure. end excerpt from above message --> At present, I can't find the directions to replace the JRUN parser with Xerces. Do you all think I am barking up the wrong tree with this solution? thanks, will -Original Message- From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 21, 2002 11:59 AM To: [EMAIL PROTECTED] Subject: Re: xalan-2.0.0.jar and xerces-1.2.3.jar in classpath not working... Carter, Will wrote: Hi, > > I am running fop in a servlet with jrun 3.1 as the servlet container. > > the only way I can get it to work is if I put xalan-2.0.0.jar and > xerces-1.2.3.jar into my jdk/jre/lib/ext folder. I have all the other fop > jars in my WEB-INF/lib folder. > > as long as I have xalan-2.0.0.jar and xerces-1.2.3.jar in the > jdk/jre/lib/ext folder my servlet works, but if I move these to to the > WEB-INF/lib it doesn't and I get this error: > > 500 Internal Server Error > /servlet/FotoPDF: > > null > java.lang.NoSuchMethodError > at org.apache.fop.svg.SVGElement.init(SVGElement.java:199) That sounds very bizarre to me, but I guess it has something to do with batik.jar. Chances are you have another (old?) batik (or another svg lib?) somewhere in the classpath. -- Oleg Tkachenko Multiconn International, Israel
Re: xalan-2.0.0.jar and xerces-1.2.3.jar in classpath not working...
Carter, Will wrote: Hi, I am running fop in a servlet with jrun 3.1 as the servlet container. the only way I can get it to work is if I put xalan-2.0.0.jar and xerces-1.2.3.jar into my jdk/jre/lib/ext folder. I have all the other fop jars in my WEB-INF/lib folder. as long as I have xalan-2.0.0.jar and xerces-1.2.3.jar in the jdk/jre/lib/ext folder my servlet works, but if I move these to to the WEB-INF/lib it doesn't and I get this error: 500 Internal Server Error /servlet/FotoPDF: null java.lang.NoSuchMethodError at org.apache.fop.svg.SVGElement.init(SVGElement.java:199) That sounds very bizarre to me, but I guess it has something to do with batik.jar. Chances are you have another (old?) batik (or another svg lib?) somewhere in the classpath. -- Oleg Tkachenko Multiconn International, Israel