Re: [css2xslfo-support] (no subject)
Brought to you by:
wdonne
From: <wer...@re...> - 2007-01-12 08:25:48
|
Andreas, The bootclasspath is only necessary if the built-in XSLT processor is not good enough. It should still work, but in your example there was only the XML parser Xerces in the bootclasspath, not Xalan itself. That is why the class couldn't be found. What I still don't understand is how the system property that drives the transformer factory resolution got set to refer to Xalan. Regards, Werner. Andreas Jung wrote: > Removing the bootclasspath works with. You recommended the bootclasspa= th > some time ago. Obviously this is no longer needed under JDK 1.6. (I am = not > a Java guru in order to figure out why). But I can detect the JDK=20 > Version and care about the proper handling of the bootclasspath Option. >=20 > Andreas >=20 >=20 >=20 > """ >=20 > Andreas, >=20 > Xalan should be added to the boot class path. You do that as follows: >=20 > java -Xbootclasspath/p:<xalan.jar> -jar css2xslfo.jar /home/ajung/test.= html >=20 > Regards, >=20 > Werner. >=20 > Andreas Jung wrote: >> Jup. >> >> --On Freitag, 25. M=E4rz 2005 13:38 Uhr +0100 Werner Donn=E9 >> <wer...@re...> wrote: >> >>> Hi Andreas, >>> >>> Is it JDK 1.5 you are using? >>> >>> Werner. >>> >>> Andreas Jung wrote: >>> >>>> >>>> Trying to convert a simple XHTML fails (also when I added xalan.jar = to >>>> $CLASSPATH): >>>> >>>> >>>> java -jar css2xslfo.jar /home/ajung/test.html >>>> Exception in thread "main" >>>> javax.xml.transform.TransformerFactoryConfigurationError: Provider >>>> org.apache.xalan.processor.TransformerFactoryImpl not found >>>> at >>>> javax.xml.transform.TransformerFactory.newInstance(TransformerFactor= y.ja=20 >>>> >>>> va:109) >>>> >>>> at >>>> be.re.css.CSSToXSLFOFilter.loadStyleSheet(CSSToXSLFOFilter.java:211) >>>> at be.re.css.CSSToXSLFOFilter.<clinit>(CSSToXSLFOFilter.java:= 39) >>>> at be.re.css.CSSToXSLFO.convert(CSSToXSLFO.java:112) >>>> at be.re.css.CSSToXSLFO.main(CSSToXSLFO.java:277) >>>> >=20 > """" >=20 > --On 11. Januar 2007 10:10:07 +0100 Werner Donn=E9 <wer...@re...>= =20 > wrote: >=20 >> Hi Andreas, >> >> I just tried it with the CSSToXSLFO manual and it works fine. >> The only difference I see is that I didn't modify the bootclasspath. >> It is strange that the class >> org.apache.xalan.processor.TransformerFactoryImpl >> is the resolution for the transformer factory, because it isn't >> specified anywhere and the default factory in JDK1.6.0 is >> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl. A= t >> least I didn't find any other. >> >> Would you have Xalan somewhere in an extension directory like >> /home/ajung/jdk1.6.0/jre/lib/ext? >> >> Best regards, >> >> Werner. >> >> Andreas Jung wrote: >>> Hello Werner, >>> >>> I am trying to run csstoxsl (1.3.X) together under JDK 1.6.0. The sam= e >>> code that worked with JDK 1.4 and 1.5 now fails under 1.6. I also tri= ed >>> to update >>> Xalan to 2.7.1 however without success. >>> >>> Any ideas what might be the problem? >>> >>> Andreas >>> >>> >>> 2007-01-11 08:40:34 INFO xslfo running: "/home/ajung/jdk1.6.0/bin/jav= a" >>> -Xbootclasspath/p:"/data6/home/sandkasten/ajung/hr2_head/COMMON/Zope/= hel >>> pers/lib/xslfo/lib_xalan/xercesImpl.jar":"/data6/home/sandkasten/ajun= g/h >>> r2_head/COMMON/Zope/helpers/lib/xslfo/lib_xalan/xml-apis.jar" -Xms12= 8m >>> -Xmx128m -jar >>> "/data6/home/sandkasten/ajung/hr2_head/COMMON/Zope/helpers/lib/xslfo/= lib >>> _css2xslfo/css2xslfo.jar" >>> "/data6/home/sandkasten/ajung/hr2_head/COMMON/Zope/tmp/xslfo/tmp6B8ox= N/t >>> mpN5ZXz6.html" -fo >>> "/data6/home/sandkasten/ajung/hr2_head/COMMON/Zope/tmp/xslfo/tmp6B8ox= N/t >>> mpO_eDkc.html.fo" country=3Den >>> 2007-01-11 08:40:34 INFO xslfo exitcode=3D0 >>> 2007-01-11 08:40:34 INFO xslfo output: Provider >>> org.apache.xalan.processor.TransformerFactoryImpl not found >>> >>> >>> ---------------------------------------------------------------------= --- >>> >>> ---------------------------------------------------------------------= ----=20 >>> >>> Take Surveys. Earn Cash. Influence the Future of IT >>> Join SourceForge.net's Techsay panel and you'll get the chance to sha= re >>> your opinions on IT & business topics through brief surveys - and ear= n >>> cash >>> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CI= D=3DDEVDEV=20 >>> >>> >>> >>> ---------------------------------------------------------------------= --- >>> >>> _______________________________________________ >>> css2xslfo-support mailing list >>> css...@li... >>> https://lists.sourceforge.net/lists/listinfo/css2xslfo-support >> >> --=20 >> Werner Donn=E9 -- Re >> Engelbeekstraat 8 >> B-3300 Tienen >> tel: (+32) 486 425803 e-mail: wer...@re... >=20 >=20 >=20 >=20 > -----------------------------------------------------------------------= - >=20 > -----------------------------------------------------------------------= -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share= your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV >=20 >=20 > -----------------------------------------------------------------------= - >=20 > _______________________________________________ > css2xslfo-support mailing list > css...@li... > https://lists.sourceforge.net/lists/listinfo/css2xslfo-support --=20 Werner Donn=E9 -- Re Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |