0 Replies Latest reply on May 20, 2009 6:25 AM by fraza123

    Which mx4j version is supported by BlazeDS 3.2

    fraza123

      I've a jetty started in a phoenix container which uses mx4j.server.MX4JMBeanServerBuilder (MX4J-Release: 3.0.2).

      When I deploy BlazeDS war on this jetty, it gives me "java.lang.LinkageError". I guess some older version of mx4j is supported by BlazeDS. Here's the stack trace:

       

      java.lang.LinkageError: Class javax/management/MBeanServer violates loader constraints
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
          at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
          at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
          at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
          at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366)
          at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
          at java.lang.Class.getDeclaredConstructors0(Native Method)
          at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
          at java.lang.Class.getConstructor0(Class.java:2671)
          at java.lang.Class.newInstance0(Class.java:321)
          at java.lang.Class.newInstance(Class.java:303)
          at javax.management.MBeanServerFactory.newBuilder(MBeanServerFactory.java:456)
          at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:494)
          at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:530)
          at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:304)
          at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:219)
          at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:180)
          at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:264)
          at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:512)
          at flex.management.PlatformMBeanServerLocator.getMBeanServer(PlatformMBeanServerLocator.java :45)
          at flex.management.BaseControl.register(BaseControl.java:179)
          at flex.management.runtime.AdminConsoleDisplayRegistrar.<init>(AdminConsoleDisplayRegistrar. java:19)
          at flex.management.runtime.messaging.MessageBrokerControl.<init>(MessageBrokerControl.java:8 5)
          at flex.messaging.MessageBroker.<init>(MessageBroker.java:196)
          at flex.messaging.config.MessagingConfiguration.createBroker(MessagingConfiguration.java:104 )
          at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:106)

       

      Please help.

       

      Thanks,

      Faizan