not sure what you want to achieve, but for client-side http, have a look at
RequestBuilder .
never use gae so i cannot tell what options u'd have there


On Mon, Aug 8, 2011 at 11:09 AM, Vik <vik....@gmail.com> wrote:

> Hie
>
> yeah i m importing classes like import org.apache.http.HttpEntity;
> Using these to call a rest ws . so what is the option to do it on GWT+GAE
> platform. Just to mention i am invoking this code from server side i.e from
> a serviceImpl
>
> Thankx and Regards
>
> Vik
> Founder
> http://www.sakshum.org
> http://blog.sakshum.org
>
>
> On Mon, Aug 8, 2011 at 2:09 PM, kim young ill <khi...@googlemail.com>wrote:
>
>> looks like u want to use apache-httpclient for gae
>>
>> 1. not all jdk-packages are useable in gwt-clientside
>> 2. limitations of gae : networkconnections (outbounds ) ???
>>
>>
>> On Mon, Aug 8, 2011 at 10:35 AM, Ashwin Desikan <ashwin.desi...@gmail.com
>> > wrote:
>>
>>> **
>>> what version of gwt are you running? Also is this error in your local dev
>>> mode?
>>>
>>> ~Ashwin
>>>
>>> On Monday 08 August 2011 01:58 PM, Vik wrote:
>>>
>>> Hie
>>>
>>>  In my gwt+gae  app when running i am seeing below exception. the class
>>> in question is a part of gwt-dev.jar which is included in classpath
>>> (otherwise i think there will be many issues even before this).
>>> Any advise why I am getting the error on runtime even when the jar is a
>>> part of class path?
>>>
>>>  Vik
>>>
>>>  [ERROR] javax.servlet.ServletContext log: Exception while dispatching
>>> incoming RPC call
>>> com.google.gwt.user.server.rpc.UnexpectedException: Service method
>>> 'public abstract java.lang.String
>>> vik.sakshum.sakshumweb.client.service.BloodDonorRegisterService.registerDonor(vik.sakshum.sakshumweb.client.bean.BloodDonorProfileBean)
>>> throws java.lang.Exception' threw an unexpected exception:
>>> java.lang.NoClassDefFoundError: org/apache/http/HttpEntity
>>>  at
>>> com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385)
>>>  at
>>> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588)
>>>  at
>>> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
>>>  at
>>> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
>>>  at
>>> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
>>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>>  at
>>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>>>  at
>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
>>>  at
>>> com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
>>>  at
>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>>  at
>>> com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
>>>  at
>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>>  at
>>> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
>>>  at
>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>>  at
>>> com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
>>>  at
>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>>  at
>>> com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
>>>  at
>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>>  at
>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
>>>  at
>>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>>>  at
>>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>>>  at
>>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
>>>  at
>>> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
>>>  at
>>> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
>>>  at
>>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>>>  at
>>> com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351)
>>>  at
>>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>>>  at org.mortbay.jetty.Server.handle(Server.java:326)
>>>  at
>>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
>>>  at
>>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
>>>  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
>>>  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
>>>  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>>>  at
>>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>>>  at
>>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
>>> Caused by: java.lang.NoClassDefFoundError: org/apache/http/HttpEntity
>>>  at
>>> vik.sakshum.sakshumweb.server.BloodDonorRegisterServiceImpl.registerDonor(BloodDonorRegisterServiceImpl.java:255)
>>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>  at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>  at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>  at java.lang.reflect.Method.invoke(Method.java:597)
>>>  at
>>> com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100)
>>>  at
>>> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
>>>  ... 34 more
>>> Caused by: java.lang.ClassNotFoundException: org.apache.http.HttpEntity
>>>  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>>  at java.security.AccessController.doPrivileged(Native Method)
>>>  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>>  at
>>> com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:176)
>>>  at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>>>  ... 41 more
>>> Thankx and Regards
>>>
>>> Vik
>>> Founder
>>> http://www.sakshum.org
>>> http://blog.sakshum.org
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to