quality@glassfish.java.net

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

From: Survivant 00 <survivant00_at_gmail.com>
Date: Fri, 6 Mar 2009 20:44:13 -0500

I did check a few places.. but most of the time the web.xml don't use half
of the xsd :(

I think that I will need to hardcode some value with all the tags..

but my main concern is why I'm not able to find any examples.. I can't
imagine that is no one from Sun or the community that haven't test it ? It
should have some testcase somewhere.. I hope :)

What is intriguing is that there are some tags that can have multiple
values.. 0->infiny .. but I have no idea how the AppServer will work with
that.. like Icons.. I never saw a web.xml with more that 1 icon (1small and
1 large).. but look like

<icon>
   <small-icon>small1.gif</small-icon>
   <large-icon>large1.gif</large-icon>
</icon>
<icon>
   <small-icon>small2.gif</small-icon>
   <large-icon>large2.gif</large-icon>
</icon>
<icon>
   <small-icon>small3.gif</small-icon>
   <large-icon>large3.gif</large-icon>
</icon>

is valid.. but never saw an actual case of it.


2009/3/6 Davis Nguyen <Davis.Nguyen_at_sun.com>

> Hi Sebastien,
>
> Has you tried the Java Blue Print yet, they have many different
> applications for webapp 2.2-2.5?
> http://java.sun.com/reference/blueprints/
> I don't know if anyone here wrote a complete web 3.0 xml file yet!
>
> -davis
>
>
> Survivant 00 wrote:
>
> :)
>
> and if someone have complete samples for webapp 2.2 , 2.3, 2.4 and 2.5 ...
> shoot it here :)
>
>
>
> 2009/3/5 Judy Tang <Judy.J.Tang_at_sun.com>
>
>> Hi Survivant, Wow, this sounds a good test to test through all the
>> possibilities in the web.xml, ha ...
>>
>> Wait some time, I am sure some one will jump in to help you :-)
>>
>> Judy
>>
>> Survivant 00 wrote:
>>
>>> I confirm that it works well now. b39.
>>>
>>> there is someone that can send me a complete web.xml 3.0 ? I just need
>>> all the possibilities in the web.xml for my tests.
>>>
>>> need that to complete my MultipleWar deployer for Grizzly :)
>>>
>>>
>>> 2009/3/5 Judy Tang <Judy.J.Tang_at_sun.com <mailto:Judy.J.Tang_at_sun.com>>
>>>
>>> And you may help us find new bugs, many thanks to Survivant.
>>>
>>> Hi Jan, Amazed with your fast help and many thanks.
>>>
>>> Judy
>>>
>>> Survivant 00 wrote:
>>>
>>> thanjs you.. yes it was a older version. will download it right
>>> away
>>>
>>>
>>> 2009/3/5 Jan Luehe <Jan.Luehe_at_sun.com <mailto:Jan.Luehe_at_sun.com>
>>> <mailto:Jan.Luehe_at_sun.com <mailto:Jan.Luehe_at_sun.com>>>
>>>
>>>
>>> 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
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail:
>>> quality-unsubscribe_at_glassfish.dev.java.net
>>> <mailto:quality-unsubscribe_at_glassfish.dev.java.net>
>>> <mailto:quality-unsubscribe_at_glassfish.dev.java.net
>>> <mailto:quality-unsubscribe_at_glassfish.dev.java.net>>
>>>
>>> For additional commands, e-mail:
>>> quality-help_at_glassfish.dev.java.net
>>> <mailto:quality-help_at_glassfish.dev.java.net>
>>> <mailto:quality-help_at_glassfish.dev.java.net
>>> <mailto:quality-help_at_glassfish.dev.java.net>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>>> <mailto:quality-unsubscribe_at_glassfish.dev.java.net>
>>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>> <mailto:quality-help_at_glassfish.dev.java.net>
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>
>>
>
>