Exploded deployment: web.xml modified to
web.xml.org - Subsequent runs fail
---------------------------------------------------------------------------
Key: JBWS-2331
URL:
https://jira.jboss.org/jira/browse/JBWS-2331
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: jbossws-cxf
Affects Versions: jbossws-cxf-3.0.3
Environment: win32, jboss AS 4.2.3 GA, jdk 1.5.0_15
Reporter: Ralf Taugerbeck
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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira