xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Strong <Keith_Str...@newflyer.com>
Subject XSLT/Saxon no longer working after Batik compile
Date Tue, 12 Jun 2012 16:24:44 GMT
With some difficulty and the help of the archives, I was able to get the rasterizertask working.
However, now my ANT script no longer works.

It appears as if the default processor has been changed to Xalan, when previously I had been
using Saxon. All methods I have tried to force ANT to use Saxon result in the following error:

                at org.apache.xerces.parsers.AbstractSAXParser.setContentHandler(Unknown Source)
                at net.sf.saxon.Configuration.reuseStyleParser(Configuration.java:2346)
                at net.sf.saxon.PreparedStylesheet.loadStylesheetModule(PreparedStylesheet.java:261)
                at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:185)
                at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:132)
                at org.apache.tools.ant.taskdefs.optional.TraXLiaison.readTemplates(TraXLiaison.java:300)
                at org.apache.tools.ant.taskdefs.optional.TraXLiaison.createTransformer(TraXLiaison.java:317)
                at org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:178)
                at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:853)
                at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:389)
                at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
                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:597)
                at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
                at org.apache.tools.ant.Task.perform(Task.java:348)
                at org.apache.tools.ant.Target.execute(Target.java:392)
                at org.apache.tools.ant.Target.performTasks(Target.java:413)
                at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
                at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
                at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
                at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
                at org.apache.tools.ant.Main.runBuild(Main.java:811)
                at org.apache.tools.ant.Main.startAnt(Main.java:217)
                at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
                at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

I am using Windows XP, and followed the instructions here to get the rasterizer task working:


Though it did not state to do so, I found I needed to recompile the jar in order to get this
to take effect. Also, I was not able to build batik or the rasterizer task using the bat files
included with the source code, so instead used ANT to run the build.xmls.

I hope this is enough information for someone to give me some advice or assistance.


Please consider the environment before printing this e-mail.

CONFIDENTIALITY STATEMENT: This communication (and any and all information or material transmitted
with this communication) is confidential, may be privileged and is intended only for the use
of the intended recipient. If you are not the intended recipient, any review, retransmission,
circulation, distribution, reproduction, conversion to hard copy, copying or other use of
this communication, information or material is strictly prohibited and may be illegal. If
you received this communication in error or if it is forwarded to you without the express
authorization of New Flyer, please notify us immediately by telephone or by return email and
permanently delete the communication, information and material from any computer, disk drive,
diskette or other storage device or media. Thank you.

View raw message