By the way, the woodstox xml code reads and writes xml stream with no problem, correctly processing the instream and generating the correct outstream.
I met similar xml processing problems a couple of years ago with resin. Those who got the same headache can try this approach to replace the default resin xml/stax implementation with woodstox implementation. It would be awesome if the future resin code handling xml/stax matches its counterparts. This problem cost me quite some development time. Thanks. NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. Nothing contained in this message or in any attachment shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. ----- Original Message ----- From: "Huitang Li" <[email protected]> To: "General Discussion for the Resin application server" <[email protected]> Sent: Wednesday, July 22, 2009 3:32:52 PM GMT -06:00 US/Canada Central Subject: Re: [Resin-interest] replace XMLOutputFactory implementation class in resin 3.1.8 Those parameters are set on the command line when starting resin, and it works. I downloaded resin 4.0.0 and found that trying to configure system properties in resin.xml still does not work. Maybe it is a deprecated feature already in resin to configure system properties with <system-property> element? Thanks. NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. Nothing contained in this message or in any attachment shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. ----- Original Message ----- From: "Huitang Li" <[email protected]> To: [email protected] Sent: Wednesday, July 22, 2009 1:27:44 PM GMT -06:00 US/Canada Central Subject: [Resin-interest] replace XMLOutputFactory implementation class in resin 3.1.8 Hi, I need to replace the com.caucho.xml.stream.XMLOutputFactoryImpl with woodstox stax implementation version, since it seems that the com.caucho.xml.stream.XMLStreamWriterImpl class created from com.caucho.xml.stream.XMLOutputFactoryImpl has bugs in it and cannot build good xml (I notice that one namespace in the expected xml is not defined). Is there a way to do such replacement in resin 3.1.8? I tried to put <system-property javax.xml.stream.XMLEventFactory="com.ctc.wstx.stax.WstxEventFactory"/> <system-property javax.xml.stream.XMLInputFactory="com.ctc.wstx.stax.WstxInputFactory"/> <system-property javax.xml.stream.XMLOutputFactory="com.ctc.wstx.stax.WstxOutputFactory"/> in resin.conf. It did not work. Somehow the EnvironmentClassLoader for the web app still grabs the resin implementation of stax. Please help. Thanks. NOTICE: This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. Nothing contained in this message or in any attachment shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. _______________________________________________ resin-interest mailing list [email protected] http://maillist.caucho.com/mailman/listinfo/resin-interest _______________________________________________ resin-interest mailing list [email protected] http://maillist.caucho.com/mailman/listinfo/resin-interest _______________________________________________ resin-interest mailing list [email protected] http://maillist.caucho.com/mailman/listinfo/resin-interest
