quality@glassfish.java.net

Re: unable to get web-app_3_0.xsd pass validation

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Thu, 05 Mar 2009 12:10:47 -0800

Hi Survivant,

On 03/ 5/09 11:42 AM, Survivant 00 wrote:
> I was trying to generate classes from the schemas web-app_3_0.xsd
> that came from GF_v3
>
> but I always obtain a validation error.
>
> [INFO] [jaxb2:generate {execution: default}]
> Cannot find CatalogManager.properties
> [ERROR] XJC while parsing schema(s)
> file:/F:/workspace/dtd-schemas-generator/src
> /main/resources/web-common_3_0.xsd[382,21]:
> org.xml.sax.SAXParseException: Unexp
> ected <xsd:element> appears at line 382 column 21
>
>
> I tried with Altova XMLSpy 2009.. and got a validation error too.
>
>
> can someone confirm that the schemas are fine in GF_v3 ?

web-common_3_0.xsd was recently (2009-03-02) fixed by Shing Wai :

@@ -556,13 +556,13 @@
 
           </xsd:documentation>
         </xsd:annotation>
+ </xsd:element>
       <xsd:element name="async-supported"
                    type="javaee:true-falseType"
                    minOccurs="0"/>
       <xsd:element name="async-timeout"
                    type="javaee:xsdIntegerType"
                    minOccurs="0"/>
- </xsd:element>
 
       <xsd:element name="init-param"

                    type="javaee:param-valueType"


The latest promoted build (b39) should have this fix.
Are you using the schema from one of the earlier promoted builds?

Thanks,

Jan

>
> here the files that I used to generate the classes :
>
> domain.jaxb
> javaee_5.xsd
> javaee_web_services_1_2.xsd
> javaee_web_services_client_1_2.xsd
> jsp_2_1.xsd
> web-app_3_0.xsd
> web-common_3_0.xsd
> web-fragment_3_0.xsd
>
> if SAXParser is not able to validate the schemas.. I don't think
> webapps that use 3_0 will works on GF_v3