This is caused by transitive dependencies bringing in wrong version of
httpcore. Update the
pom.xmlto specify the correct version of
hope it helps..
Yes, thank you.
Additionally I had to modify the "org.apache.httpcomponents" module adding these dependencies.
<! - <resource-root path = "httpclient-4.1.3-redhat-1.jar" />
<resource-root path = "httpcore-4.1.4-redhat-1.jar" /> ->
<resource-root path = "httpclient-4.2.1.jar" />
<resource-root path = "httpcore-4.2.1.jar" />
<resource-root path = "httpmime-4.1.3-redhat-1.jar" />
<! - Insert resources here ->
I would like to do it in the jboss-deployment-structure XML file, It is posible?
Yes, we can add these dependencies through jboss-deployment-structure.xml file, like as:
If you are using war file then this jboss-deployment-structure.xml file will work, but if you are using ear file then you have to add
sub-deployment> tag.Go through Class Loading in AS7 - JBoss AS 7.1 - Project Documentation Editorfor more details.