aspose 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
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply 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: 5543

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Exception while generating java object using maven-jaxb2-plugin
 
Similar Threads
JAXB2 and JDK 1.6.0 Compatibility Problem
rad maven software update link wont work
Creating ear file
embedding xmlelement tags in classes generated by jaxb and xjc
Error while parsing schema