You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Matthew Montgomery <Ma...@Sun.COM> on 2007/04/17 17:21:38 UTC

Element order in servlets.xml

Hi all,

I ran into a problem deploying the current trunk to Sun's app server 
9.0. This container has an issue with where the <description> element 
appears as a child of the <init-param> element.

metadata/xdoclet/servlets.xml

Current:

<servlet>
     <servlet-name>XmlRpcServlet</servlet-name>
 
<servlet-class>org.apache.xmlrpc.webserver.XmlRpcServlet</servlet-class>
     <init-param>
       <param-name>enabledForExtensions</param-name>
       <param-value>true</param-value>
       <description>
         Sets, whether the servlet supports vendor extensions for XML-RPC.
       </description>
     </init-param>
</servlet>

If <description> is moved up and made the first child of <init-param> 
deployment works without incident.

Edit:

<servlet>
     <servlet-name>XmlRpcServlet</servlet-name>
 
<servlet-class>org.apache.xmlrpc.webserver.XmlRpcServlet</servlet-class>
     <init-param>
       <description>
         Sets, whether the servlet supports vendor extensions for XML-RPC.
       </description>
       <param-name>enabledForExtensions</param-name>
       <param-value>true</param-value>
     </init-param>
</servlet>

Pretty small change, but I am happy to file an issue if needed.

-- 
Matthew Montgomery
.Sun Engineering
Sun Microsystems, Inc.

Re: Element order in servlets.xml

Posted by Allen Gilliland <al...@sun.com>.
Cool, thanks for finding that.  I just went ahead and fixed that in the 
trunk (revision 529727) so hopefully it won't be happening anymore.

have you noticed any other quirks with running Roller on Sun Appserver 9?

-- Allen


Matthew Montgomery wrote:
> Hi all,
> 
> I ran into a problem deploying the current trunk to Sun's app server 
> 9.0. This container has an issue with where the <description> element 
> appears as a child of the <init-param> element.
> 
> metadata/xdoclet/servlets.xml
> 
> Current:
> 
> <servlet>
>     <servlet-name>XmlRpcServlet</servlet-name>
> 
> <servlet-class>org.apache.xmlrpc.webserver.XmlRpcServlet</servlet-class>
>     <init-param>
>       <param-name>enabledForExtensions</param-name>
>       <param-value>true</param-value>
>       <description>
>         Sets, whether the servlet supports vendor extensions for XML-RPC.
>       </description>
>     </init-param>
> </servlet>
> 
> If <description> is moved up and made the first child of <init-param> 
> deployment works without incident.
> 
> Edit:
> 
> <servlet>
>     <servlet-name>XmlRpcServlet</servlet-name>
> 
> <servlet-class>org.apache.xmlrpc.webserver.XmlRpcServlet</servlet-class>
>     <init-param>
>       <description>
>         Sets, whether the servlet supports vendor extensions for XML-RPC.
>       </description>
>       <param-name>enabledForExtensions</param-name>
>       <param-value>true</param-value>
>     </init-param>
> </servlet>
> 
> Pretty small change, but I am happy to file an issue if needed.
>