Youll have to upgrade Apache Client to 4.2.1 or higher too.
On 3/31/2014 10:48 PM, Ming Hsieh wrote:
> Hi All
>
> Just downloaded 3.0.7, followed the instructions in
> examples/oauth2-as7-example, updated modules, properties, configurations
> and standalone.xml tried to deploy.
>
> auth-server.war and database.war deployed ok.
> deployment failed at "customer-portal.war":
> 09:58:15,925 INFO [org.jboss.as.server.deployment] (MSC service thread
> 1-4) JBA
> S015876: Starting deployment of "customer-portal.war"
> 09:58:16,008 ERROR [org.apache.catalina.core.StandardContext] (MSC
> service threa
> d 1-2) Context [/customer-portal] startup failed due to previous errors:
> java.la <http://java.la>
> ng.NoClassDefFoundError:
> org/apache/http/impl/conn/PoolingClientConnectionManage
> r
> at
> org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder.initDefaultEngi
> ne(ResteasyClientBuilder.java:428) [resteasy-client-3.0.7.Final.jar:]
> at
> org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder.build(ResteasyC
> lientBuilder.java:333) [resteasy-client-3.0.7.Final.jar:]
> at
> org.jboss.resteasy.skeleton.key.as7.OAuthManagedResourceValve.init(OA
> uthManagedResourceValve.java:115) [skeleton-key-as7-3.0.7.Final.jar:]
> at
> org.jboss.resteasy.skeleton.key.as7.OAuthManagedResourceValve.lifecyc
> leEvent(OAuthManagedResourceValve.java:66)
> [skeleton-key-as7-3.0.7.Final.jar:]
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
> eSupport.java:115) [jbossweb-7.0.13.Final.jar:]
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3
> 845) [jbossweb-7.0.13.Final.jar:]
> at
> org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentS
> ervice.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(Se
> rviceControllerImpl.java:1811)
> at
> org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceCont
> rollerImpl.java:1746)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
> java:1145) [rt.jar:1.7.0_25]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:615) [rt.jar:1.7.0_25]
> at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
>
> I am Using jboss 7.1.1.Final, resteasy 3.0.7.Final and jdk 1.7.0_25.
>
> Digged into the documentation for httpcomponents
> https://hc.apache.org/httpcomponents-client-4.3.x/httpclient/apidocs/org/apache/http/impl/conn/PoolingClientConnectionManager.html
> it seems like PoolingClientConnectionManager is only available in
> version 4.2.
> jboss as 7.1.1.Final only includes httpcomponents version 4.1.2.
> Updated the httpcomponents in jboss (module.xml):
> <module xmlns="urn:jboss:module:1.1" name="org.apache.httpcomponents">
> <properties>
> <property name="jboss.api" value="private"/>
> </properties>
>
> <resources>
> <resource-root path="httpclient-4.3.3.jar"/>
> <resource-root path="httpcore-4.3.2.jar"/>
> <resource-root path="httpmime-4.3.3.jar"/>
> <!-- Insert resources here -->
> </resources>
>
> <dependencies>
> <module name="javax.api"/>
> <module name="org.apache.commons.codec"/>
> <module name="org.apache.commons.logging"/>
> <module name="org.apache.james.mime4j"/>
> </dependencies>
> </module>
>
> After that deployment success. So maybe the updated modules should be
> included resteasy download.
>
> For anybody that is interested in oauth2.
>
> Regards,
>
> Ming
>
>
>
> On Mon, Mar 31, 2014 at 11:30 PM, Bill Burke <bb...@re...
> <mailto:bb...@re...>> wrote:
>
> Ron fixed a few bugs in validation. Netty improvements. A few other
> bug fixes here and there.
>
> As usual, follow links from jboss.org/resteasy
> <http://jboss.org/resteasy> to download and view
> documentation and release notes.
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Resteasy-users mailing list
> Res...@li...
> <mailto:Res...@li...>
> https://lists.sourceforge.net/lists/listinfo/resteasy-users
>
>
>
>
>
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
|