Olá,
Estou com um problema ao fazer o deploy de uma aplicação com Wicket na Google App Engine.
Segui todos os tutoriais para fazer ela rodar lá, mas sempre gera um erro, apesar de quando testar localmente funcionar normal.
O erro é:
Failed startup of context com . google . apphosting . utils . jetty . RuntimeAppEngineWebAppContext @ a34783 { / , / base / data / home / apps / cartspot / 1.341577224095941968 }
java . security . AccessControlException : access denied ( java . io . FilePermission / WEB - INF / html read )
at java . security . AccessControlContext . checkPermission ( AccessControlContext . java : 355 )
at java . security . AccessController . checkPermission ( AccessController . java : 567 )
at java . lang . SecurityManager . checkPermission ( Unknown Source )
at com . google . apphosting . runtime . security . CustomSecurityManager . checkPermission ( CustomSecurityManager . java : 45 )
at java . lang . SecurityManager . checkRead ( Unknown Source )
at java . io . File . exists ( File . java : 788 )
at org . apache . wicket . util . file . WebApplicationPath . add ( WebApplicationPath . java : 71 )
at org . apache . wicket . settings . Settings . addResourceFolder ( Settings . java : 388 )
at cartspot . applications . FrontApplication . init ( FrontApplication . java : 24 )
at org . apache . wicket . protocol . http . WicketFilter . init ( WicketFilter . java : 719 )
at org . mortbay . jetty . servlet . FilterHolder . doStart ( FilterHolder . java : 97 )
at org . mortbay . component . AbstractLifeCycle . start ( AbstractLifeCycle . java : 50 )
at org . mortbay . jetty . servlet . ServletHandler . initialize ( ServletHandler . java : 662 )
at org . mortbay . jetty . servlet . Context . startContext ( Context . java : 140 )
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 com . google . apphosting . runtime . jetty . AppVersionHandlerMap . createHandler ( AppVersionHandlerMap . java : 191 )
at com . google . apphosting . runtime . jetty . AppVersionHandlerMap . getHandler ( AppVersionHandlerMap . java : 168 )
at com . google . apphosting . runtime . jetty . JettyServletEngineAdapter . serviceRequest ( JettyServletEngineAdapter . java : 123 )
at com . google . apphosting . runtime . JavaRuntime . handleRequest ( JavaRuntime . java : 243 )
at com . google . apphosting . base . RuntimePb $ EvaluationRuntime $ 6 . handleBlockingRequest ( RuntimePb . java : 5838 )
at com . google . apphosting . base . RuntimePb $ EvaluationRuntime $ 6 . handleBlockingRequest ( RuntimePb . java : 5836 )
at com . google . net . rpc . impl . BlockingApplicationHandler . handleRequest ( BlockingApplicationHandler . java : 24 )
at com . google . net . rpc . impl . RpcUtil . runRpcInApplication ( RpcUtil . java : 398 )
at com . google . net . rpc . impl . Server $ 2 . run ( Server . java : 852 )
at com . google . tracing . LocalTraceSpanRunnable . run ( LocalTraceSpanRunnable . java : 56 )
at com . google . tracing . LocalTraceSpanBuilder . internalContinueSpan ( LocalTraceSpanBuilder . java : 576 )
at com . google . net . rpc . impl . Server . startRpc ( Server . java : 807 )
at com . google . net . rpc . impl . Server . processRequest ( Server . java : 369 )
at com . google . net . rpc . impl . ServerConnection . messageReceived ( ServerConnection . java : 442 )
at com . google . net . rpc . impl . RpcConnection . parseMessages ( RpcConnection . java : 319 )
at com . google . net . rpc . impl . RpcConnection . dataReceived ( RpcConnection . java : 290 )
at com . google . net . async . Connection . handleReadEvent ( Connection . java : 474 )
at com . google . net . async . EventDispatcher . processNetworkEvents ( EventDispatcher . java : 831 )
at com . google . net . async . EventDispatcher . internalLoop ( EventDispatcher . java : 207 )
at com . google . net . async . EventDispatcher . loop ( EventDispatcher . java : 103 )
at com . google . net . rpc . RpcService . runUntilServerShutdown ( RpcService . java : 251 )
at com . google . apphosting . runtime . JavaRuntime $ RpcRunnable . run ( JavaRuntime . java : 404 )
at java . lang . Thread . run ( Unknown Source )
Pelo que vi, está gerando erro ao wicket obter os HTMLs da pasta “/WEB-INF/html”, que é onde ficam os htmls das página e componentes. Local, está rodando certinho.
O que fazer?