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

后端 未结 1 1120
野趣味
野趣味 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:

    
    
        
            
                
            
        
    
    

    0 讨论(0)
提交回复
热议问题