geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gianny Damour <gianny.dam...@optusnet.com.au>
Subject Re: Is env-entry-value tag in web.xml not supported
Date Wed, 25 Aug 2004 11:48:58 GMT
On 25/08/2004 9:25 PM, Rajesh Ravindran wrote:

>Hi all,
> I was trying to deploy an application which has env-entry-value tags
>in its web.xml. I got the following exception on deploying.
>
>org.apache.xmlbeans.XmlException: Invalid deployment descriptor:
>[error: Element not allowed:
>env-entry-value@http://java.sun.com/xml/ns/j2ee in element
>env-entry@http://java.sun.com/xml/ns/j2ee, error: Element not allowed:
>env-entry-value@http://java.sun.com/xml/ns/j2ee in element
>env-entry@http://java.sun.com/xml/ns/j2ee, error: Element not allowed:
>env-entry-value@http://java.sun.com/xml/ns/j2ee in element
>env-entry@http://java.sun.com/xml/ns/j2ee]
>
>When i commented these tags, this exception disappeared. Could anyone
>tell me, what the problem is.
>  
>
<env-entry-value> is supported. I am pretty sure that it is misplaced 
inside <env-entry>. Try this order:

    <env-entry>
        <env-entry-name>envEntry</env-entry-name>
        <env-entry-value>My EnvEntry</env-entry-value>
        <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>

Thanks,
Gianny

Mime
View raw message