Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Release Notes

- Previous: Deploying an application using --precompilejsp=true can lock JAR files in the application, causing later undeployment or redeployment to fail. (Windows only) (ID 5004315)
- Next: Using the AMX API, removing a J2EE application reference from a server removes the application, but the application is still accessible. (ID 6173248)

### Unable to deploy WAR with Servlet 2.4-based `web.xml` that contains an empty `<load-on-startup\>` element. (ID 6172006)

The optional load-on-startup servlet element in a web.xml indicates that the associated servlet is to be loaded and initialized as part of the startup of the web application that declares it.

The optional content of this element is an integer indicating the order in which the servlet is to be loaded and initialized with respect to the web `application\qs` other servlets. An empty `<load-on-startup\>` indicates that the order is irrelevant, as long as the servlet is loaded and initialized during the startup of its containing web application.

The Servlet 2.4 schema for `web.xml` no longer supports an empty `<load-on-startup\>`, meaning that an integer must be specified when using a Servlet 2.4 based web.xml. If specifying an empty `<load-on-startup\>`, as in `<load-on-startup/\>`, the `web.xml` will fail validation against the Servlet 2.4 schema for `web.xml`, causing deployment of the web application to fail.

Backwards compatibility issue. Specifying an empty `<load-on-startup\>` still works with Servlet 2.3 based `web.xml`.

#### Solution

Specify `<load-on-startup\>0</load-on-startup\>` when using a Servlet 2.4 based `web.xml` to indicate that servlet load order does not matter.

- Previous: Deploying an application using --precompilejsp=true can lock JAR files in the application, causing later undeployment or redeployment to fail. (Windows only) (ID 5004315)
- Next: Using the AMX API, removing a J2EE application reference from a server removes the application, but the application is still accessible. (ID 6173248)

- © 2010, Oracle Corporation and/or its affiliates