my dog learned polymorphism*
The moose likes Java in General and the fly likes XML Beans - The type javax.xml.stream.  XMLStreamReader cannot be resolved. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "XML Beans - The type javax.xml.stream.  XMLStreamReader cannot be resolved." Watch "XML Beans - The type javax.xml.stream.  XMLStreamReader cannot be resolved." New topic
Author

XML Beans - The type javax.xml.stream. XMLStreamReader cannot be resolved.

Richard Butterwood
Ranch Hand

Joined: Nov 07, 2005
Posts: 45
Hi,

I managed to get XML Beans installed and generated the .jar via scomp. Everything looks good apart from when I try to parse the file. Under the following code

"AddressDetailsDocument myParsedDoc = AddressDetailsDocument.Factory.parse(fleInput);"

I get the error

"The type javax.xml.stream.XMLStreamReader cannot be resolved. It is indirectly referenced from required .class files"

Am I missing another .jar file? I am referencing xbean.jar.
Richard Butterwood
Ranch Hand

Joined: Nov 07, 2005
Posts: 45
Figured it out - I needed to reference jsr173_api.jar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML Beans - The type javax.xml.stream. XMLStreamReader cannot be resolved.
 
Similar Threads
JSP page not displayed - javax.servlet.jsp.PageContext could not be resolved
MultipartRequest cannot be resolved to a type
java.lang.NoClassDefFoundError: javax/el/ValueExpression
All of a sudden many of my imports are underlined in red, that goes away when I retype them..
JAXB/Marshaller/XMEventWriter