Re: [Axis2] SAX or DOM (Possibly O/T)
I dont have the class you specified dir /s *Factory*.class Volume in drive C has no label. Volume Serial Number is 4748-654D Directory of C:\wstx\org\codehaus\stax2 08/29/2006 10:08 PM 1,467 XMLInputFactory2.class 08/29/2006 10:08 PM 1,214 XMLOutputFactory2.class 2 File(s) 2,681 bytes Directory of C:\wstx\org\codehaus\stax2\evt 08/29/2006 10:08 PM 597 XMLEventFactory2.class 1 File(s)597 bytes Directory of C:\wstx\org\codehaus\stax2\io 08/29/2006 10:08 PM 378 EscapingWriterFactory.class 1 File(s)378 bytes Directory of C:\wstx\org\codehaus\stax2\validation 08/29/2006 10:08 PM 7,089 XMLValidationSchemaFactory.class 1 File(s) 7,089 bytes which specific classname is the substitute for Axiom's bea provider class? Martin- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: "Davanum Srinivas" <[EMAIL PROTECTED]> To: "Martin Gainty" <[EMAIL PROTECTED]> Cc: Sent: Monday, October 09, 2006 9:35 AM Subject: Re: [Axis2] SAX or DOM (Possibly O/T) > Martin, > > I am repeating... :) You don't need the > com.bea.xml.stream.MXParserFactory, we advise you to use the > woodstox's stax provider. If you use the jars that i mentioned, you > will not need this com.bea provider. > > -- dims > > On 10/9/06, Martin Gainty <[EMAIL PROTECTED]> wrote: >> Dims- >> >> I apologise for not providing a clear description >> I need the specific provider class com.bea.xml.stream.MXParserFactory >> which is being invoked by Factory class XMLInputFactory.newInstance() >> As this is an AXIOM topic originally brought up by Thilina this ispossibly >> O/T for this list.. >> >> Martin-- >> >> Information in this message, including attachments, is intended only for the >> confidential use of the recipient(s) named >> above. This message may be an Attorney-Client communication and as such is >> privileged and confidential. >> If you are not an intended recipient of this message, or an agent >> responsible for delivering it to an intended recipient >> , you are hereby notified that you have received this message in error, that >> any review, dissemination, distribution, >> or copying of this message is strictly prohibited. If you have received this >> message in error, please notify the sender >> immediately, delete the message, and return any hard copy print-outs. >> This e-mail communication and any attachments may contain confidential and >> privileged information for the use of the >> designated recipients named above. If you are not the intended recipient, >> you are hereby notified that you have received >> this communication in error and that any review, disclosure, dissemination, >> distribution or copying of it or its >> conte >> - Original Message - >> From: "Davanum Srinivas" <[EMAIL PROTECTED]> >> To: ; "Martin Gainty" <[EMAIL PROTECTED]> >> Sent: Sunday, October 08, 2006 7:44 PM >> Subject: Re: [Axis2] SAX or DOM (Possibly O/T) >> >> >> > martin, >> > >> > no, you don't need that. all u need is the woodstox parser and staxapi jar. >> > >> > http://ws.zones.apache.org/~dims/maven/stax/jars/stax-api-1.0.1.jar >> > http://ws.zones.apache.org/~dims/maven/woodstox/jars/wstx-asl-3.0.1.jar >> > >> > thx, >> > dims >> > >> > On 10/8/06, Martin Gainty <[EMAIL PROTECTED]> wrote: >> >> Good Evening Thilina- >> >> >> >> I dl'ed AXIOM and made TestDriver.java >> >> >> >> import java.io.*; >> >> import java.sql.*; >> >> import javax.xml.stream.*; >> >> import org.apache.log4j.PropertyConfigurator; >> >> import org.apache.log4j.Category; >> >> import org.apache.axiom.om.impl.builder.*; >> >> import org.apache.axiom.om.*; >> >> //import com.edischarge.batchloader.Patient; >> >> >> >> public class TestDriver { >> >> /*sourceFile specification ...MCG */ >> >> private String sourceFile = null; >> >> >> >> /** Database Connection Object */ >> >&
Re: [Axis2] SAX or DOM (Possibly O/T)
Martin, I am repeating... :) You don't need the com.bea.xml.stream.MXParserFactory, we advise you to use the woodstox's stax provider. If you use the jars that i mentioned, you will not need this com.bea provider. -- dims On 10/9/06, Martin Gainty <[EMAIL PROTECTED]> wrote: Dims- I apologise for not providing a clear description I need the specific provider class com.bea.xml.stream.MXParserFactory which is being invoked by Factory class XMLInputFactory.newInstance() As this is an AXIOM topic originally brought up by Thilina this ispossibly O/T for this list.. Martin-- Information in this message, including attachments, is intended only for the confidential use of the recipient(s) named above. This message may be an Attorney-Client communication and as such is privileged and confidential. If you are not an intended recipient of this message, or an agent responsible for delivering it to an intended recipient , you are hereby notified that you have received this message in error, that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately, delete the message, and return any hard copy print-outs. This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its conte - Original Message - From: "Davanum Srinivas" <[EMAIL PROTECTED]> To: ; "Martin Gainty" <[EMAIL PROTECTED]> Sent: Sunday, October 08, 2006 7:44 PM Subject: Re: [Axis2] SAX or DOM (Possibly O/T) > martin, > > no, you don't need that. all u need is the woodstox parser and staxapi jar. > > http://ws.zones.apache.org/~dims/maven/stax/jars/stax-api-1.0.1.jar > http://ws.zones.apache.org/~dims/maven/woodstox/jars/wstx-asl-3.0.1.jar > > thx, > dims > > On 10/8/06, Martin Gainty <[EMAIL PROTECTED]> wrote: >> Good Evening Thilina- >> >> I dl'ed AXIOM and made TestDriver.java >> >> import java.io.*; >> import java.sql.*; >> import javax.xml.stream.*; >> import org.apache.log4j.PropertyConfigurator; >> import org.apache.log4j.Category; >> import org.apache.axiom.om.impl.builder.*; >> import org.apache.axiom.om.*; >> //import com.edischarge.batchloader.Patient; >> >> public class TestDriver { >> /*sourceFile specification ...MCG */ >> private String sourceFile = null; >> >> /** Database Connection Object */ >> private Connection con = null; >> >> /** Log4J log object */ >> private static Category log = Category.getInstance( TestDriver.class.getName()); >> //nothing for now >> public TestDriver() >> { >> } >> >> public static void main(String[] args) >> { >> try >> { >> System.out.println("args[0] == "+args[0]); >> >> //create the parser >> java.io.File file = new java.io.File(args[0]); >> java.io.FileInputStream fis = new java.io.FileInputStream(file); >> >> XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(fis); >> >> //create the builder >> StAXOMBuilder builder = new StAXOMBuilder(parser); >> >> //get the root element (in this case the envelope) >>OMElement documentElement = builder.getDocumentElement(); >> } >> catch(java.lang.ArrayIndexOutOfBoundsException iao) >> { >> System.out.println("USAGE: TestDriver XMLFileNameToParse"); >> return; >>} >>catch(java.io.FileNotFoundException fnf) >>{ >> System.out.println("FileNotFoundException has been found message = "+fnf.getMessage()); >> return; >>} >>catch(javax.xml.stream.XMLStreamException xml_excp) >>{ >> System.out.println("XMLStreamException has been encountered"); >> return; >> } >>} //end main >> >> } //end class TestDriver >> >> after compiling I run it as >> >> java TestDriver OMTutorial.xml >> >> args[0] == OMTutorial.xml >> Exception in thread "main" javax.xml.stream.FactoryConfigurationError: Provider >> com.bea.xml.stream.MXParserFactory not found >> at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72) >> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176) >> at javax.xml.stream.FactoryFinder.find(FactoryF
Re: [Axis2] SAX or DOM (Possibly O/T)
Dims- I apologise for not providing a clear description I need the specific provider class com.bea.xml.stream.MXParserFactory which is being invoked by Factory class XMLInputFactory.newInstance() As this is an AXIOM topic originally brought up by Thilina this ispossibly O/T for this list.. Martin-- Information in this message, including attachments, is intended only for the confidential use of the recipient(s) named above. This message may be an Attorney-Client communication and as such is privileged and confidential. If you are not an intended recipient of this message, or an agent responsible for delivering it to an intended recipient , you are hereby notified that you have received this message in error, that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately, delete the message, and return any hard copy print-outs. This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its conte - Original Message - From: "Davanum Srinivas" <[EMAIL PROTECTED]> To: ; "Martin Gainty" <[EMAIL PROTECTED]> Sent: Sunday, October 08, 2006 7:44 PM Subject: Re: [Axis2] SAX or DOM (Possibly O/T) > martin, > > no, you don't need that. all u need is the woodstox parser and staxapi jar. > > http://ws.zones.apache.org/~dims/maven/stax/jars/stax-api-1.0.1.jar > http://ws.zones.apache.org/~dims/maven/woodstox/jars/wstx-asl-3.0.1.jar > > thx, > dims > > On 10/8/06, Martin Gainty <[EMAIL PROTECTED]> wrote: >> Good Evening Thilina- >> >> I dl'ed AXIOM and made TestDriver.java >> >> import java.io.*; >> import java.sql.*; >> import javax.xml.stream.*; >> import org.apache.log4j.PropertyConfigurator; >> import org.apache.log4j.Category; >> import org.apache.axiom.om.impl.builder.*; >> import org.apache.axiom.om.*; >> //import com.edischarge.batchloader.Patient; >> >> public class TestDriver { >> /*sourceFile specification ...MCG */ >> private String sourceFile = null; >> >> /** Database Connection Object */ >> private Connection con = null; >> >> /** Log4J log object */ >> private static Category log = Category.getInstance( >> TestDriver.class.getName()); >> //nothing for now >> public TestDriver() >> { >> } >> >> public static void main(String[] args) >> { >> try >> { >> System.out.println("args[0] == "+args[0]); >> >> //create the parser >> java.io.File file = new java.io.File(args[0]); >> java.io.FileInputStream fis = new java.io.FileInputStream(file); >> >> XMLStreamReader parser = >> XMLInputFactory.newInstance().createXMLStreamReader(fis); >> >> //create the builder >> StAXOMBuilder builder = new StAXOMBuilder(parser); >> >> //get the root element (in this case the envelope) >>OMElement documentElement = builder.getDocumentElement(); >> } >> catch(java.lang.ArrayIndexOutOfBoundsException iao) >> { >> System.out.println("USAGE: TestDriver XMLFileNameToParse"); >> return; >>} >>catch(java.io.FileNotFoundException fnf) >>{ >> System.out.println("FileNotFoundException has been found message = >> "+fnf.getMessage()); >> return; >>} >>catch(javax.xml.stream.XMLStreamException xml_excp) >>{ >> System.out.println("XMLStreamException has been encountered"); >> return; >> } >>} //end main >> >> } //end class TestDriver >> >> after compiling I run it as >> >> java TestDriver OMTutorial.xml >> >> args[0] == OMTutorial.xml >> Exception in thread "main" javax.xml.stream.FactoryConfigurationError: >> Provider >> com.bea.xml.stream.MXParserFactory not found >> at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72) >> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176) >> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92) >> at >> javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136 >> ) >> at TestDriver.main(TestDriver.java:35) >> >> I need the jsr173_ri.jar to resolve the com.bea.xm
Re: [Axis2] SAX or DOM (Possibly O/T)
martin, no, you don't need that. all u need is the woodstox parser and staxapi jar. http://ws.zones.apache.org/~dims/maven/stax/jars/stax-api-1.0.1.jar http://ws.zones.apache.org/~dims/maven/woodstox/jars/wstx-asl-3.0.1.jar thx, dims On 10/8/06, Martin Gainty <[EMAIL PROTECTED]> wrote: Good Evening Thilina- I dl'ed AXIOM and made TestDriver.java import java.io.*; import java.sql.*; import javax.xml.stream.*; import org.apache.log4j.PropertyConfigurator; import org.apache.log4j.Category; import org.apache.axiom.om.impl.builder.*; import org.apache.axiom.om.*; //import com.edischarge.batchloader.Patient; public class TestDriver { /*sourceFile specification ...MCG */ private String sourceFile = null; /** Database Connection Object */ private Connection con = null; /** Log4J log object */ private static Category log = Category.getInstance( TestDriver.class.getName()); //nothing for now public TestDriver() { } public static void main(String[] args) { try { System.out.println("args[0] == "+args[0]); //create the parser java.io.File file = new java.io.File(args[0]); java.io.FileInputStream fis = new java.io.FileInputStream(file); XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(fis); //create the builder StAXOMBuilder builder = new StAXOMBuilder(parser); //get the root element (in this case the envelope) OMElement documentElement = builder.getDocumentElement(); } catch(java.lang.ArrayIndexOutOfBoundsException iao) { System.out.println("USAGE: TestDriver XMLFileNameToParse"); return; } catch(java.io.FileNotFoundException fnf) { System.out.println("FileNotFoundException has been found message = "+fnf.getMessage()); return; } catch(javax.xml.stream.XMLStreamException xml_excp) { System.out.println("XMLStreamException has been encountered"); return; } } //end main } //end class TestDriver after compiling I run it as java TestDriver OMTutorial.xml args[0] == OMTutorial.xml Exception in thread "main" javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72) at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176) at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92) at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136 ) at TestDriver.main(TestDriver.java:35) I need the jsr173_ri.jar to resolve the com.bea.xml.stream.MXParserFactory not found error Thanks, Martin- Information in this message, including attachments, is intended only for the confidential use of the recipient(s) named above. This message may be an Attorney-Client communication and as such is privileged and confidential. If you are not an intended recipient of this message, or an agent responsible for delivering it to an intended recipient , you are hereby notified that you have received this message in error, that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately, delete the message, and return any hard copy print-outs. This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its conte - Original Message - From: "Thilina Gunarathne" <[EMAIL PROTECTED]> To: ; "Martin Gainty" <[EMAIL PROTECTED]> Sent: Saturday, October 07, 2006 3:08 PM Subject: Re: [Axis2] SAX or DOM > You can use the following..Those are the once we are using with Axis2 latest... > > http://ws.zones.apache.org/~dims/maven/stax/jars/stax-api-1.0.1.jar > http://ws.zones.apache.org/~dims/maven/woodstox/jars/wstx-asl-3.0.1.jar > > ~Thilina > > On 10/7/06, Martin Gainty <[EMAIL PROTECTED]> wrote: >> Good Morning Thilina >> >> Do you know where we can acquire the jsr173_ri.jar? >> >> Thanks, >> >> Martin- >> This e-mail communication and any attachments may contain confidential and privileged information for the use of the >> designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received >> this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its >> conte >> - Original Message - >> From: "Thilina Gunarathne" <[EMAIL PROTECTED]> >> To: >> Sent: Saturday, October 07, 2006 6:49 AM >> Subject: Re: [Axis2] SAX or DOM >> >> >> > Axis2 uses StAX parsing, which is also called deferred parsing.. It is >> > possible for Axis2 to start processing the message before the entire >> > request has been transmitted. This works even fo
Re: [Axis2] SAX or DOM (Possibly O/T)
Good Evening Thilina- I dl'ed AXIOM and made TestDriver.java import java.io.*; import java.sql.*; import javax.xml.stream.*; import org.apache.log4j.PropertyConfigurator; import org.apache.log4j.Category; import org.apache.axiom.om.impl.builder.*; import org.apache.axiom.om.*; //import com.edischarge.batchloader.Patient; public class TestDriver { /*sourceFile specification ...MCG */ private String sourceFile = null; /** Database Connection Object */ private Connection con = null; /** Log4J log object */ private static Category log = Category.getInstance( TestDriver.class.getName()); //nothing for now public TestDriver() { } public static void main(String[] args) { try { System.out.println("args[0] == "+args[0]); //create the parser java.io.File file = new java.io.File(args[0]); java.io.FileInputStream fis = new java.io.FileInputStream(file); XMLStreamReader parser = XMLInputFactory.newInstance().createXMLStreamReader(fis); //create the builder StAXOMBuilder builder = new StAXOMBuilder(parser); //get the root element (in this case the envelope) OMElement documentElement = builder.getDocumentElement(); } catch(java.lang.ArrayIndexOutOfBoundsException iao) { System.out.println("USAGE: TestDriver XMLFileNameToParse"); return; } catch(java.io.FileNotFoundException fnf) { System.out.println("FileNotFoundException has been found message = "+fnf.getMessage()); return; } catch(javax.xml.stream.XMLStreamException xml_excp) { System.out.println("XMLStreamException has been encountered"); return; } } //end main } //end class TestDriver after compiling I run it as java TestDriver OMTutorial.xml args[0] == OMTutorial.xml Exception in thread "main" javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72) at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176) at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92) at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136 ) at TestDriver.main(TestDriver.java:35) I need the jsr173_ri.jar to resolve the com.bea.xml.stream.MXParserFactory not found error Thanks, Martin- Information in this message, including attachments, is intended only for the confidential use of the recipient(s) named above. This message may be an Attorney-Client communication and as such is privileged and confidential. If you are not an intended recipient of this message, or an agent responsible for delivering it to an intended recipient , you are hereby notified that you have received this message in error, that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately, delete the message, and return any hard copy print-outs. This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its conte - Original Message - From: "Thilina Gunarathne" <[EMAIL PROTECTED]> To: ; "Martin Gainty" <[EMAIL PROTECTED]> Sent: Saturday, October 07, 2006 3:08 PM Subject: Re: [Axis2] SAX or DOM > You can use the following..Those are the once we are using with Axis2 > latest... > > http://ws.zones.apache.org/~dims/maven/stax/jars/stax-api-1.0.1.jar > http://ws.zones.apache.org/~dims/maven/woodstox/jars/wstx-asl-3.0.1.jar > > ~Thilina > > On 10/7/06, Martin Gainty <[EMAIL PROTECTED]> wrote: >> Good Morning Thilina >> >> Do you know where we can acquire the jsr173_ri.jar? >> >> Thanks, >> >> Martin- >> This e-mail communication and any attachments may contain confidential and >> privileged information for the use of the >> designated recipients named above. If you are not the intended recipient, >> you are hereby notified that you have received >> this communication in error and that any review, disclosure, dissemination, >> distribution or copying of it or its >> conte >> - Original Message - >> From: "Thilina Gunarathne" <[EMAIL PROTECTED]> >> To: >> Sent: Saturday, October 07, 2006 6:49 AM >> Subject: Re: [Axis2] SAX or DOM >> >> >> > Axis2 uses StAX parsing, which is also called deferred parsing.. It is >> > possible for Axis2 to start processing the message before the entire >> > request has been transmitted. This works even for attachments.. In >> > Axis2 objects are not made unless a need arises for them. In other >> > words stream is read only when needed.. >> > >> > Refer to the following tutorial for more in for on StAX parsing.. >> > OM Tutorial - http://ws.apache.org/commons/axiom/OMTutor