You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by James Richardson <ja...@db.com> on 2001/11/28 10:50:50 UTC

[Fwd: Classpath problems with FOP & Weblogic 6.0]

Since posting this, I have come to realise that this is a common 
problem. I have not seen though a definative solution for the problem.

Weblogic does seem to include a lot of the xerces / xalan code, but it 
is repackaged, so I think the problem lies with the order in which the 
classes are set in the webapp classpath. Like I mention below, I am 
willing and able to unjar the relevant jars on top of each other, then 
jar up the whole lot.

Would this solve my problem?


Thanks for any help!

James



(Originally posted to comp.text.xml & fop-user)

I apologise if this is an FAQ, but I am having a devil of a time using
FOP from a servlet inside Weblogic 6.0.

Basically, when using my servlet inside of Forte, under tomcat,
everything works fine, and alls good.

I am deploying all the various jar files in a webapp, under the
application lib directory, and this have not set an explicit
classpath. I assume that WL just picks them up in alphabetical order.
When running under WL I get one of the following exceptions:

javax.xml.transform.TransformerConfigurationException: System property
org.xml.sax.driver not specified
at

org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transformer
FactoryImpl.java:650)

at com.db.maelstrom.smtm.pdf.PDFReport.generateFO(PDFReport.java:160)

at com.db.maelstrom.smtm.pdf.PDFReport.generate(PDFReport.java:148)

at com.db.maelstrom.smtm.pdf.PDFReport.generate(PDFReport.java:128)

at
com.db.dbtrader.servlet.PDFpreTrade$PDFReportFormatter.run(PDFpreTrade.java:


99)

So I set the system property, I get a NoSuchMethod exception in
AxisXXXXXX (I am sorry, but I can't find the exact error ).

FOP is really cool, and I would love to be able to use it, but after
almost a day of trying to track down the .jar file incompatiabilities,
I am almost going mad!
I am using the following JAR files:
  > >
  > > avalon-framework-4.0.jar
  > > batik.jar
  > > BCEL.jar
  > > fop.jar
  > > gnu-regexp-1.1.2.jar
  > > jakarta-oro-2.0.4.jar
  > > jdom.jar
  > > jimi-1.0.jar
  > > jsfc.jar
  > > logkit-1.0b4.jar
  > > oracle.jar
  > > parser.jar
  > > xalan-2.0.0.jar
  > > xalanj1compat.jar
  > > xerces-1.2.3.jar
  > > xml.jar
  > > xmlparserv2.jar
  > > xsltc.jar
  > > xsltcrt.jar
  > >
(and some other jar files that are not XML related).

Do I need to unjar & then rejar some of these in a secret order to get
all these packages to work together????

It seems that maybe one version of a sax parser factory is doing the
'wrong thing'

Thanks _so_ much for any help you might be able to offer.

James

  >
  >




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


warning--not generating a pdf file

Posted by BRAHMA <br...@emis-intl.com>.
> Hi,
>
>      I tried to conevrt the following  one named Example1.fo into
> Example1.pdf by using org.apache.Fop application from
> org.apache....there I got an warning and unable to generate a .pdf
> file.Can any of  you help me in solving the problem.

   I even look into the faq's but I am unable to solve.

>
> I got the following error:-
>
> [d:\fop\myexamples]java org.apache.fop.apps.Fop Example2.fo Example2.pdf
>
> FOP @version@
> using SAX parser org.apache.xerces.parsers.SAXParser
> building formatting object tree
> setting up fonts
> WARNING: Unknown formatting object
> http://www.w3.org/1999/XSL/Transform^stylesh
> ERROR:
>
> ____________________________________________________
>
>   <?xml version="1.0"?>
> <xsl:stylesheet version="1.0"
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>   xmlns:fo="http://www.w3.org/1999/XSL/Format">
>   <xsl:output indent="yes"/>
>   <xsl:template match="/">
>     <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
>       <fo:layout-master-set>
>         <fo:simple-page-master master-name="only">
>           <fo:region-body/>
>         </fo:simple-page-master>
>       </fo:layout-master-set>
>       <fo:page-sequence master-name="only">
>         <fo:flow flow-name="xsl-region-body">
>           <xsl:apply-templates select="//ATOM"/>
>         </fo:flow>
>       </fo:page-sequence>
>     </fo:root>
>   </xsl:template>
>   <xsl:template match="ATOM">
>     <fo:block font-size="20pt" font-family="serif"
>               line-height="30pt">
>       <xsl:value-of select="NAME"/>
>     </fo:block>
>   </xsl:template>
> </xsl:stylesheet>
> _______________________________________________________
> thanks+regards
>   brahma