Change By: Marcel Overdijk (02/Feb/14 2:40 PM)
Affects Version/s: 2.1.2.Final
Environment: Google App Engine
Description: I tried deploying a simple Weld application on Google App Engine but it gave me a AccessControlException:

{code}
Failed startup of context com.google.apphosting.utils.jetty.RuntimeAppEngineWebAppContext@1e3b5cb{/,/base/data/home/apps/s~kapsalonreflection-rest/3-0.373473512476989111}
java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:375)
at java.security.AccessController.checkPermission(AccessController.java:565)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at com.google.apphosting.runtime.security.CustomSecurityManager.checkPermission(CustomSecurityManager.java:56)
at com.google.apphosting.runtime.security.CustomSecurityManager.checkAccess(CustomSecurityManager.java:131)
at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:315)
at java.lang.ThreadGroup.checkParentAccess(ThreadGroup.java:135)
at java.lang.ThreadGroup.<init>(ThreadGroup.java:117)
at java.lang.ThreadGroup.<init>(ThreadGroup.java:96)
at org.jboss.weld.bootstrap.events.ContainerLifecycleEventPreloader.<init>(ContainerLifecycleEventPreloader.java:58)
at org.jboss.weld.bootstrap.WeldStartup.addImplementationServices(WeldStartup.java:293)
at org.jboss.weld.bootstrap.WeldStartup.startContainer(WeldStartup.java:203)
at org.jboss.weld.bootstrap.WeldBootstrap.startContainer(WeldBootstrap.java:67)
at org.jboss.weld.bootstrap.WeldBootstrap.startContainer(WeldBootstrap.java:63)
at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:140)
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 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java:219)
at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java:194)
at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:134)
at com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:446)
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:188)
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 com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:251)
at java.lang.Thread.run(Thread.java:724)
{code}

Weld version I used is latest 2.1.2 Final.
I also tried with latest from 1.x branch (1.1.17.Final) and with this one I can deploy successfully to Google App Engine infrastructure.

Should Weld 2.x run on Google App Engine or are there no efforts for this?
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira