Wildfly 8.1 ClassNotFound org.apache.http.conn.ClientConnectionManager

Deadly 提交于 2019-12-01 13:33:05

Jars in the modules directory are mostly shielded from you and are there for the use of the server implementation. Exceptions are those that expose the Java EE APIs.

The easiest solution for you is to just include this jar in your application.

Alternatively, you could compose a jboss-deployment-structure.xml file as described in Class Loading in WildFly.

For example:

<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
    <deployment>
        <dependencies>
            <module name="org.apache.httpcomponents"/>
        </dependencies>
    </deployment>
</jboss-deployment-structure>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!