Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2331

Exploded deployment: web.xml modified to web.xml.org - Subsequent runs fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • jbossws-cxf-3.0.3
    • jbossws-cxf
    • None

      When using exploded EAR/WAR deployment web.xml is modified on each server start. That has two effects:

      • the original web.xml, which was renamed to web.xml.org after 1st start is lost on 2nd server start
      • the context parameter jbossws.cxf.beans.url is added to web.xml multiple times

      My web.xml on second server start:

      <web-app>
      ...
      <context-param>
      <param-name>jbossws.cxf.beans.url</param-name>
      <param-value>file:/D:/Tools/jboss-4.2.3.GA/server/default/tmp/jbossws/jbossws-cxf29799.xml</param-value>
      </context-param>
      <context-param>
      <param-name>jbossws.cxf.beans.url</param-name>
      <param-value>file:/D:/Tools/jboss-4.2.3.GA/server/default/tmp/jbossws/jbossws-cxf58750.xml</param-value>
      </context-param>
      </web-app>

      The exception is:
      ...
      Caused by: java.lang.IllegalArgumentException: Duplicate context initialization parameter jbossws.cxf.beans.url
      at org.apache.catalina.core.StandardContext.addParameter(StandardContext.java:2332)

              ropalka Richard Opalka
              rtaugerbeck_jira Ralf Taugerbeck (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: