File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Exception while generating java object using maven-jaxb2-plugin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Exception while generating java object using maven-jaxb2-plugin" Watch "Exception while generating java object using maven-jaxb2-plugin" New topic
Author

Exception while generating java object using maven-jaxb2-plugin

pavankumar shetty
Greenhorn

Joined: May 05, 2007
Posts: 4
Hi

I am newbie for maven build tool. I am trying to generate java object by parsing xsd using maven-jaxb2-plugin. I am getting the below exception. Please suggest

org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'star:PartyABIEType' to a(n) 'type definition' component.

I have added the name space as xmlns:star="http://www.starstandard.org/STAR/5"
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

I suspect an error in your xsd file. Please attach the full xsd file and post the full output from the mvn run.

Also, did you rty running with -X? And did that give you any extra information? You could attach that output also (redirect the stdout and stderr from mvn to a file).


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception while generating java object using maven-jaxb2-plugin