[opencms-dev] After upgrading to 8.0.2 - Schema definition is broken

Christoph Fröhlich cfauto at folge2.de
Sun Aug 21 08:21:05 CEST 2011


Hi,

after upgrading from 8.0.1 to 8.0.2 a schema definition which was fully working in 8.0.1 cannot be unmarshalled anymore.

The message is as follows:
Caused by: org.opencms.xml.CmsXmlException: XML validation error : 
<errors>
  <error column="20" line="76">cvc-complex-type.2.1: Element 'resourcebundle' must have no character or element information item [children], because the type's content type is empty.</error>
</errors>
<warnings/>.

The problem seems to be that the schema definition for resourcebundles did change between 8.0.1 and 8.0.2

The following worked in 8.0.1
----------------------------------------
<xsd:annotation>
		<xsd:appinfo>
			<resourcebundle name="de.folge3.addressstore.workplace.xml">
				<bundle locale="EN">
				....


In 8.0.2 you have to write
----------------------------------------
<xsd:annotation>
		<xsd:appinfo>
			<resourcebundles>
				<xmlbundle name="de.folge3.addressstore.workplace.xml">
					<bundle locale="EN">
					....

a. resourcebundle is renamed to resourcebundles
b. xmlbundle seems to be a newly introduced element

Is this an intentional change? I did not find it mentioned in the release notes. On the other side, the definition of the demo-schemas (for example v8article) did change between 8.0.1 and 8.0.2 to reflect this. 

Regards
Christoph





More information about the opencms-dev mailing list