|
From: Lonneke D. <lon...@ya...> - 2006-04-03 18:37:38
|
I do have that version of the project.xml. But the resources directory is empty. I did update this evening (again)
Lonneke
Richard Swart <rj...@gm...> wrote: Lonneke,
This is strange as Age did not report any errors.
Do you have version 99 of the project.xml? It should contain:
<dependency>
<groupId>mx4j</groupId>
<artifactId>mx4j</artifactId>
<version>3.0.1</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>mx4j</groupId>
<artifactId>mx4j-remote</artifactId>
<version>3.0.1</version>
<type>jar</type>
</dependency>
for the jmx classes. Also for the unit tests it includes the missing xml file.
Regards,
Richard
---------- Forwarded message ----------
From: Lonneke Dikmans (JIRA) <sen...@os...>
Date: Apr 2, 2006 10:57 PM
Subject: [JIRA] Created: (SENSOR-11) JMX Test fails in maven and in eclipse
To: rj...@gm...
JMX Test fails in maven and in eclipse
--------------------------------------
Key: SENSOR-11
URL: http://os.inspiring.nl/jira/browse/SENSOR-11
Project: Sensor
Type: Bug
Components: Sensor Support
Versions: 0.1
Reporter: Lonneke Dikmans
Assigned to: Richard Swart
Priority: Blocker
Fix For: 0.1
JMX test fails when running maven (or in eclipse) with the following stack:
IOException parsing XML document from class path resource [net/sf/sensor/support/spring/sensor-jmx-test.xml]; nested exception is java.io.FileNotFoundException: class path resource [net/sf/sensor/support/spring/sensor- jmx-test.xml] cannot be opened because it does not exist
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [net/sf/sensor/support/spring/sensor-jmx-test.xml ]; nested exception is java.io.FileNotFoundException: class path resource [net/sf/sensor/support/spring/sensor-jmx-test.xml] cannot be opened because it does not exist java.io.FileNotFoundException: class path resource [net/sf/sensor/support/spring/sensor-jmx-test.xml] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:137) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (XmlBeanDefinitionReader.java:167) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions (AbstractBeanDefinitionReader.java:126) at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions (AbstractXmlApplicationContext.java:113) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:81) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory (AbstractRefreshableApplicationContext.java:89) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:269) at org.springframework.context.support.ClassPathXmlApplicationContext .<init>(ClassPathXmlApplicationContext.java:87) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72) at net.sf.sensor.support.spring.SensorJMXTest.setUp (SensorJMXTest.java:48)
When I run the test in eclipse, it fails with the following stacktrace:
org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'sensor.jmxExporter ' defined in class path resource [net/sf/sensor/support/spring/sensor-jmx.xml]: Class that bean class [org.springframework.jmx.export.MBeanExporter] depends on not found; nested exception is java.lang.NoClassDefFoundError : javax/management/JMException
java.lang.NoClassDefFoundError: javax/management/JMException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at org.springframework.util.ClassUtils.forName (ClassUtils.java:108)
at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:65)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement (DefaultXmlBeanDefinitionParser.java:426)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:392)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitions (DefaultXmlBeanDefinitionParser.java:307)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:191)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions (XmlBeanDefinitionReader.java:295)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:223)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (XmlBeanDefinitionReader.java:173)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions (AbstractBeanDefinitionReader.java:126)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions (AbstractXmlApplicationContext.java:113)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:81)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory (AbstractRefreshableApplicationContext.java:89)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:269)
at org.springframework.context.support.ClassPathXmlApplicationContext .<init>(ClassPathXmlApplicationContext.java:87)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72)
at net.sf.sensor.support.spring.SensorJMXTest.setUp (SensorJMXTest.java:48)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java :124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run (TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://os.inspiring.nl/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. |