To fix this you just have to include a jboss-web.xml (in thte META-INF
fodler) file like the one below,
---------
<jboss-web>
<class-loading>
<loader-repository>
org.apache.commons.httpclient:loader=commons-httpclient-3.0.jar
</loader-repository>
</class-loading>
</jboss-web>
-----------
The j2ee management dependy was not added in my .sar file however.
I've created and tested the two archives and they work well
I will open a JIRA. and the solution.
gnodet wrote:
>
> Bruce, these dependencies are already added and deployed but they
> conflict with the existing ones shipped with JBoss.
> I have already seen that problem but had no time to understand
> how to tweak the JBoss classloader to workaround that.
>
> Jboss ships commons-http v2.x and ServiceMix uses v3.0.
> Unfortunately, these versions are slightly incompatible...
>
> On 9/18/06, Bruce Snyder <[EMAIL PROTECTED]> wrote:
>> On 9/18/06, Eric Dofonsou <[EMAIL PROTECTED]> wrote:
>> >
>> >
>> >
>> > I've found the following issue with the way servicemix works in JBOS.
>> >
>> > I'am building endpoints that use the ervicemix-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.
>> >
>> > Can this be done ? Ican includ an extract of the jboss-web.xml file
>> justin
>> > case.
>>
>> Can these additional dependencies be added to the service assembly to
>> be deployed with it?
>>
>> Bruce
>> --
>> perl -e 'print
>> unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> );'
>>
>> Apache Geronimo - http://geronimo.apache.org/
>> Apache ActiveMQ - http://incubator.apache.org/activemq/
>> Apache ServiceMix - http://incubator.apache.org/servicemix/
>> Castor - http://castor.org/
>>
>
>
> --
> Cheers,
> Guillaume Nodet
>
>
--
View this message in context:
http://www.nabble.com/Jboss-and-servicemix.-tf2293019.html#a6388262
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.