One more question, if you use the fop.jar built from cvs instead of fop-0_18_1.jar in
cocoon.war
does it fix the problem?
Thanks,
dims
--- Marcus Crafter <[EMAIL PROTECTED]> wrote:
> Hi Dims,
>
> Environment is latest C2 CVS code, untouched except for some actions
> I'm writing, on a debian linux system, jdk 1.3.02, tomcat 3.2.1.
>
> I also found the same problem when calling fop from the command line,
> and specifying the jar files to use explicitly. eg:
>
> java -classpath fop-0_18_1.jar:xerces_1_4_0.jar:batik-libs.jar:dom2.jar
>org.apache.fop.apps.Fop
> -fo ~/test.fo -pdf out.pdf
>
> generates a similar exception trace (identical except for entry point)
>
> The following call works fine however:
>
> java -classpath fop.jar:xerces_1_4_0.jar:batik-libs.jar:dom2.jar
>org.apache.fop.apps.Fop -fo
> ~/test.fo -pdf out.pdf
>
> (where fop.jar is fop built from CVS about 2 hours ago).
>
> and also:
>
> java -classpath fop-0_18_1.jar:xerces_1_4_0.jar:w3c.jar:batik-all.jar
>org.apache.fop.apps.Fop
> -fo ~/test.fo -pdf out.pdf
>
> Quite vexing. :-)
>
> Hope that helps, is there any more information that might be useful ?
>
> Cheers,
>
> Marcus
>
> On Wed, 6 Jun 2001, Davanum Srinivas wrote:
>
> > Marcus,
> > What is your environment? Can you also make sure that there are no duplicate/stale
>libs
> anywhere.
> > especially xalan, xerces, batik-all and that you are using the latest jars from
> xml-cocoon2\lib?
> >
> > The problem is that there were duplicate classes org.xml.sax.* org.w3c.dom.* in
>xalan, xerces
> and
> > batik-all directories. I got the Batik Team to give us a batik-lib.jar which does
>not have any
> > external classes. Now the three jars with duplicates are dom2.jar, xalan's and
>xerces's jar.
> Note
> > that we cannot get rid of dom2.jar as there are some classes which are present
>there that are
> used
> > by batik and which are not present in the other two jars.
> >
> > Now all bets are off if your environment has old stale org.w3c.dom.* (which is pre
>DOM2-final)
> > such as WebLogic Sp1. So for WebLogic SP1 i had posted a mail saying that people
>should place
> the
> > xerces jar in the jre\lib\ext or make sure that the CLASSPATH is fixed in the BAT
>file that
> starts
> > weblogic.
> >
> > Thanks,
> > dims
> >
> > --- Marcus Crafter <[EMAIL PROTECTED]> wrote:
> > > Hi Dims,
> > >
> > > We've just been playing with the latest CVS C2 source, and it seems
> > > like this checkin has broken the FOP support in C2.
> > >
> > > With the new batik-libs.jar we're getting the following exception:
> > >
> > > Exception in thread "main" java.lang.NoSuchMethodError at
> > > org.apache.fop.render.pdf.SVGRenderer.applyStyle(SVGRenderer.java:1762) at
> > > org.apache.fop.render.pdf.SVGRenderer.renderElement(SVGRenderer.java:2028) at
> > > org.apache.fop.render.pdf.SVGRenderer.renderSVG(SVGRenderer.java:169) at
> > > org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(PDFRenderer.java:367) at
> > > org.apache.fop.dom.svg.SVGArea.render(SVGArea.java:106) at
> > >
>org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(PDFRenderer.java:298) at
> > > org.apache.fop.layout.inline.ForeignObjectArea.render(ForeignObjectArea.java:93)
>at
> > > org.apache.fop.render.PrintRenderer.renderLineArea(PrintRenderer.java:442) at
> > > org.apache.fop.layout.LineArea.render(LineArea.java:129) at
> > > org.apache.fop.render.PrintRenderer.renderBlockArea(PrintRenderer.java:314) at
> > > org.apache.fop.layout.BlockArea.render(BlockArea.java:125) at
> > > org.apache.fop.render.PrintRenderer.renderAreaContainer(PrintRenderer.java:189)
>at
> > > org.apache.fop.layout.AreaContainer.render(AreaContainer.java:77) at
> > > org.apache.fop.render.PrintRenderer.renderAreaContainer(PrintRenderer.java:189)
>at
> > > org.apache.fop.layout.AreaContainer.render(AreaContainer.java:77) at
> > > org.apache.fop.render.PrintRenderer.renderAreaContainer(PrintRenderer.java:189)
>at
> > > org.apache.fop.layout.AreaContainer.render(AreaContainer.java:77) at
> > > org.apache.fop.render.PrintRenderer.renderAreaContainer(PrintRenderer.java:189)
>at
> > > <snip>...
> > >
> > > The exception is not seen in the cocoon.log because it's an error,
> > > I've attached a patch to have errors (ie. throwable) logged, so you
> > > can see it as well.
> > >
> > > After some testing we've seen that following situations do work:
> > >
> > > o previous batik-all.jar/w3c.jar and C2's current fop-0.18.1.jar
> > > o C2's current batik-libs.jar/dom2.jar and today's CVS fop
> > >
> > > It seems like some methods have changed in batik, which have been
> > > updated in FOP CVS, but unfortunately after the release of fop 0.18.1.
> > >
> > > Is it possible to update the FOP jar file in lib to a newer version as
> > > well ?
> > >
> > > Cheers,
> > >
> > > Marcus
> > >
> > >
> > > > dims 01/05/31 10:30:37
> > > >
> > > > Modified: lib xalan-2.1.0.jar
> > > > Added: lib batik-libs.jar dom2.jar
> > > > Removed: lib batik-all.jar w3c.jar
> > > > Log:
> > > > Moved to Latest Batik and Xalan2.1.0 from CVS. This is needed for getting
> > > > the Internationalization sample to work out of the box in Tomcat 4.0.
> > > > - Duplicate classes org.w3c.* and org.xml.* were removed from batik by using
>a new
> > > > target named "libs-jar"
> > > > - Added dom2.jar which has the necessary org.w3c.* files. This was picked up
> > > > from http://www.w3.org/DOM/DOMTM
> > > > - Xalan's org.xml.sax.helpers.AttributesImpl was updated to be in sync with
>xerces.
> > > >
> > > > Revision Changes Path
> > > > 1.2 +2610 -2574xml-cocoon2/lib/xalan-2.1.0.jar
> > > >
> > > > <<Binary file>>
> > > >
> > > >
> > > > 1.1 xml-cocoon2/lib/batik-libs.jar
> > > >
> > > > <<Binary file>>
> > > >
> > > >
> > > > 1.1 xml-cocoon2/lib/dom2.jar
> > > >
> > > > <<Binary file>>
> > > >
> > > >
> > > >
> > > > ----------------------------------------------------------------------
> > > > In case of troubles, e-mail: [EMAIL PROTECTED]
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > > --
> > > .....
> > > ,,$$$$$$$$$, Marcus Crafter
> > > ;$' '$$$$: Computer Systems Engineer
> > > $: $$$$: Open Software Associates GmbH
> > > $ o_)$$$: 82-84 Mainzer Landstrasse
> > > ;$, _/\ &&:' 60327 Frankfurt Germany
> > > ' /( &&&
> > > \_&&&&' Email : [EMAIL PROTECTED]
> > > &&&&. Business Hours : +49 69 9757 200
> > > &&&&&&&: After Hours : +49 69 49086750
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, email: [EMAIL PROTECTED]
> > >
> >
> >
> > =====
> > Davanum Srinivas, JNI-FAQ Manager
> > http://www.jGuru.com/faq/JNI
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail - only $35
> > a year! http://personal.mail.yahoo.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> >
>
> --
> .....
> ,,$$$$$$$$$, Marcus Crafter
> ;$' '$$$$: Computer Systems Engineer
> $: $$$$: Open Software Associates GmbH
> $ o_)$$$: 82-84 Mainzer Landstrasse
> ;$, _/\ &&:' 60327 Frankfurt Germany
> ' /( &&&
> \_&&&&' Email : [EMAIL PROTECTED]
> &&&&. Business Hours : +49 69 9757 200
> &&&&&&&: After Hours : +49 69 49086750
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]