Can you provide a screenshot of where the jars are? As well as an updated 
screenshot showing your classpath?

On Wednesday, June 3, 2015 at 12:03:14 PM UTC-4, Christophe DA COSTA wrote:
>
> I don't find the solution....
>
> I added appengine-testing.jar and appengine-api-stubs.jar but I have the 
> same Error.
> I see on thegooglecloudstorageclient getstarted 
> <https://cloud.google.com/appengine/docs/java/googlecloudstorageclient/getstarted>
>  page 
> that I need this lybraries:
>
>    - appengine-gcs-client.jar 
>    - guava-15.0.jar
>    - joda-time-2.3.jar
>    - appengine-testing.jar
>    - appengine-api.jar 
>    - appengine-api-stubs.jar
>
>
> So, now I use all this.
>
>
>
> Le mardi 2 juin 2015 16:06:07 UTC+2, Ryan (Cloud Platform Support) a 
> écrit :
>>
>> Salutations Christophe,
>>
>> If you go to the Migrating from the Files API 
>> <https://cloud.google.com/appengine/docs/java/googlecloudstorageclient/migrate>
>>  page 
>> you will see that error means you are missing libraries. I would read 
>> through the page and see what libraries you are missing.
>>
>> On Tuesday, June 2, 2015 at 6:58:46 AM UTC-4, Christophe DA COSTA wrote:
>>>
>>> Thanks for yours answers,
>>>
>>> I am trying to use the Google Cloud Storage but I have this erreur:
>>>
>>> com.google.api.server.spi.SystemService invokeServiceMethod: exception 
>>> occurred while calling backed method
>>> java.lang.NoClassDefFoundError: 
>>> com/google/api/client/http/HttpRequestInitializer
>>>     at 
>>> com.google.appengine.tools.cloudstorage.oauth.OauthRawGcsServiceFactory.<clinit>(OauthRawGcsServiceFactory.java:31)
>>>     at 
>>> com.google.appengine.tools.cloudstorage.GcsServiceFactory.createRawGcsService(GcsServiceFactory.java:59)
>>>     at 
>>> com.google.appengine.tools.cloudstorage.GcsServiceFactory.createGcsService(GcsServiceFactory.java:44)
>>>     at 
>>> com.google.appengine.tools.cloudstorage.GcsServiceFactory.createGcsService(GcsServiceFactory.java:40)
>>>     at 
>>> com.google.appengine.tools.cloudstorage.GcsServiceFactory.createGcsService(GcsServiceFactory.java:75)
>>>     at 
>>> com.listecourses.model.ListeModelEndpoint.insertListeModel(ListeModelEndpoint.java:204)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>     at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>     at java.lang.reflect.Method.invoke(Method.java:45)
>>>     at 
>>> com.google.api.server.spi.SystemService.invokeServiceMethod(SystemService.java:359)
>>>     at 
>>> com.google.api.server.spi.SystemServiceServlet.execute(SystemServiceServlet.java:113)
>>>     at 
>>> com.google.api.server.spi.SystemServiceServlet.doPost(SystemServiceServlet.java:71)
>>>     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 
>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>>     at 
>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>>     at 
>>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>>     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 
>>> 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.headerComplete(HttpConnection.java:923)
>>>     at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>>>     at 
>>> com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:437)
>>>     at 
>>> com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:444)
>>>     at 
>>> com.google.tracing.CurrentContext.runInContext(CurrentContext.java:230)
>>>     at 
>>> com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:308)
>>>     at 
>>> com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:300)
>>>     at 
>>> com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:441)
>>>     at java.lang.Thread.run(Thread.java:745)
>>>
>>>
>>> my code is:
>>>
>>>
>>> GcsFilename fileName = new GcsFilename("my-bucket-name", 
>>> "someFileName.jpg");
>>> GcsOutputChannel outputChannel = 
>>> GcsServiceFactory.createGcsService().createOrReplace(fileName, 
>>> GcsFileOptions.getDefaultInstance());
>>> outputChannel.write(ByteBuffer.wrap(listemodel.getImage()));
>>> outputChannel.close();
>>>
>>>
>>>
>>> I think, I am missing the file API library whitin my project. I join the 
>>> image of my project's libraries.
>>>
>>>
>>>
>>>
>>>
>>> Le dimanche 31 mai 2015 22:11:59 UTC+2, Vinny P a écrit :
>>>>
>>>>
>>>> On Sun, May 31, 2015 at 12:07 PM, Christophe DA COSTA <
>>>> toto...@gmail.com> wrote:
>>>>
>>>>> I am trying to use the blobstore API, but I have this error:
>>>>>
>>>>> com.google.api.server.spi.SystemService invokeServiceMethod: exception 
>>>>> occurred while calling backed method com.google.apphosting.api.
>>>>> ApiProxy$CallNotFoundException: The API package 'file' or call 
>>>>> 'Create()' was not found. at java.lang.Thread.getStackTrace
>>>>>
>>>>>
>>>>
>>>>
>>>> Typically that error message means that you're missing the Files API 
>>>> library within your project or path. You might want to check your build 
>>>> setup and make sure the library is available.
>>>>
>>>> However, another more pressing issue is that you're using the Files 
>>>> API. File is deprecated and will soon be removed - see the notice here: 
>>>> https://cloud.google.com/appengine/docs/deprecations/files_api . 
>>>> You'll want to move to using Google Cloud Storage to hold your files: 
>>>> https://cloud.google.com/appengine/docs/java/googlecloudstorageclient/
>>>>
>>>>  
>>>>  
>>>> -----------------
>>>> -Vinny P
>>>> Technology & Media Consultant
>>>> Chicago, IL
>>>>
>>>> App Engine Code Samples: http://www.learntogoogleit.com
>>>>
>>>>
>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4c7635fc-997b-47ca-b7b0-89e8fdeef7ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to