title: mBeans Client deployed on weblogic gives a security exception?
body: <p>iam trying to follow the documentation of the mbeans for weblogic and create a web application 
  to access an already created custom beans running in another application deployed in the server .
  iam using this code </p>
  
  <pre><code>   InitialContext ctx = new InitialContext();
      MBeanServer    server = (MBeanServer)ctx.lookup("java:comp/env/jmx/runtime");
      String serverName = System.getProperty("weblogic.Name");
  
  
  
           ObjectName on =new ObjectName("com.myCompanyName:Name=MyCutomBean,Type=MyCutomBean");
           boolean boolresult=(Boolean)server.invoke(on, "myMethod",
           new Object[]{"a","b","c"}
           ,new String[]{"java.lang.String","java.lang.String","java.lang.String"}); //throw exception
            out.print(result);
           out.print(boolresult);
  </code></pre>
  
  <p>when i try to access our custom beans i got this exception :</p>
  
  <blockquote>
    <p>Access not allowed for subject: principals=[], on ResourceType: Name Action: execute, Target: myMethod </p>
  </blockquote>
  
  <p>what could be the problem ?</p>