I'm confused:

1. the axis2 jira issue you mention seems to be an attempt to parse a non-compliant document, and apparently was resolved by using character entities for < and > in the incorrect embedded xml (this is not visible in nabble but is visible through jira at least on my browser)
2. I can't find an official Atom xsd schema by googling.
3. your sample document doesn't appear to be well formed.

Why do you expect parsing this to work?

thanks
david jencks

On Aug 21, 2007, at 11:14 AM, Bill Brown wrote:


Greetings:

Not sure if this will help, but this is the XML file the parser is choking
on:

**************************************
<?xml version='1.0' encoding='utf-8'?>
<feed xmlns="http://www.w3.org/2005/Atom"; xml:lang="en-US">
  <id>http://www.example.com/news.xml</id>
  <updated>2007-08-21T08:55:58.961-06:00</updated>
  <generator uri="http://www.colorfulsoftware.com/projects/atomsphere";
version="1.0.3.0-SNAPSHOT">Atomsphere</generator>
  <title>News...</title>
  <author>
    <name>earthbeats</name>
  </author>
  <link href="http://www.example.com/news.xml"; rel="self" />
**************************************



Bill Brown wrote:

Greetings:

I have an issue with the stax implementation for the 2.0.1 build. I did
not see in the mailing lists if the stax implementation was upgraded
between 2.0-M5 and the 2.0.1 release but the xml parsing worked with the
2.0-M5 build.

I get a parse error when trying to read an xml file

com.ctc.wstx.exc.WstxParsingException: Expected a text token, got
START_ELEMENT.
 at [row,col {unknown-source}]: [2,6]
        at
com.ctc.wstx.sr.StreamScanner.constructWfcException (StreamScanner.java:605) at com.ctc.wstx.sr.StreamScanner.throwParseError (StreamScanner.java:461)
        at
com.ctc.wstx.sr.BasicStreamReader.getElementText (BasicStreamReader.java:677) at com.colorful.atom.beans.FeedReader.readExtension (FeedReader.java:174)
        at com.colorful.atom.beans.FeedReader.readFeed(FeedReader.java:102)
        at com.colorful.atom.beans.FeedDoc.readFeedToBean(FeedDoc.java:232)

the com.colorful.atom.beans library is packaged with the sun stax
implementation
...
<dependency>
        <groupId>javax.xml</groupId>
        <artifactId>jsr173</artifactId>
        <version>1.0</version>
</dependency>
<dependency>
        <groupId>com.sun.xml</groupId>
        <artifactId>sjsxp</artifactId>
        <version>1.0.1</version>
</dependency>
<dependency>
        <groupId>javanet.staxutils</groupId>
        <artifactId>stax-utils</artifactId>
        <version>1.0</version>
</dependency>


I am not sure why the sun classes are not used instead of the woodstock classes. Is there any configuration I can make in geronimo to make sure the com.colorful.atom.beans library uses the sun implementation? I see
there was an issue with the woodstox library here
http://www.nabble.com/-jira--Created:-(AXIS2-2589)- com.ctc.wstx.exc.WstxParsingException:-Expected-a-text-token,-got- START_ELEMENT.-t3646025.html
does axis or woodstox need to be updated in geronimo?

Thanks for any input here.
Bill.



--
View this message in context: http://www.nabble.com/Stax- implementation-causing-issues-tf4306510s134.html#a12260202 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Reply via email to