2011-06-26 43 views
1

在GAE開發JSF,不能運行我的項目,當我運行,它會拋出該異常不能在本地運行GAE,拋出此異常

Jun 26, 2011 4:09:21 PM com.google.apphosting.utils.jetty.JettyLogger info 
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger 
Jun 26, 2011 4:09:21 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml 
INFO: Successfully processed C:\Users\THS\workspace\jsfgae\war\WEB-INF/appengine-web.xml 
Jun 26, 2011 4:09:21 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml 
INFO: Successfully processed C:\Users\THS\workspace\jsfgae\war\WEB-INF/web.xml 
Jun 26, 2011 4:09:23 PM com.google.apphosting.utils.jetty.JettyLogger warn 
WARNING: failed [email protected]391{/,C:\Users\THS\workspace\jsfgae\war}: java.lang.NoClassDefFoundError: javax.naming.InitialContext is a restricted class. Please see the Google App Engine developer's guide for more details. 
Jun 26, 2011 4:09:23 PM com.google.apphosting.utils.jetty.JettyLogger warn 
WARNING: failed [email protected]: java.lang.NoClassDefFoundError: javax.naming.InitialContext is a restricted class. Please see the Google App Engine developer's guide for more details. 
Jun 26, 2011 4:09:23 PM com.google.apphosting.utils.jetty.JettyLogger warn 
WARNING: Error starting handlers 
java.lang.NoClassDefFoundError: javax.naming.InitialContext is a restricted class. Please see the Google App Engine developer's guide for more details. 
at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51) 
at com.sun.faces.config.WebConfiguration.processJndiEntries(WebConfiguration.java:613) 
at com.sun.faces.config.WebConfiguration.<init>(WebConfiguration.java:122) 
at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:182) 
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:163) 
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548) 
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) 
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) 
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) 
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) 
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) 
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) 
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) 
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) 
at org.mortbay.jetty.Server.doStart(Server.java:224) 
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) 
at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:186) 
at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:157) 
at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:169) 
at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:164) 
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48) 
at com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServerMain.java:113) 
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:89) 
Jun 26, 2011 4:09:23 PM com.google.appengine.tools.development.DevAppServerImpl start 
INFO: The server is running at http://localhost:8888/ 

回答