Subject: Re: fop 0.95 error



Hi Jeremias, now i got the saxon, i got the following error with the log4j : log4j:WARN No appenders could be found for logger (org.apache.fop.render.RendererFactory).
log4j:WARN Please initialize the log4j system properly.   log4j included in classpath, and the jar file is there.   The script to call log4j is below: LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
export LOGCHOICE LOGFILE1=-Dlog4j.configuration=file:conf/log4j.xsl.properties
export LOGFILE1 LOGFILE2=-Dlog4j.configuration=file:conf/log4j.pdf.properties
export LOGFILE2 LOGLEVEL=-Dorg.apache.commons.logging.simplelog.defaultlog=INFO
export LOGLEVEL  
CONTENT OF  log4j.pdf.properties # FO to PDF logging configuration log4j.rootLogger=ERROR, A1 log4j.appender.A1=org.apache.log4j.FileAppender log4j.appender.A1.File=debug_pdf.txt
log4j.appender.A1.Append=false
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
CONTENT of  log4j.xsl.properties
# XML to FO logging configuration log4j.rootLogger=ERROR, A1 log4j.appender.A1=org.apache.log4j.FileAppender log4j.appender.A1.File=debug_xsl.txt
log4j.appender.A1.Append=false
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
  thanks.  
 
From: Jeremias Maerki <dev@xxxxxxxxxxxxxxxxxx>
To: fop-users@xxxxxxxxxxxxxxxxxxxxxx
Sent: Wednesday, February 18, 2009 9:39:47 AM
Subject: Re: fop 0.95 error

Tuan,

yes, Saxon is a separate software. You can download it from:
http://saxon.sourceforge.net/

Please note that Saxon is not required for FOP. It's completely optional
but if your stylesheets depend on it, it's a different story.

On 18.02.2009 17:25:11 Tuan Quan wrote:
> Jeremias,
> then my problem is I can not find any library containing Saxon so I can set in the classpath.
> Is Saxon a separate software? Where can i download it from ?
>
> thanks.
> tuan.
>
>  
>
>
>
> ________________________________
> From: Jeremias Maerki <dev@xxxxxxxxxxxxxxxxxx>
> To: fop-users@xxxxxxxxxxxxxxxxxxxxxx
> Sent: Wednesday, February 18, 2009 1:00:56 AM
> Subject: Re: fop 0.95 error
>
> I assume you specified -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl
> but forgot to put Saxon in the classpath.
>
> On 18.02.2009 00:53:08 Tuan Quan wrote:
> > Anyone knows why i have this error. thanks.
> >
> >
> >
> > ava.lang.reflect.InvocationTargetException
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:324)
> >         at org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:132)
> >         at org.apache.fop.cli.Main.main(Main.java:199)
> >
> > Caused by: javax.xml.transform.TransformerFactoryConfigurationError: Provider net.sf.saxon.TransformerFactoryI
> > mpl not found
> >         at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:100)
> >         at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:191)
> >         at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:141)
> >         at org.apache.fop.cli.Main.startFOP(Main.java:168)
> >
> >
> > Tuan.
>
>
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx
> For additional commands, e-mail: fop-users-help@xxxxxxxxxxxxxxxxxxxxxx




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: fop-users-help@xxxxxxxxxxxxxxxxxxxxxx



Privacy