Note that there are some explanatory texts on larger screens.

plurals
  1. POError while generating JAXB model from xsd in eclipse
    primarykey
    data
    text
    <p>I am trying to generate JAXB model from the following xsd</p> <pre><code>&lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://abc.com/mmm/trt" attributeFormDefault="unqualified" elementFormDefault="qualified"&gt; &lt;xs:annotation&gt; &lt;xs:documentation&gt;Schema for Cache Refresh Event. &lt;/xs:documentation&gt; &lt;/xs:annotation&gt; &lt;xs:simpleType name="cacheCode"&gt; &lt;xs:restriction base="xs:string"&gt; &lt;xs:enumeration value="BUSINESS_RULE" /&gt; &lt;xs:enumeration value="USER" /&gt; &lt;/xs:restriction&gt; &lt;/xs:simpleType&gt; &lt;xs:element name="cacheRefreshEvent"&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element name="cacheCode" type="cacheCode" minOccurs="1" maxOccurs="1" /&gt; &lt;xs:element name="entityRefId" type="xs:string" minOccurs="0" maxOccurs="20" /&gt; &lt;xs:element name="cacheRefreshDate" type="xs:dateTime" minOccurs="1" maxOccurs="1" /&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;/xs:schema&gt; </code></pre> <p>But, it is giving me the following error, which i got in Eclipse console</p> <pre><code>parsing a schema... [ERROR] src-resolve.4.1: Error resolving component 'cacheCode'. It was detected that 'cacheCode' has no namespace, but components with no target namespace are not referenceable from schema document 'file:/F:/Sprint6/cache/src/main/resources/CacheRefreshEvent.xsd'. If 'cacheCode' is intended to have a namespace, perhaps a prefix needs to be provided. If it is intended that 'cacheCode' has no namespace, then an 'import' without a "namespace" attribute should be added to 'file:/F:/Sprint6/cache/src/main/resources/CacheRefreshEvent.xsd'. line 18 of file:/F:/Sprint6/cache/src/main/resources/CacheRefreshEvent.xsd Failed to parse a schema. </code></pre> <p>Please help.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload