[Resin-interest] replace XMLOutputFactory implementation class in resin 3.1.8

2009-07-22 Thread Huitang Li
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
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] replace XMLOutputFactory implementation class in resin 3.1.8

2009-07-22 Thread Huitang Li
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 h...@kpi-consulting.net
To: resin-interest@caucho.com
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
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest