camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin.Zhang" <zhangyongji...@yahoo.com>
Subject Re: tutorial-osgi-camel-part2 -- reportincident.service test failed
Date Wed, 25 Nov 2009 16:55:10 GMT

ok. thx. i will wait for your fix. i guess that we just miss a pkg
dependency. -kevin



cmoulliard wrote:
> 
> Use the option -Dtest=false when executing the mvn clean install
> command. I forget to review the test case. This will be done tomorrow
> morning.
> 
> Regards,
> 
> Charles Moulliard
> Senior Enterprise Architect
> Apache Camel Committer
> 
> *****************************
> blog : http://cmoulliard.blogspot.com
> twitter : http://twitter.com/cmoulliard
> Linkedlin : http://www.linkedin.com/in/charlesmoulliard
> 
> Apache Camel Group :
> http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm
> 
> 
> 
> On Wed, Nov 25, 2009 at 5:44 PM, Kevin.Zhang <zhangyongjiang@yahoo.com>
> wrote:
>>
>> Hi Charles,
>>
>> The tests failed when trying to build the reportincident.service. Here is
>> the log in the target\surefire-reports. Please help.
>>
>> Thanks a lot,
>> Kevin
>>
>>
>> org.apache.camel.example.reportincident.AddIncidentTest.txt
>> C:\temp\tutorial-osgi-camel-part2\reportincident.service\target\surefire-reports>type
>> org.apache.camel.example.reportincident.AddIncidentTest.txt
>> -------------------------------------------------------------------------------
>> Test set: org.apache.camel.example.reportincident.AddIncidentTest
>> -------------------------------------------------------------------------------
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.391 sec
>> <<< FAILURE!
>> testSaveRecord(org.apache.camel.example.reportincident.AddIncidentTest)
>> Time elapsed: 0.375 sec  <<< ERROR!
>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
>> Configuration problem: Failed to import bean definitions from relative
>> location [META-
>> INF/spring/spring-service-beans-dao.xml]
>> Offending resource: class path resource
>> [test-reportincident-service.xml];
>> nested exception is
>> org.springframework.beans.factory.parsing.BeanDefinitionParsingEx
>> ception: Configuration problem: Unexpected failure during bean definition
>> parsing
>> Offending resource: class path resource
>> [META-INF/spring/spring-service-beans-dao.xml]
>> Bean 'incidentServiceTarget'; nested exception is
>> org.springframework.beans.FatalBeanException: Invalid NamespaceHandler
>> class
>> [org.springframework.osgi.config.
>> OsgiNamespaceHandler] for namespace
>> [http://www.springframework.org/schema/osgi]: problem with handler class
>> file or dependent class; nested exception is java.l
>> ang.NoClassDefFoundError: Could not initialize class
>> org.springframework.osgi.config.OsgiNamespaceHandler$1
>>        at
>> org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
>>        at
>> org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
>>        at
>> org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:201)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:147)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
>>        at
>> org.springframework.test.AbstractSingleSpringContextTests.createApplicationContext(AbstractSingleSpringContextTests.java:212)
>>        at
>> org.springframework.test.AbstractSingleSpringContextTests.loadContextLocations(AbstractSingleSpringContextTests.java:189)
>>        at
>> org.springframework.test.AbstractSingleSpringContextTests.loadContext(AbstractSingleSpringContextTests.java:169)
>>        at
>> org.springframework.test.AbstractSpringContextTests.getContext(AbstractSpringContextTests.java:140)
>>        at
>> org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextTests.java:98)
>>        at junit.framework.TestCase.runBare(TestCase.java:132)
>>        at
>> org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:76)
>>        at junit.framework.TestResult$1.protect(TestResult.java:110)
>>        at junit.framework.TestResult.runProtected(TestResult.java:128)
>>        at junit.framework.TestResult.run(TestResult.java:113)
>>        at junit.framework.TestCase.run(TestCase.java:124)
>>        at junit.framework.TestSuite.runTest(TestSuite.java:232)
>>        at junit.framework.TestSuite.run(TestSuite.java:227)
>>        at
>> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
>>        at
>> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>>        at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
>>        at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>>        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
>>        at
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
>> Caused by:
>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
>> Configuration problem: Unexpected failure during bean definition parsing
>> Offending resource: class path resource
>> [META-INF/spring/spring-service-beans-dao.xml]
>> Bean 'incidentServiceTarget'; nested exception is
>> org.springframework.beans.FatalBeanException: Invalid NamespaceHandler
>> class
>> [org.springframework.osgi.config.
>> OsgiNamespaceHandler] for namespace
>> [http://www.springframework.org/schema/osgi]: problem with handler class
>> file or dependent class; nested exception is java.l
>> ang.NoClassDefFoundError: Could not initialize class
>> org.springframework.osgi.config.OsgiNamespaceHandler$1
>>        at
>> org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
>>        at
>> org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:288)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:490)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:389)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:358)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.processBeanDefinition(DefaultBeanDefinitionDocumentReader.java:239)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:153)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:190)
>>        ... 35 more
>> Caused by: org.springframework.beans.FatalBeanException: Invalid
>> NamespaceHandler class
>> [org.springframework.osgi.config.OsgiNamespaceHandler] for namespace [ht
>> tp://www.springframework.org/schema/osgi]: problem with handler class
>> file
>> or dependent class; nested exception is java.lang.NoClassDefFoundError:
>> Could not ini
>> tialize class org.springframework.osgi.config.OsgiNamespaceHandler$1
>>        at
>> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:138)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1292)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseNestedCustomElement(BeanDefinitionParserDelegate.java:1354)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertySubElement(BeanDefinitionParserDelegate.java:939)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertySubElement(BeanDefinitionParserDelegate.java:927)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyValue(BeanDefinitionParserDelegate.java:917)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyElement(BeanDefinitionParserDelegate.java:815)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyElements(BeanDefinitionParserDelegate.java:691)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:475)
>>        ... 46 more
>> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
>> org.springframework.osgi.config.OsgiNamespaceHandler$1
>>        at
>> org.springframework.osgi.config.OsgiNamespaceHandler.init(OsgiNamespaceHandler.java:40)
>>        at
>> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:129)
>>        ... 54 more
>>
>>
>> org.apache.camel.example.reportincident.GetIncidentByRefTest.txt
>> C:\temp\tutorial-osgi-camel-part2\reportincident.service\target\surefire-reports>type
>> org.apache.camel.example.reportincident.GetIncidentByRefTest.txt
>> -------------------------------------------------------------------------------
>> Test set: org.apache.camel.example.reportincident.GetIncidentByRefTest
>> -------------------------------------------------------------------------------
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.141 sec
>> <<< FAILURE!
>> testGetIncidentByRef(org.apache.camel.example.reportincident.GetIncidentByRefTest)
>> Time elapsed: 0.125 sec  <<< ERROR!
>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
>> Configuration problem: Failed to import bean definitions from relative
>> location [META-
>> INF/spring/spring-service-beans-dao.xml]
>> Offending resource: class path resource
>> [test-reportincident-service.xml];
>> nested exception is
>> org.springframework.beans.factory.parsing.BeanDefinitionParsingEx
>> ception: Configuration problem: Unexpected failure during bean definition
>> parsing
>> Offending resource: class path resource
>> [META-INF/spring/spring-service-beans-dao.xml]
>> Bean 'incidentServiceTarget'; nested exception is
>> org.springframework.beans.FatalBeanException: Invalid NamespaceHandler
>> class
>> [org.springframework.osgi.config.
>> OsgiNamespaceHandler] for namespace
>> [http://www.springframework.org/schema/osgi]: problem with handler class
>> file or dependent class; nested exception is java.l
>> ang.NoClassDefFoundError: Could not initialize class
>> org.springframework.osgi.config.OsgiNamespaceHandler$1
>>        at
>> org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
>>        at
>> org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
>>        at
>> org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:201)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:147)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
>>        at
>> org.springframework.test.AbstractSingleSpringContextTests.createApplicationContext(AbstractSingleSpringContextTests.java:212)
>>        at
>> org.springframework.test.AbstractSingleSpringContextTests.loadContextLocations(AbstractSingleSpringContextTests.java:189)
>>        at
>> org.springframework.test.AbstractSingleSpringContextTests.loadContext(AbstractSingleSpringContextTests.java:169)
>>        at
>> org.springframework.test.AbstractSpringContextTests.getContext(AbstractSpringContextTests.java:140)
>>        at
>> org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextTests.java:98)
>>        at junit.framework.TestCase.runBare(TestCase.java:132)
>>        at
>> org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:76)
>>        at junit.framework.TestResult$1.protect(TestResult.java:110)
>>        at junit.framework.TestResult.runProtected(TestResult.java:128)
>>        at junit.framework.TestResult.run(TestResult.java:113)
>>        at junit.framework.TestCase.run(TestCase.java:124)
>>        at junit.framework.TestSuite.runTest(TestSuite.java:232)
>>        at junit.framework.TestSuite.run(TestSuite.java:227)
>>        at
>> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
>>        at
>> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>>        at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
>>        at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>>        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
>>        at
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
>> Caused by:
>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
>> Configuration problem: Unexpected failure during bean definition parsing
>> Offending resource: class path resource
>> [META-INF/spring/spring-service-beans-dao.xml]
>> Bean 'incidentServiceTarget'; nested exception is
>> org.springframework.beans.FatalBeanException: Invalid NamespaceHandler
>> class
>> [org.springframework.osgi.config.
>> OsgiNamespaceHandler] for namespace
>> [http://www.springframework.org/schema/osgi]: problem with handler class
>> file or dependent class; nested exception is java.l
>> ang.NoClassDefFoundError: Could not initialize class
>> org.springframework.osgi.config.OsgiNamespaceHandler$1
>>        at
>> org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
>>        at
>> org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:288)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:490)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:389)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:358)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.processBeanDefinition(DefaultBeanDefinitionDocumentReader.java:239)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:153)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:190)
>>        ... 35 more
>> Caused by: org.springframework.beans.FatalBeanException: Invalid
>> NamespaceHandler class
>> [org.springframework.osgi.config.OsgiNamespaceHandler] for namespace [ht
>> tp://www.springframework.org/schema/osgi]: problem with handler class
>> file
>> or dependent class; nested exception is java.lang.NoClassDefFoundError:
>> Could not ini
>> tialize class org.springframework.osgi.config.OsgiNamespaceHandler$1
>>        at
>> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:138)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1292)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseNestedCustomElement(BeanDefinitionParserDelegate.java:1354)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertySubElement(BeanDefinitionParserDelegate.java:939)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertySubElement(BeanDefinitionParserDelegate.java:927)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyValue(BeanDefinitionParserDelegate.java:917)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyElement(BeanDefinitionParserDelegate.java:815)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyElements(BeanDefinitionParserDelegate.java:691)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:475)
>>        ... 46 more
>> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
>> org.springframework.osgi.config.OsgiNamespaceHandler$1
>>        at
>> org.springframework.osgi.config.OsgiNamespaceHandler.init(OsgiNamespaceHandler.java:40)
>>        at
>> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:129)
>>        ... 54 more
>>
>>
>> org.apache.camel.example.reportincident.GetIncidentsTest.txt
>> C:\temp\tutorial-osgi-camel-part2\reportincident.service\target\surefire-reports>type
>> org.apache.camel.example.reportincident.GetIncidentsTest.txt
>> -------------------------------------------------------------------------------
>> Test set: org.apache.camel.example.reportincident.GetIncidentsTest
>> -------------------------------------------------------------------------------
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.813 sec
>> <<< FAILURE!
>> testGetIncidents(org.apache.camel.example.reportincident.GetIncidentsTest)
>> Time elapsed: 1.672 sec  <<< ERROR!
>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
>> Configuration problem: Failed to import bean definitions from relative
>> location [META-
>> INF/spring/spring-service-beans-dao.xml]
>> Offending resource: class path resource
>> [test-reportincident-service.xml];
>> nested exception is
>> org.springframework.beans.factory.parsing.BeanDefinitionParsingEx
>> ception: Configuration problem: Unexpected failure during bean definition
>> parsing
>> Offending resource: class path resource
>> [META-INF/spring/spring-service-beans-dao.xml]
>> Bean 'incidentServiceTarget'; nested exception is
>> org.springframework.beans.FatalBeanException: Invalid NamespaceHandler
>> class
>> [org.springframework.osgi.config.
>> OsgiNamespaceHandler] for namespace
>> [http://www.springframework.org/schema/osgi]: problem with handler class
>> file or dependent class; nested exception is java.l
>> ang.NoClassDefFoundError: org/osgi/framework/ServiceReference
>>        at
>> org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
>>        at
>> org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
>>        at
>> org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:201)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:147)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
>>        at
>> org.springframework.test.AbstractSingleSpringContextTests.createApplicationContext(AbstractSingleSpringContextTests.java:212)
>>        at
>> org.springframework.test.AbstractSingleSpringContextTests.loadContextLocations(AbstractSingleSpringContextTests.java:189)
>>        at
>> org.springframework.test.AbstractSingleSpringContextTests.loadContext(AbstractSingleSpringContextTests.java:169)
>>        at
>> org.springframework.test.AbstractSpringContextTests.getContext(AbstractSpringContextTests.java:140)
>>        at
>> org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextTests.java:98)
>>        at junit.framework.TestCase.runBare(TestCase.java:132)
>>        at
>> org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:76)
>>        at junit.framework.TestResult$1.protect(TestResult.java:110)
>>        at junit.framework.TestResult.runProtected(TestResult.java:128)
>>        at junit.framework.TestResult.run(TestResult.java:113)
>>        at junit.framework.TestCase.run(TestCase.java:124)
>>        at junit.framework.TestSuite.runTest(TestSuite.java:232)
>>        at junit.framework.TestSuite.run(TestSuite.java:227)
>>        at
>> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
>>        at
>> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>>        at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
>>        at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>>        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
>>        at
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
>> Caused by:
>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
>> Configuration problem: Unexpected failure during bean definition parsing
>> Offending resource: class path resource
>> [META-INF/spring/spring-service-beans-dao.xml]
>> Bean 'incidentServiceTarget'; nested exception is
>> org.springframework.beans.FatalBeanException: Invalid NamespaceHandler
>> class
>> [org.springframework.osgi.config.
>> OsgiNamespaceHandler] for namespace
>> [http://www.springframework.org/schema/osgi]: problem with handler class
>> file or dependent class; nested exception is java.l
>> ang.NoClassDefFoundError: org/osgi/framework/ServiceReference
>>        at
>> org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
>>        at
>> org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:288)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:490)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:389)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:358)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.processBeanDefinition(DefaultBeanDefinitionDocumentReader.java:239)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:153)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
>>        at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
>>        at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:190)
>>        ... 35 more
>> Caused by: org.springframework.beans.FatalBeanException: Invalid
>> NamespaceHandler class
>> [org.springframework.osgi.config.OsgiNamespaceHandler] for namespace [ht
>> tp://www.springframework.org/schema/osgi]: problem with handler class
>> file
>> or dependent class; nested exception is java.lang.NoClassDefFoundError:
>> org/osgi/fram
>> ework/ServiceReference
>>        at
>> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:138)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1292)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseNestedCustomElement(BeanDefinitionParserDelegate.java:1354)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertySubElement(BeanDefinitionParserDelegate.java:939)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertySubElement(BeanDefinitionParserDelegate.java:927)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyValue(BeanDefinitionParserDelegate.java:917)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyElement(BeanDefinitionParserDelegate.java:815)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parsePropertyElements(BeanDefinitionParserDelegate.java:691)
>>        at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:475)
>>        ... 46 more
>> Caused by: java.lang.NoClassDefFoundError:
>> org/osgi/framework/ServiceReference
>>        at
>> org.springframework.osgi.config.CollectionBeanDefinitionParser.<clinit>(CollectionBeanDefinitionParser.java:78)
>>        at
>> org.springframework.osgi.config.OsgiNamespaceHandler.init(OsgiNamespaceHandler.java:40)
>>        at
>> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:129)
>>        ... 54 more
>> Caused by: java.lang.ClassNotFoundException:
>> org.osgi.framework.ServiceReference
>>        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>        at java.security.AccessController.doPrivileged(Native Method)
>>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>        ... 57 more
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/tutorial-osgi-camel-part2----reportincident.service-test-failed-tp26516097p26516097.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> -----
> Charles Moulliard
> SOA Architect
> 
> My Blog : http://cmoulliard.blogspot.com/  
> 

-- 
View this message in context: http://old.nabble.com/tutorial-osgi-camel-part2----reportincident.service-test-failed-tp26516097p26516273.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message