Bugs item #1068819, was opened at 2004-11-18 17:30
Message generated for change (Comment added) made by littlejoz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1068819&group_id=22866
Category: JBossWS
Group: v4.0
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Little jose (littlejoz)
Assigned to: Thomas Diesler (tdiesler)
Summary: Duplication of init-param in web.xml
Initial Comment:
When a web-service is deployed more then once using
the same directory, the web.xml is modified each time,
leading to the following example :
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-
class>org.jboss.webservice.server.ServiceEndpointServlet
JSE</servlet-class>
<init-param>
<param-name>ws4ee-service-name</param-name>
<param-value>MyService</param-value>
</init-param>
<init-param>
<param-name>ws4ee-service-name</param-name>
<param-value>MyService</param-value>
</init-param>
<load-on-startup>-1</load-on-startup>
</servlet>
It seems that in the ServiceDeployer.java, in the
method modifyServletConfig(), no check is done
to ensure the servlet init-param named "ws4ee-service-
name" already exists.
Once the init-param is at least duplicated, the web-
service fails totally to work.
Any further information to me jose do-t chillan at jaynti
do-t com
----------------------------------------------------------------------
>Comment By: Little jose (littlejoz)
Date: 2004-11-25 17:32
Message:
Logged In: YES
user_id=1161726
Hi Thomas (we've met in Roma, I'm an old friend of Marc)
I am using a directory based deployment structure, which
means I don't build an ear containing jars and wars, but
I create a directory named my_app.ear containing another
directory names my_webapp.war, etc...
This is much faster in development stage cause when I use an
ant script that builds the directories by copying from my
Eclipse projects, which is incremental, instead of create a new
ear-war-jar each time. I deploy my directory directly to JBoss
using the jmx-console on the MainDeployerMBean, passing the
URL of my directory as argument (file://xx../yy../my_app.ear).
But this way of doing (most people I know work like this)
supposes the files of the application to deploy are not
modified.
Try to run the attached project : use ant task deploy after
launching a local JBoss on port 8080.
The "deploy" directory is deployed.
Jose
----------------------------------------------------------------------
Comment By: Thomas Diesler (tdiesler)
Date: 2004-11-25 15:42
Message:
Logged In: YES
user_id=423364
Fixed in jboss-4.0.1. It now prepeds the parent (EAR) name
before the the generated web.xml.
When you say "... web-service is deployed more then once
using the same directory ..." I assume it means having the
same war included in different ears.
If this is a redeployment issue of the same sandalone war,
please provide a sample deployment.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1068819&group_id=22866
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development