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

后端 未结 1 1119
野趣味
野趣味 2021-01-15 22:31

I\'m having a heck of a time getting a pooling connection manager to work for Resteasy clients. Deploying on Wildfly 8.1.

import org.apache.http.client.HttpC         


        
相关标签:
1条回答
  • 2021-01-15 23:03

    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>
    
    0 讨论(0)
提交回复
热议问题