jsr369-experts@servlet-spec.java.net

[jsr369-experts] Re: [126-onStartupWebXmlVersionLevel] Discussion

From: Shing Wai Chan <shing.wai.chan_at_oracle.com>
Date: Mon, 23 Feb 2015 19:00:57 -0800

The version of the schema used for the deployment descriptor web.xml
says nothing about the runtime behavior of the APIs.
I believe this is a general rule.

Shing Wai Chan

On 2/20/15, 4:06 PM, Edward Burns wrote:
> Hello Volunteers,
>
> I'm observing some inconsistent behavior between GlassFish and WLS on
> this point and I wonder what you all are doing in your respective
> containers. Here's the scoop. Apologies if I'm missing something
> fundamental here.
>
> I have a web module with a ServletContainerInitializer impl within it.
> I observe that the onStartup() method gets called just fine in GlassFish
> 4.1 regardless of if the web.xml has 2.5 or 3.0, but on WLS, it has to
> be 3.0 for it to be called.
>
> Do we need something in the spec that requires onStartup() to be called
> if present regardless of the version level?
>
> Thanks,
>
> Ed
>