quarks
quarks

Reputation: 35276

HttpClient on GAE

I'm really curious as how JIQL admin demo was able to run on Appengine cloud (appspot.com)

Whereas where I tried to port the available sources like the Guestbook and the Jqladmin app I get this error:

Caused by: java.lang.ClassNotFoundException: org.apache.commons.httpclient.HttpException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:176)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    ... 44 more

However, there is a running JiqlAdmin that runs on top of GAE and I have tried and was able to execute a SQL query:

http://jiqladmin.appspot.com/Jiqladmin.html

Just wondering what went wrong in my app.

Upvotes: 0

Views: 982

Answers (1)

Subin Sebastian
Subin Sebastian

Reputation: 10997

Error seems obvious, you should add Apache commons Http client as dependency. Try putting that in your war/WEB_INF/lib or add it as dependency in Eclipse.

Upvotes: 2

Related Questions