Hi, Jerry
The ordering of the elements need to match with their declaration order
in dtd. The two elements I was referring to was "load-on-startup" and
"init-param". In the dtd, the "init-param" was declared before
"load-on-startup", so in the xml, the "init-param" element needs
to appear before "load-on-startup" element.
So the following web.xml snippet:
<load-on-startup>1</load-on-startup>
<init-param>
<param-name>webtogo.ora</param-name>
<param-value>%ORACLE_HOME%\mobile\server\bin\webtogo.ora</param-value>
</init-param>
should be re-ordered like this:
<init-param>
<param-name>webtogo.ora</param-name>
<param-value>%ORACLE_HOME%\mobile\server\bin\webtogo.ora</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
- Hong
On 3/13/2011 4:10 PM, forums_at_java.net wrote:
> Hi Hong,
>
> Thanks very much for your reply!
>
> However, I am new to Glassfish Server, and I don't quite understand this
> part:
>
> [quote]
>
> the element needs to appear after the
> element, but in your servlet "WebtogoWorkSpaceRedirect", the
> element appears before the element.
>
> [/quote]
>
> What does the two "element" refer to respectively?
>
> Would please be more specific? Thanks a lot~~!!
>
> Jerry
>
>
> --
>
> [Message sent by forum member 'opalyang']
>
> View Post: http://forums.java.net/node/780205
>
>