JBoss 4.0.X GA Java 6 SE and JConsole connect problem

If you start JBoss with Java SE 6 and try to connect to JBoss with JConsole you will get an internal JBoss error (ClassNotFoundException), the connect process will be also interrupted. In case you initialize the MBeanServer manually inside the EJBContainer (with EJB's @PostConstruct or in an interceptor) with e.g.: ManagementFactory.getPlatformMBeanServer() and then connect with JConsole - everything works well. In this case the registered MBean will appear in the JConsole, but not in the jmx-console (e.g. http://localhost:8080/jmx-console).
However, the JBoss proprietary way with the @org.jboss.annotation.ejb.Service, @org.jboss.annotation.ejb.Management annotations works well without any problems.

NEW: Online Workhop Effective WebApps without Frameworks is also coming to: MUC Airport.

Airport MUC workshops: Web (SPA, PWAs, Offline, Desktop, Mobile) Applications Essentials and Effective Web Applications. No migrations. #usetheplatform

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns


Ich hatte das gleiche Problem und eine Suche ergab schnell den Grund. Die Lösung habe ich unter http://javainsel.blogspot.com/2007/02/jboss-jmx-und-jconsole.html dokumentiert.

Posted by Christian Ullenboom on February 08, 2007 at 07:22 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
Online Workshops
...the last 150 posts
...the last 10 comments