This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception while generating java object using maven-jaxb2-plugin

 
pavankumar shetty
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic