0 Replies Latest reply on Jan 16, 2013 6:45 AM by Yaguo Zhou

    org.jboss.modcluster.demo.servletLoadServlet#init(ServletConfig config) need to be fix on jboss as 5.1

    Yaguo Zhou Newbie


        I am wondering if it's a bug of mod_cluster demo war. After  deploy the demo war which is located in mod_cluster distribution into my jboss as 5 instance and trigger it through the GUI app, it flows into Tomcat6 logic in org.jboss.modcluster.demo.servletLoadServlet#init(ServletConfig config).After check the source code(https://github.com/modcluster/mod_cluster/blob/master/demo/server/src/main/java/org/jboss/modcluster/demo/servlet/LoadServlet.java), i found that "MBeanServer server = ManagementFactory.getPlatformMBeanServer();" is not correct in jboss as 5.


      After i hack the code and test again , i got luck.


      MBeanServer server = ManagementFactory.getPlatformMBeanServer();

      //hack by Yaguo Zhou



      Am i right?