2011/5/24 Mikołaj Rybiński <[email protected]>:
> Hi,
>
> I run into problems with StAX when using JSBML (0.8-b2 with
> dependencies bundled:
> http://sourceforge.net/projects/jsbml/files/jsbml/0.8-b2/jsbml-0.8-b2-with-dependencies.jar/download
> ); specifically, SBMLWriter.write method. JSBML depends, among others,
> on Woodstox StAX implementation (woodstox-core-lgpl-4.0.9.jar).

Re-edit (typo):

After pruning the problem (see attached workflow) I've reached a point
where it turned out that from beanshell in Taverna a
"com.sun.xml.internal.stream.XMLOutputFactoryImpl" implementation of
the "javax.xml.stream.XMLOutputFactory" interface is used, instead of
"com.ctc.wstx.stax.WstxOutputFactory".

> The latter is
> required as the JSBML code tries to set Woodstox-specific property.
> I've looked for a way to tell from the running code to use desired
> implementation. I've only found the following method:
>
>   System.setProperty("javax.xml.stream.XMLOutputFactory",
> "com.ctc.wstx.stax.WstxOutputFactory");
>
> but this results in
>
>   javax.xml.stream.FactoryFinder$ConfigurationError: Provider
> com.ctc.wstx.stax.WstxOutputFactory not found
>
> although the class is provided with installed, additional JSBML lib.
>
> Can I force Taverna (Beanshell interpreter?) to use the StAX
> implementation provided with Beanshell's JAR dependency? How?
>
Best regards,
Mikołaj

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/

Reply via email to