ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9841] New: - java.lang.reflect.InvocationTargetException with a xslt task running FOP 0.20.3
Date Thu, 13 Jun 2002 14:43:26 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9841>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9841

java.lang.reflect.InvocationTargetException with a xslt task running FOP 0.20.3

           Summary: java.lang.reflect.InvocationTargetException with a xslt
                    task running FOP 0.20.3
           Product: Ant
           Version: 1.5Beta2
          Platform: Other
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: francis.andre@e-xmlmedia.fr


The build.xml
...
    <property name="fop.home"	value="../tools/FOP/fop-0.20.3"/>	    
    <path id="fop.class.path">
	<pathelement location="${fop.home}/build/fop.jar"/>
	<pathelement location="${fop.home}/lib/batik.jar"/>
	<pathelement location="${fop.home}/lib/xalan-2.0.0.jar"/>
	<pathelement location="${fop.home}/lib/xerces-1.2.3.jar"/>
	<pathelement location="${fop.home}/lib/avalon-framework-4.0.jar"/>
	<pathelement location="${fop.home}/lib/logkit-1.0.jar"/>
	<pathelement location="${fop.home}/lib/jimi-1.0.jar"/>
    </path>

    <target name="clean">
	<delete file="${basedir}/lic/licence.pdf"/>
	<delete file="${basedir}/lic/licence.txt"/>
	<delete file="${basedir}/lic/licence.fo"/>
    </target>

        <taskdef name="xslt" classname="org.apache.fop.tools.anttasks.Xslt">
		<classpath	refid="fop.class.path"/>
	</taskdef>
	<taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop">
		<classpath	refid="fop.class.path"/>
	</taskdef>

	<target	name="pdf.xsl">
		<xslt 	outfile="${basedir}/lic/licence.fo" 
				infile="${basedir}/lic/licence.xml" 
				xsltfile="${basedir}/lic/xml2fo.xsl">
		</xslt>
	</target>

	<target	name="txt">
		<xslt 	outfile="${basedir}/lic/licence.txt" 
				infile="${basedir}/lic/licence.xml" 
				xsltfile="${basedir}/lic/xml2txt.xsl" >
		</xslt>
	</target>
	
	<target	name="pdf" depends="pdf.xsl">
		<fop 	format="application/pdf" 
				outfile="${basedir}/lic/licence.pdf" 
				messagelevel="info"
                fofile="${basedir}/lic/licence.fo">
		</fop>
	</target>
....


Running the previous build.xml is producing the following exception:

Trying to override old definition of task xslt

txt:
     [xslt] ============================
     [xslt] xslt
     [xslt] in: C:\exmlmedia\dev\resources/lic/licence.xml
     [xslt] style: C:\exmlmedia\dev\resources/lic/xml2txt.xsl
     [xslt] out: C:\exmlmedia\dev\resources/lic/licence.txt
     [xslt] ============================
     [xslt] java.lang.reflect.InvocationTargetException: javax.xml.transform.T
nsformerFactoryConfigurationError: Provider for javax.xml.transform.Transforme
actory cannot be found
     [xslt]     at javax.xml.transform.TransformerFactory.newInstance(Unknown
urce)
     [xslt]     at org.apache.fop.tools.xslt.TraxTransform.getTransformer(Trax
ansform.java:48)
     [xslt]     at org.apache.fop.tools.xslt.TraxTransform.transform(TraxTrans
rm.java:100)
     [xslt]     at org.apache.fop.tools.xslt.TraxTransform.transform(TraxTrans
rm.java:64)
     [xslt]     at java.lang.reflect.Method.invoke(Native Method)
     [xslt]     at org.apache.fop.tools.xslt.XSLTransform.transform(XSLTransfo
.java:76)
     [xslt]     at org.apache.fop.tools.xslt.XSLTransform.transform(XSLTransfo
.java:24)
     [xslt]     at org.apache.fop.tools.anttasks.Xslt.transform(Xslt.java:173)
     [xslt]     at org.apache.fop.tools.anttasks.Xslt.execute(Xslt.java:278)
     [xslt]     at org.apache.tools.ant.Task.perform(Task.java)
     [xslt]     at org.apache.tools.ant.Target.execute(Target.java)
     [xslt]     at org.apache.tools.ant.Target.performTasks(Target.java)
     [xslt]     at org.apache.tools.ant.Project.executeTarget(Project.java)
     [xslt]     at org.apache.tools.ant.Project.executeTargets(Project.java)
     [xslt]     at org.apache.tools.ant.Main.runBuild(Main.java)
     [xslt]     at org.apache.tools.ant.Main.start(Main.java)
     [xslt]     at org.apache.tools.ant.Main.main(Main.java)

pdf.xsl:
     [xslt] ============================
     [xslt] xslt
     [xslt] in: C:\exmlmedia\dev\resources/lic/licence.xml
     [xslt] style: C:\exmlmedia\dev\resources/lic/xml2fo.xsl
     [xslt] out: C:\exmlmedia\dev\resources/lic/licence.fo
     [xslt] ============================
     [xslt] java.lang.reflect.InvocationTargetException: javax.xml.transform.T
nsformerFactoryConfigurationError: Provider for javax.xml.transform.Transforme
actory cannot be found
     [xslt]     at javax.xml.transform.TransformerFactory.newInstance(Unknown
urce)
     [xslt]     at org.apache.fop.tools.xslt.TraxTransform.getTransformer(Trax
ansform.java:48)
     [xslt]     at org.apache.fop.tools.xslt.TraxTransform.transform(TraxTrans
rm.java:100)
     [xslt]     at org.apache.fop.tools.xslt.TraxTransform.transform(TraxTrans
rm.java:64)
     [xslt]     at java.lang.reflect.Method.invoke(Native Method)
     [xslt]     at org.apache.fop.tools.xslt.XSLTransform.transform(XSLTransfo
.java:76)
     [xslt]     at org.apache.fop.tools.xslt.XSLTransform.transform(XSLTransfo
.java:24)
     [xslt]     at org.apache.fop.tools.anttasks.Xslt.transform(Xslt.java:173)
     [xslt]     at org.apache.fop.tools.anttasks.Xslt.execute(Xslt.java:278)
     [xslt]     at org.apache.tools.ant.Task.perform(Task.java)
     [xslt]     at org.apache.tools.ant.Target.execute(Target.java)
     [xslt]     at org.apache.tools.ant.Target.performTasks(Target.java)
     [xslt]     at org.apache.tools.ant.Project.executeTarget(Project.java)
     [xslt]     at org.apache.tools.ant.Project.executeTargets(Project.java)
     [xslt]     at org.apache.tools.ant.Main.runBuild(Main.java)
     [xslt]     at org.apache.tools.ant.Main.start(Main.java)
     [xslt]     at org.apache.tools.ant.Main.main(Main.java)

pdf:
      [fop] C:\exmlmedia\dev\resources\lic\licence.fo -> C:\exmlmedia\dev\reso
ces\lic\licence.pdf
      [fop] building formatting object tree
      [fop] [1]
      [fop] [2]
      [fop] [3]
      [fop] [4]
      [fop] [5]
      [fop] [6]
      [fop] [7]
      [fop] Parsing of document complete, stopping renderer

eng:

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message