Ok, that is caused by classloader problems. In case auf JDK 1.5
there are two versions of javax.management.MBeanServer hanging around.
While hivemind.management.MBeanRegistry is loaded by a maven
classloader and uses the mx4j MBeanServer, the proxy of
the MBeanServer service is generated with a version of MBeanServer loaded
by the system classloader. The system classloader uses the implementation
from the JDK.

This behaviour can be tracked down to the DefaultClassResolver
which delegates the classloading to the context classloader
which is the system classloader during the junit tests.

Any ideas, what we can do?

Achim

Am Sun, 07 May 2006 13:23:37 +0200 schrieb Achim Hügen <[EMAIL PROTECTED]>:

I switched to maven 2.0.4. How do you get maven to execute the jmx tests at all? I just noticed that it always reports 'There are no tests to run'. No wonder
they didn't fail ;-)

I added an test inclusion filter to the pom and now tests are executed and fail.
The test report says:

org.apache.hivemind.ApplicationRuntimeException: Unable to construct service hivemind.management.MBeanRegistry: Error building service hivemind.management.MBeanRegistry: Unable to find constructor applicable for autowiring. Use explicit constructor parameters. [file:/D:/Projekte/opensource/jakarta-hivemind/jmx/target/classes/META-INF/jmx-core-module.xml, line 38, column 21] at org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:166)

I will investigate further.

Achim


Am Sat, 06 May 2006 17:07:34 +0200 schrieb James Carman <[EMAIL PROTECTED]>:

I switched to JDK5 to run mvn.  But, there are test failures in the JMX
module:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
[surefire] Running org.apache.hivemind.management.impl.TestObjectNameEditor
[surefire] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0 sec
[surefire] Running
org.apache.hivemind.management.log4j.TestLogManagementMBean
[surefire] Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 0 sec
<<<<<<<< FA
ILURE !!
[surefire] Running
org.apache.hivemind.management.mbeans.TestAbstractDynamicMBea
n
[surefire] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0 sec
[surefire] Running
org.apache.hivemind.management.mbeans.TestPerformanceMonitorM
Bean
[surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0 sec
[surefire] Running org.apache.hivemind.management.TestConnectors
[surefire] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.125 sec
<<<<<<<
< FAILURE !!
[surefire] Running org.apache.hivemind.management.TestMBeanRegistry
[surefire] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.032 sec
[surefire] Running
org.apache.hivemind.management.TestPerformanceMonitorFactory
[surefire] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.157 sec
<<<<<<<
< FAILURE !!

Results :
[surefire] Tests run: 17, Failures: 0, Errors: 4


-----Original Message-----
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 06, 2006 8:51 AM
To: hivemind-dev@jakarta.apache.org
Subject: RE: Build failures...

Since when did we start requiring JDK5 to build?

-----Original Message-----
From: Achim Hügen [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 06, 2006 8:48 AM
To: hivemind-dev@jakarta.apache.org
Subject: Re: Build failures...

It's working fine for me on Windows XP and JDK 1.5.
Which tests fail?

Achim

Am Sat, 06 May 2006 13:30:54 +0200 schrieb James Carman
<[EMAIL PROTECTED]>:

All,

I just checked out a fresh copy of HiveMind and it doesn't build (using
maven 2). It has test failures. Is there something special that I have
to
do to get it working?

James



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to