|
only appears in the JVM installation; when you log in as a different user more works. There is still a security manager running, and not a SmartFrog one.
2009/03/21 21:32:08:905 GMT [INFO ][RMI TCP Connection(2)-192.168.174.1] HOST dundee:rootProcess:checksecurity - Current security manager java.lang.SecurityManager@14384c2 classname class java.lang.SecurityManager this is related to
the changes to sfDefaultProperties here http://smartfrog.svn.sourceforge.net/viewvc/smartfrog/trunk/core/smartfrog/bin/setSFDefaultProperties?revision=5454&view=markup -they add a default security manager *always* 1. if we are going to always have a security manager, it should be our exit controlling one 2. the only way to turn this security manager off is now to go export SFDEFAULTSECURITY=" " or export SFDEFAULTSECURITY="-Dorg.smartfrog.sfcore.common.Logger.processCompoundDiagReport=true -Dorg.smartfrog.sfcore.common.Logger.testNetwork=false"
but this does not stop security exceptions arising when you try and make RMI calls. We need to switch to our security manager (ExitTrapping) by default, and somehow get those security policies in or bail out early when they are not. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
09/03/21 00:53:17 [TaskTracker] INFO mortbay.log : Extract jar:file:/opt/smartfrog/lib/hadoop-core-0.21.0-alpha-8.jar!/webapps/task to /tmp/Jetty_0_0_0_0_50060_task____.2vcltf/webapp
09/03/21 00:53:17 [TaskTracker] ERROR / : Security Init for context failed
java.lang.SecurityException: attempt to add a Permission to a readonly Permissions object
at java.security.Permissions.add(Permissions.java:110)
at java.security.Policy$UnsupportedEmptyCollection.add(Policy.java:790)
at org.apache.jasper.compiler.JspRuntimeContext.initSecurity(JspRuntimeContext.java:564)
at org.apache.jasper.compiler.JspRuntimeContext.<init>(JspRuntimeContext.java:198)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:150)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:431)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:643)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1234)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:460)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
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:222)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.apache.hadoop.http.HttpServer.start(HttpServer.java:454)
at org.apache.hadoop.mapred.TaskTracker.innerStart(TaskTracker.java:943)
at org.apache.hadoop.util.Service.start(Service.java:186)
at org.smartfrog.services.hadoop.components.cluster.HadoopServiceImpl.innerDeploy(HadoopServiceImpl.java:504)
at org.smartfrog.services.hadoop.components.cluster.HadoopServiceImpl.access$000(HadoopServiceImpl.java:55)
at org.smartfrog.services.hadoop.components.cluster.HadoopServiceImpl$ServiceDeployerThread.execute(HadoopServiceImpl.java:759)
at org.smartfrog.sfcore.utils.SmartFrogThread.run(SmartFrogThread.java:279)