The deployement of mar files isn't correctly handled (axis2 @ client side +
server side)
----------------------------------------------------------------------------------------
Key: MWAR-254
URL: http://jira.codehaus.org/browse/MWAR-254
Project: Maven 2.x WAR Plugin
Issue Type: Bug
Affects Versions: 2.1.1
Reporter: Paulo Silva
Hello!
I did some digging/testing and I found a problem when we have a webapp that
uses axis2 at client side + server side.
(...)
Caused by: org.apache.axis2.deployment.DeploymentException: The addressing
module is not valid or has not been deployed.
at
org.apache.axis2.deployment.ServiceBuilder.processModuleRefs(ServiceBuilder.java:678)
at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:327)
... 31 more
Caused by: org.apache.axis2.deployment.DeploymentException: The addressing
module is not valid or has not been deployed.
at
org.apache.axis2.deployment.ServiceBuilder.processModuleRefs(ServiceBuilder.java:670)
... 32 more
This error will hapen when the addressing module is not found on the expected
location(s).
If you deploy the mar files to WEB-INF/modules/ only the server side will work.
But if you instead deploy them to WEB-INF/lib/ then both sides will work
(client side + server side). I did this test with axis2 v1.5 (we are using
webservices with ws-addressing).
To solve this problem I had to patch ArtifactsPackagingTask.java to force the
deployement of mar files to WEB-INF/lib/.
I think it would be a good pattern to always deploy artifact dependencies to
the lib folder... Maybe there are a few exceptions, but I don't think axis2 mar
files are one of them... And IMHO those kind of exceptions should be handled by
configuration, when needed.
Another thing I've notice, and don't think this is a problem related to this
plugin, is that mar files aren't being included as transitive dependencies :( I
had to explicitly declare that dependency on my pom file (I have a direct
dependency to another artifact that has a runtime dependency to that mar file,
so I think that dependency should be transitively inherited).
Can anyone check this out?
Thanks in advance.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira