It's not a secret anymore!*
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: 5812
    
    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
 
Consider Paul's rocket mass heater.
 
subject: Exception while generating java object using maven-jaxb2-plugin
 
Similar Threads
Creating ear file
rad maven software update link wont work
JAXB2 and JDK 1.6.0 Compatibility Problem
Error while parsing schema
embedding xmlelement tags in classes generated by jaxb and xjc