Thanks for the response. You are right it must be an import; the error went away after I used the guestbook servlet as a template. But my latest problem is proxy settings. My code fails when I try to fetch data from outside the firewall. I tried setting the proxy values thru System.setProperty in the calling method, which doesn't seem work. Is there something I need to do on the local Google App Engine server. BTW, I use the NetBeans IDE.
On Feb 26, 1:09 pm, "Ikai L (Google)" <[email protected]> wrote: > Can you post the code? My guess is an incorrect import somewhere. > > > > > > On Fri, Feb 26, 2010 at 8:17 AM, midi <[email protected]> wrote: > > runserver: > > [java] Feb 26, 2010 4:13:16 PM > > com.google.apphosting.utils.jetty.JettyLogger warn > > [java] WARNING: failed _ah_StaticFileFilter > > [java] java.lang.ClassCastException: > > com.google.apphosting.utils.jetty.AppEngineWebAppContext > > $AppEngineServletContext cannot be cast to > > org.mortbay.jetty.handler.ContextHandler$SContext > > [java] at > > > com.google.appengine.tools.development.StaticFileFilter.init(StaticFileFilt > > er.java: > > 47) > > [java] at > > org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99) > > [java] at > > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: > > 40) > > [java] at > > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java: > > 589) > > [java] at > > org.mortbay.jetty.servlet.Context.startContext(Context.java:139) > > [java] at > > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: > > 1218) > > [java] at > > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java: > > 500) > > [java] at > > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) > > [java] at > > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: > > 40) > > [java] at > > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java: > > 117) > > [java] at > > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: > > 40) > > [java] at > > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java: > > 117) > > [java] at org.mortbay.jetty.Server.doStart(Server.java: > > 217) > > [java] at > > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: > > 40) > > [java] at > > > com.google.appengine.tools.development.JettyContainerService.startContainer > > (JettyContainerService.java: > > 188) > > [java] at > > > com.google.appengine.tools.development.AbstractContainerService.startup(Abs > > tractContainerService.java: > > 147) > > [java] at > > > com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerI > > mpl.java: > > 219) > > [java] at > > com.google.appengine.tools.development.DevAppServerMain > > $StartAction.apply(DevAppServerMain.java:162) > > [java] at com.google.appengine.tools.util.Parser > > $ParseResult.applyArgs(Parser.java:48) > > [java] at > > > com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServer > > Main.java: > > 113) > > [java] at > > > com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMa > > in.java: > > 89) > > [java] Feb 26, 2010 4:13:16 PM > > com.google.apphosting.utils.jetty.JettyLogger warn > > [java] WARNING: Failed startup of context > > com.google.apphosting.utils.jetty.devappenginewebappcont...@1b15692{/,C: > > \searchTube\build\web} > > [java] java.lang.ClassCastException: > > com.google.apphosting.utils.jetty.AppEngineWebAppContext > > $AppEngineServletContext cannot be cast to > > org.mortbay.jetty.handler.ContextHandler$SContext > > [java] at > > > com.google.appengine.tools.development.StaticFileFilter.init(StaticFileFilt > > er.java: > > 47) > > [java] at > > org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99) > > [java] at > > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: > > 40) > > [java] at > > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java: > > 589) > > [java] at > > org.mortbay.jetty.servlet.Context.startContext(Context.java:139) > > [java] at > > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: > > 1218) > > [java] at > > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java: > > 500) > > [java] at > > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) > > [java] at > > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: > > 40) > > [java] at > > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java: > > 117) > > [java] at > > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: > > 40) > > [java] at > > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java: > > 117) > > [java] at org.mortbay.jetty.Server.doStart(Server.java: > > 217) > > [java] at > > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: > > 40) > > [java] at > > > com.google.appengine.tools.development.JettyContainerService.startContainer > > (JettyContainerService.java: > > 188) > > [java] at > > > com.google.appengine.tools.development.AbstractContainerService.startup(Abs > > tractContainerService.java: > > 147) > > [java] at > > > com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerI > > mpl.java: > > 219) > > [java] at > > com.google.appengine.tools.development.DevAppServerMain > > $StartAction.apply(DevAppServerMain.java:162) > > [java] at com.google.appengine.tools.util.Parser > > $ParseResult.applyArgs(Parser.java:48) > > [java] at > > > com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServer > > Main.java: > > 113) > > [java] at > > > com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMa > > in.java: > > 89) > > [java] The server is running athttp://localhost:9090/ > > > Any idea how to resolve ? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-appengine%2Bunsubscrib > > [email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine?hl=en. > > -- > Ikai Lan > Developer Programs Engineer, Google App > Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
