users@glassfish.java.net

Re: Glassfish v3(b74.2) Deployment problem

From: <glassfish_at_javadesktop.org>
Date: Fri, 22 Jan 2010 08:41:35 PST

It is a similar problem as the other thread because the xml file does not conform to the schema, but the element that's invalid is different. If you look at the error message closely, it's complaining about the init-param elemenet.

The init-param elements in the following servlet were declared at the wrong place:

<servlet>
<servlet-name>control</servlet-name>
<servlet-class>privatedata.web.ControlServlet</servlet-class>
<load-on-startup>3</load-on-startup>
<init-param>
...
</init-param>
 </servlet>

According to the schema, the init-param element should be declared before load-on-startup element. So you need to move all the init-param elements before the load-on-startup element for this servlet, something like this:

<servlet>
<servlet-name>control</servlet-name>
<servlet-class>privatedata.web.ControlServlet</servlet-class>
<init-param>
...
</init-param>
<load-on-startup>3</load-on-startup>
 </servlet>
[Message sent by forum member 'hzhang_jn' (hong.zhang_at_sun.com)]

http://forums.java.net/jive/thread.jspa?messageID=382412