[fedora-java] javax.management woes, again

Andrew Haley aph at redhat.com
Wed May 2 16:11:07 UTC 2007


To cut to the chase: I've been debugging 236541 for a week now, and
I've finally found the cause:
gnu.javax.management.Server.registerMBean() is broken in Classpath.

The problem is that it should send MBeanServerNotifications to its
delegate whenever called, but it doesn't.  The result of this is that
the Tomcat embedded web server is broken, because its server contexts
never get registered.

As far as I am aware, every application that uses an embedded Tomcat
is likely to be affected in the same way, and possibly standalone
Tomcat as well.

For the sake of comparison, MX4JMBeanServer.register() does this:

  delegate.sendNotification(new MBeanServerNotification
			    (MBeanServerNotification.REGISTRATION_NOTIFICATION, 
			     delegateName, sequenceNumber, objectName));

So, what to do for Fedora 7?  I'm sure there's no time to fix
gnu.javax.management.

So, I'm proposing this

    ln -sf /usr/share/java/mx4j/mx4j.jar  /usr/share/java/gcj-endorsed

There is one problem that I can see: mx4j is rather old, or at least
the version in Fedora 7 is.  Maybe some of the interfaces in Classpath
are more recent, so perhaps we shouldn't do this globally for all uses
of gcj.  I'd appreciate comments.

Andrew.


https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=236541




More information about the fedora-devel-java-list mailing list