Codigami / face4j

face4j is a java library for facebook's new graph API
http://face4j.org
23 stars 6 forks source link

AppEngine ClassNotFoundException HttpException #16

Open mrschtief opened 12 years ago

mrschtief commented 12 years ago

I used new FacebookFactory(client,HttpClientType.URL_FETCH_SERVICE); but it still tries to use commons httpclient

ClassNotFoundException: org.apache.commons.httpclient.HttpException at com.google.appengine.runtime.Request.process-9f68138e205ad9bb(Request.java) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) at com.face4j.facebook.http.APICallerFactory.(APICallerFactory.java:14)

mrschtief commented 12 years ago

problem is the callers.put(HttpClientType.APACHE_HTTP_CLIENT, APICaller.getInstance()); in APICallerFactory static code. it still need apache commons http even in appengine, maybe try reflection or make a version without imports of apache commons http

nischal commented 12 years ago

Yeah, we can change that, until then you would need to include the commons jar.