Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0
-
None
-
All environement
Description
I've found the following issue with the way servicemix works in JBOSS.
I'am building endpoints that uses the servicemix-http component.
For this to work I need to add these two files to the $JBOSS_HOME/server/default/lib folder :
1- geronimo-j2ee-management_1.0_spec-1.0.1.jar
2- commons-httpclient-3.0.jar
The geronimo-j2ee-management jar is required by the .sar file (Should this not be included in the sar archive ?)
The Common-httpclient is required by the servicemix-http module (however there is an older version of this lib included with JBoss). So for this too work we have to delete the old version and replace it with this version. The ideal work around would be to include a jboss-web.xml file that specifies to jboss that we want to use our versino of common-httpclient for this application.
Here is the content of the jboss-web.xml file that should be included in the servicemix-http-*-zip service assembly file (should be in the META-INF folder) :
---------
<jboss-web>
<class-loading>
<loader-repository>
org.apache.commons.httpclient:loader=commons-httpclient-3.0.jar
</loader-repository>
</class-loading>
</jboss-web>
-----------