Dev - xsd error for description

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Dev - xsd error for description

Si Chen-2
Hi David,

Sorry to be bothering you so much this afternoon.  I saw you added the
<description> element for entitymodel xml but it does not seem to be
working.  I added:
      <field name="relationshipName" type="name">
          <description>Official name of relationship, such as title in a
company</description>
      </field>

My header says:
<entitymodel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/entitymodel.xsd">

And we get the error:
13372 (main) [            UtilXml.java:634:ERROR] XmlFileLoader: File
/home/sichen/eclipse/workspace/ofbiz/applications/party/entitydef/entitymodel.xml
process error. Line: 1404. Error message: cvc-complex-type.2.4.a:
Invalid content was found starting with element 'description'. One of
'{"":validate}' is expected.
13374 (main) [            UtilXml.java:634:ERROR] XmlFileLoader: File
/home/sichen/eclipse/workspace/ofbiz/applications/party/entitydef/entitymodel.xml
process error. Line: 1501. Error message: cvc-complex-type.2.4.a:
Invalid content was found starting with element 'description'. One of
'{"":validate}' is expected.

Thanks!

Si

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - xsd error for description

David E. Jones

I just checked the ofbiz.org server and it does have the updated  
version of the file there, so you may have a cached version somewhere  
locally.

Is this in an IDE or when running OFBiz? Depending on the IDE you may  
have to close the XML file and re-open it, or even close the IDE and  
run it again it order for it to clear the XSD cache, or some may have  
a longer life on the cache and some sort of manual clearing might be  
needed.

-David


On Dec 21, 2005, at 4:49 PM, Si Chen wrote:

> Hi David,
>
> Sorry to be bothering you so much this afternoon.  I saw you added  
> the <description> element for entitymodel xml but it does not seem  
> to be working.  I added:
>      <field name="relationshipName" type="name">
>          <description>Official name of relationship, such as title  
> in a company</description>
>      </field>
>
> My header says:
> <entitymodel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>    xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/ 
> entitymodel.xsd">
>
> And we get the error:
> 13372 (main) [            UtilXml.java:634:ERROR] XmlFileLoader:  
> File /home/sichen/eclipse/workspace/ofbiz/applications/party/
> entitydef/entitymodel.xml process error. Line: 1404. Error message:  
> cvc-complex-type.2.4.a: Invalid content was found starting with  
> element 'description'. One of '{"":validate}' is expected.
> 13374 (main) [            UtilXml.java:634:ERROR] XmlFileLoader:  
> File /home/sichen/eclipse/workspace/ofbiz/applications/party/
> entitydef/entitymodel.xml process error. Line: 1501. Error message:  
> cvc-complex-type.2.4.a: Invalid content was found starting with  
> element 'description'. One of '{"":validate}' is expected.
>
> Thanks!
>
> Si
>
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Dev - xsd error for description

Si Chen-2
Both in Eclipse and during startup (java -jar ofbiz.jar)  I wonder if
the JVM caches this stuff?

Oh well.  At least you confirmed that I'm not doing it wrong.  That's
what's really important.

Thanks!

Si

David E. Jones wrote:

>
> I just checked the ofbiz.org server and it does have the updated  
> version of the file there, so you may have a cached version somewhere  
> locally.
>
> Is this in an IDE or when running OFBiz? Depending on the IDE you may  
> have to close the XML file and re-open it, or even close the IDE and  
> run it again it order for it to clear the XSD cache, or some may have  
> a longer life on the cache and some sort of manual clearing might be  
> needed.
>
> -David
>
>
> On Dec 21, 2005, at 4:49 PM, Si Chen wrote:
>
>> Hi David,
>>
>> Sorry to be bothering you so much this afternoon.  I saw you added  
>> the <description> element for entitymodel xml but it does not seem  
>> to be working.  I added:
>>      <field name="relationshipName" type="name">
>>          <description>Official name of relationship, such as title  
>> in a company</description>
>>      </field>
>>
>> My header says:
>> <entitymodel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>    xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/ 
>> entitymodel.xsd">
>>
>> And we get the error:
>> 13372 (main) [            UtilXml.java:634:ERROR] XmlFileLoader:  
>> File /home/sichen/eclipse/workspace/ofbiz/applications/party/
>> entitydef/entitymodel.xml process error. Line: 1404. Error message:  
>> cvc-complex-type.2.4.a: Invalid content was found starting with  
>> element 'description'. One of '{"":validate}' is expected.
>> 13374 (main) [            UtilXml.java:634:ERROR] XmlFileLoader:  
>> File /home/sichen/eclipse/workspace/ofbiz/applications/party/
>> entitydef/entitymodel.xml process error. Line: 1501. Error message:  
>> cvc-complex-type.2.4.a: Invalid content was found starting with  
>> element 'description'. One of '{"":validate}' is expected.
>>
>> Thanks!
>>
>> Si
>>
>> _______________________________________________
>> Dev mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/dev
>
>
>------------------------------------------------------------------------
>
>
>_______________________________________________
>Dev mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/dev
>
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - xsd error for description

David E. Jones

An easy way to check stuff like this is to go to the URL with a  
browser (and if necessary view source), in this case:

http://www.ofbiz.org/dtds/entitymodel.xsd

-David


On Dec 21, 2005, at 5:30 PM, Si Chen wrote:

> Both in Eclipse and during startup (java -jar ofbiz.jar)  I wonder  
> if the JVM caches this stuff?
>
> Oh well.  At least you confirmed that I'm not doing it wrong.  
> That's what's really important.
>
> Thanks!
>
> Si
>
> David E. Jones wrote:
>
>>
>> I just checked the ofbiz.org server and it does have the updated  
>> version of the file there, so you may have a cached version  
>> somewhere  locally.
>>
>> Is this in an IDE or when running OFBiz? Depending on the IDE you  
>> may  have to close the XML file and re-open it, or even close the  
>> IDE and  run it again it order for it to clear the XSD cache, or  
>> some may have  a longer life on the cache and some sort of manual  
>> clearing might be  needed.
>>
>> -David
>>
>>
>> On Dec 21, 2005, at 4:49 PM, Si Chen wrote:
>>
>>> Hi David,
>>>
>>> Sorry to be bothering you so much this afternoon.  I saw you  
>>> added  the <description> element for entitymodel xml but it does  
>>> not seem  to be working.  I added:
>>>      <field name="relationshipName" type="name">
>>>          <description>Official name of relationship, such as  
>>> title  in a company</description>
>>>      </field>
>>>
>>> My header says:
>>> <entitymodel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>    xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/ 
>>> entitymodel.xsd">
>>>
>>> And we get the error:
>>> 13372 (main) [            UtilXml.java:634:ERROR] XmlFileLoader:  
>>> File /home/sichen/eclipse/workspace/ofbiz/applications/party/  
>>> entitydef/entitymodel.xml process error. Line: 1404. Error  
>>> message:  cvc-complex-type.2.4.a: Invalid content was found  
>>> starting with  element 'description'. One of '{"":validate}' is  
>>> expected.
>>> 13374 (main) [            UtilXml.java:634:ERROR] XmlFileLoader:  
>>> File /home/sichen/eclipse/workspace/ofbiz/applications/party/  
>>> entitydef/entitymodel.xml process error. Line: 1501. Error  
>>> message:  cvc-complex-type.2.4.a: Invalid content was found  
>>> starting with  element 'description'. One of '{"":validate}' is  
>>> expected.
>>>
>>> Thanks!
>>>
>>> Si
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [hidden email]
>>> http://lists.ofbiz.org/mailman/listinfo/dev
>>
>>
>> ---------------------------------------------------------------------
>> ---
>>
>> _______________________________________________
>> Dev mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/dev
>>
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev

smime.p7s (3K) Download Attachment