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: <[email protected]>; "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: <[email protected]>
>> 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/OMTutorial.html
>> > Introduction to Pull parsing -
>> > http://www.bearcave.com/software/java/xml/xmlpull.html
>> > Introduction to StAX -
>> > http://today.java.net/pub/a/today/2006/07/20/introduction-to-stax.html
>> >
>> > ~Thilina
>> >
>> > On 10/7/06, Betsy Frey <[EMAIL PROTECTED]> wrote:
>> >> In Axis2, is there a way for the server to start receiving a very long
>> >> request, before the entire request has been transmitted? Similarly, is
>> >> there a way for the client to start receiving a very long response,
>> >> before the entire response has been transmitted?
>> >>
>> >> Perhaps this comes down to asking whether SAX or DOM is used for XML
>> >> parsing in Axis2.
>> >>
>> >> Thanks.
>> >>
>> >> Betsy Frey
>> >>
>> >>
>> >> **********************************************************************
>> >> This email and any files transmitted with it are confidential and
>> >> intended solely for the use of the individual or entity to whom they are
>> >> addressed. Any unauthorized review, use, disclosure or distribution is
>> >> prohibited. If you are not the intended recipient, please contact the
>> >> sender by reply e-mail and destroy all copies of the original message.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > http://webservices.apache.org/~thilina/
>> > http://thilinag.blogspot.com/
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>
>
> --
> http://webservices.apache.org/~thilina/
> http://thilinag.blogspot.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>