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
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); when i try to access our custom beans i got this exception :
Access not allowed for subject: principals=[], on ResourceType: Name Action: execute, Target: myMethod
what could be the problem ?