From: Risto Y. <ri...@va...> - 2013-07-11 11:26:58
|
Hi. Didn't look at your application very closely, but I noticed enough keywords that sound similiar to our use case. We have a bunch of modules (mostly RestEasy related) that JBoss for some reason doesn't load automatically, so we need to manually tell JBoss to load those modules. The way to do that is to mark those libraries as provided in the Maven POM and include something like this in a file called jboss-deployment.xml: <jboss-deployment-structure> <deployment> <dependencies> <!-- For Credentials in JAX-RS--> <module name="org.apache.httpcomponents" /> ... This will make them available to you at development time and instruct JBoss to load them at runtime. https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7 could provide some additional info. -- Risto Yrjänä, Vaadin Expert - +358 447 692 615 - Vaadin Ltd - www.vaadin.com/risto On 11 July 2013 12:46, Matthias Wessendorf <ma...@ap...> wrote: > Hi All, > > I've got an application > https://github.com/aerogear/aerogear-push-quickstart-backend/tree/AGPUSH-154 > that is using a dependency that can find here > https://github.com/aerogear/aerogear-unified-push-java-client . The latest > relies on Resteasy Client bits. > > It has been working weel, as long I did not use the httpClient bits. But we > are adding some basic security stuff and we are using the > ApacheHttpClient4Executor , see > https://github.com/aerogear/aerogear-unified-push-java-client/blob/master/src/main/java/org/jboss/aerogear/unifiedpush/resteasy/RestEasyClient.java#L83 > > But now I'm getting a linkage error exception, see stacktrace here : > https://gist.github.com/sebastienblanc/5973915 > > Putting the scope to provided does not help as I ended with class not found > exception on httpclient bits (The Credentail class) > > By googling I found this http://stackoverflow.com/a/10800898 but this is not > really acceptable as solution. > > Do you have any other tips ? > > Thanks, > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > twitter: http://twitter.com/mwessendorf > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Resteasy-users mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/resteasy-users > |