JAXB Generated classes giving namespace cannot be resolved error
===

Reference to my previous 2 posts ([post 1][1], [post 2][2]). Now i am stuck at another weird problem (I am noob at JAXB). I have generated the Java classes using my book.xsd (which included bookList and book as root element). Everything is working fine. Now I am creating totally separate XSD for **reviews**. 

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
	       elementFormDefault="qualified" attributeFormDefault="unqualified">

	<xs:element name="reviews">
	    <xs:complexType>
		     <xs:sequence>
	             <xs:element name="review" type="reviewType" minOccurs="0" maxOccurs="unbounded"/>
		     </xs:sequence>
	         <xs:attribute name="self" type="xs:anyURI" />
	    </xs:complexType>
	</xs:element>

	<xs:complexType name="reviewType">
	    <xs:sequence>
	        <xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1" />
	        <xs:element name="comments" type="xs:string" minOccurs="1" maxOccurs="1" />
	        <xs:element name="rating" type="xs:integer" minOccurs="1" maxOccurs="1" />
	    </xs:sequence>
	     <xs:attribute name="self" type="xs:anyURI" />
	</xs:complexType>
</xs:schema>

Now when i generate java classes using JAXB, it starts giving me following error like `The element declaration with name 'reviews' and namespace '' cannot be resolved`.

Any idea ? 

  [1]: http://stackoverflow.com/questions/11620825/xsd-for-having-2-root-elements-1-at-a-time/11623044#11623044
  [2]: http://stackoverflow.com/questions/11658181/unable-to-understand-jaxb-unmarshalling-behaviour