Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Can't get override-web.xml to work

I am attempting to use override-web.xml with Jetty-7.5.4.v20111024, and I can’t get it to work.  My requirements are simple.  I just want to add an init-param to a servlet.  When I hard-code the init-param in web.xml, I get the expected behavior.  When I attempt to use override-web.xml to add the init-param, I don’t.  I know that my jetty-web.xml file is being read, because the contextPath is being set properly.  Otherwise, I can’t figure out how to see exactly what Jetty is doing or where this is failing.  Can someone see what is wrong with my setup?  I have my copied my configuration below.  

 

My servlet is defined in my web.xml like this:

 

<servlet>

      <servlet-name>AxisServlet</servlet-name>

      <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>

      <load-on-startup>1</load-on-startup>

</servlet>

 

My jetty-web.xml has this:

 

<Set name="overrideDescriptor"><SystemProperty name="jetty.home" default="."/>/override/override-web.xml</Set>

     

My override-web.xml (in the JETTY_HOME/override folder) looks like this:

 

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"

      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"

      id="ServiceWeb" version="2.5">

     

      <servlet>

            <servlet-name>AxisServlet</servlet-name>

            <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>

            <init-param>

                  <param-name>axis2.xml.url</param-name>

                  <param-value>file:///c:/axis2.xml</param-value>

            </init-param>

            <load-on-startup>1</load-on-startup>

      </servlet>

</web-app>

 

 

 

 

 

 

 



STATEMENT OF CONFIDENTIALITY:



The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain confidential or privileged information. If you are not the intended
recipient, please notify WHI Solutions immediately at gc@xxxxxxxxxxxxxxxx,
and destroy all copies of this message and any attachments.

Back to the top