cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: [C2] latest C2 CVS && FOP
Date Wed, 06 Jun 2001 20:17:29 GMT
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 <crafterm@fztig938.bank.dresdner.net> 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:     webmaster@xml.apache.org
> > To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-cvs-help@xml.apache.org
>  
>  -- 
>          .....
>       ,,$$$$$$$$$,      Marcus Crafter
>      ;$'      '$$$$:    Computer Systems Engineer
>      $:         $$$$:   Open Software Associates GmbH
>       $       o_)$$$:   82-84 Mainzer Landstrasse
>       ;$,    _/\ &&:'   60327 Frankfurt Germany
>         '     /( &&&
>             \_&&&&'     Email : Marcus.Crafter@osa.de
>            &&&&.        Business Hours : +49 69 9757 200
>      &&&&&&&:           After Hours    : +49 69 49086750
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 


=====
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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message