我对 Google App Engine (GAE) 和 Glassware 开发(针对 Google Glass)非常陌生。
我在上面配置了 mirror-quickstart-java项目,Netbeans
并且Apache tomcat
我成功地运行了该项目,但我遇到了麻烦。
我的要求是,我不想使用谷歌应用引擎来开发我自己的 Glassware,因为我想使用很少的第三方 API。此外,应用程序引擎不支持javax.imageio
和BufferedImage
api。
我有以下问题
- 是否必须使用 Google
app-engine
进行 mirror-quickstart-java/Glassware 开发? - 如果不是,我在交换访问令牌时的“允许访问”步骤后收到以下错误。
message The API package 'urlfetch' or call 'Fetch()' was not found.
description The server encountered an internal error that prevented it from fulfilling this request.
com.google.apphosting.api.ApiProxy$CallNotFoundException: The API package 'urlfetch' or call 'Fetch()' was not found.
com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:100)
com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java:38)
com.google.api.client.extensions.appengine.http.UrlFetchRequest.execute(UrlFetchRequest.java:75)
com.google.api.client.http.HttpRequest.execute(HttpRequest.java:980)
com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:299)
com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeTokenRequest.execute(GoogleAuthorizationCodeTokenRequest.java:175)
com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeTokenRequest.execute(GoogleAuthorizationCodeTokenRequest.java:78)
com.google.glassware.AuthServlet.doGet(AuthServlet.java:56)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)