|
View:
New views
18 Messages
—
Rating Filter:
Alert me
|
|
|
Have anybody here tried the tutorial-osgi-camel-part2?I followed the tutorial web page http://camel.apache.org/tutorial-osgi-camel-part2.html, downloaded tutorial-osgi-camel-part2 and tried to build it but no luck.
C:\grid-console\reportincident.service>mvn install [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building reportincident.service [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [pax:compile] [INFO] Compiling 2 source files to C:\grid-console\reportincident.service\target\classes [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [pax:testCompile] [INFO] Compiling 3 source files to C:\grid-console\reportincident.service\target\test-classes [INFO] [surefire:test] [INFO] Surefire report directory: C:\grid-console\reportincident.service\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.camel.example.reportincident.GetIncidentsTest Jul 3, 2009 12:14:57 PM org.springframework.test.AbstractSingleSpringContextTests loadContextLocations INFO: Loading context for locations: test-reportincident-service.xml Jul 3, 2009 12:14:57 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [test-reportincident-service.xml] Jul 3, 2009 12:14:57 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/spring/spring-datasource-beans.xml] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.937 sec <<< FAILURE! Running org.apache.camel.example.reportincident.AddIncidentTest Jul 3, 2009 12:14:58 PM org.springframework.test.AbstractSingleSpringContextTests loadContextLocations INFO: Loading context for locations: test-reportincident-service.xml Jul 3, 2009 12:14:58 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [test-reportincident-service.xml] Jul 3, 2009 12:14:58 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/spring/spring-datasource-beans.xml] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.657 sec <<< FAILURE! Running org.apache.camel.example.reportincident.GetIncidentByRefTest Jul 3, 2009 12:14:58 PM org.springframework.test.AbstractSingleSpringContextTests loadContextLocations INFO: Loading context for locations: test-reportincident-service.xml Jul 3, 2009 12:14:58 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [test-reportincident-service.xml] Jul 3, 2009 12:14:59 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/spring/spring-datasource-beans.xml] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.782 sec <<< FAILURE! Results : Tests in error: testGetIncidents(org.apache.camel.example.reportincident.GetIncidentsTest) testSaveRecord(org.apache.camel.example.reportincident.AddIncidentTest) testGetIncidentByRef(org.apache.camel.example.reportincident.GetIncidentByRefTest) Tests run: 3, Failures: 0, Errors: 3, Skipped: 0 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] There are test failures. The test report file says, C:\grid-console\reportincident.service>type target\surefire-reports\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.063 sec <<< FAILURE! testGetIncidents(org.apache.camel.example.reportincident.GetIncidentsTest) Time elapsed: 1.015 sec <<< ERROR! org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath: META-INF/spring/spring-datasource-beans.xml] Offending resource: class path resource [test-reportincident-service.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingEx ception: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/osgi-compendium] Offending resource: class path resource [META-INF/spring/spring-datasource-beans.xml] 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:182) 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: Unable to locate Spring NamespaceHandler for XML sch ema namespace [http://www.springframework.org/schema/osgi-compendium] Offending resource: class path resource [META-INF/spring/spring-datasource-beans.xml] 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:80) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:281) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1294) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135) 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.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:174) ... 35 more Thanks in advance -Kevin |
|
|
Re: Have anybody here tried the tutorial-osgi-camel-part2?Hi Kevin,
It seems that you have a spring error : org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath: META-INF/spring/spring-datasource-beans.xml] Offending resource: class path resource [test-reportincident-service.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingEx ception: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/osgi-compendium] Can you tell me which version of the OSGI server you are using for this test ? Regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com On Fri, Jul 3, 2009 at 9:21 PM, Kevin.Zhang <zhangyongjiang@...>wrote: > > I followed the tutorial web page > http://camel.apache.org/tutorial-osgi-camel-part2.html, downloaded > tutorial-osgi-camel-part2 and tried to build it but no luck. > > C:\grid-console\reportincident.service>mvn install > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > [INFO] Building reportincident.service > [INFO] task-segment: [install] > [INFO] > ------------------------------------------------------------------------ > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [pax:compile] > [INFO] Compiling 2 source files to > C:\grid-console\reportincident.service\target\classes > [INFO] [resources:testResources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [pax:testCompile] > [INFO] Compiling 3 source files to > C:\grid-console\reportincident.service\target\test-classes > [INFO] [surefire:test] > [INFO] Surefire report directory: > C:\grid-console\reportincident.service\target\surefire-reports > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running org.apache.camel.example.reportincident.GetIncidentsTest > Jul 3, 2009 12:14:57 PM > org.springframework.test.AbstractSingleSpringContextTests > loadContextLocations > INFO: Loading context for locations: test-reportincident-service.xml > Jul 3, 2009 12:14:57 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [test-reportincident-service.xml] > Jul 3, 2009 12:14:57 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/spring/spring-datasource-beans.xml] > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.937 sec > <<< FAILURE! > Running org.apache.camel.example.reportincident.AddIncidentTest > Jul 3, 2009 12:14:58 PM > org.springframework.test.AbstractSingleSpringContextTests > loadContextLocations > INFO: Loading context for locations: test-reportincident-service.xml > Jul 3, 2009 12:14:58 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [test-reportincident-service.xml] > Jul 3, 2009 12:14:58 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/spring/spring-datasource-beans.xml] > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.657 sec > <<< FAILURE! > Running org.apache.camel.example.reportincident.GetIncidentByRefTest > Jul 3, 2009 12:14:58 PM > org.springframework.test.AbstractSingleSpringContextTests > loadContextLocations > INFO: Loading context for locations: test-reportincident-service.xml > Jul 3, 2009 12:14:58 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [test-reportincident-service.xml] > Jul 3, 2009 12:14:59 PM > org.springframework.beans.factory.xml.XmlBeanDefinitionReader > loadBeanDefinitions > INFO: Loading XML bean definitions from class path resource > [META-INF/spring/spring-datasource-beans.xml] > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.782 sec > <<< FAILURE! > > Results : > > Tests in error: > testGetIncidents(org.apache.camel.example.reportincident.GetIncidentsTest) > testSaveRecord(org.apache.camel.example.reportincident.AddIncidentTest) > > > testGetIncidentByRef(org.apache.camel.example.reportincident.GetIncidentByRefTest) > > Tests run: 3, Failures: 0, Errors: 3, Skipped: 0 > > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] There are test failures. > > > > > > > The test report file says, > > C:\grid-console\reportincident.service>type > > target\surefire-reports\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.063 sec > <<< FAILURE! > testGetIncidents(org.apache.camel.example.reportincident.GetIncidentsTest) > Time elapsed: 1.015 sec <<< ERROR! > org.springframework.beans.factory.parsing.BeanDefinitionParsingException: > Configuration problem: Failed to import bean definitions from URL location > [classpath: > META-INF/spring/spring-datasource-beans.xml] > Offending resource: class path resource [test-reportincident-service.xml]; > nested exception is > org.springframework.beans.factory.parsing.BeanDefinitionParsingEx > ception: Configuration problem: Unable to locate Spring NamespaceHandler > for > XML schema namespace [ > http://www.springframework.org/schema/osgi-compendium] > Offending resource: class path resource > [META-INF/spring/spring-datasource-beans.xml] > > 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:182) > 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: Unable to locate Spring NamespaceHandler for XML sch > ema namespace [http://www.springframework.org/schema/osgi-compendium] > Offending resource: class path resource > [META-INF/spring/spring-datasource-beans.xml] > > 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:80) > at > > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:281) > at > > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1294) > at > > org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287) > at > > org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135) > 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.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:174) > ... 35 more > > > Thanks in advance > > -Kevin > -- > View this message in context: > http://www.nabble.com/Have-anybody-here-tried-the-tutorial-osgi-camel-part2--tp24327596p24327596.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > |
|
|
Re: Have anybody here tried the tutorial-osgi-camel-part2?Hi Charles,
I use apache-servicemix-kernel-1.1.0 as osgi container. I checked the project file I downloaded from the web page, only reportincident.persistence contains file spring-datasource-beans.xml. Module reportincident.service does not have spring-datasource-beans.xml. Thanks, Kevin
|
|
|
Re: Have anybody here tried the tutorial-osgi-camel-part2?Hi,
The file that you mention is part of the project reportincident.persistence : reportincident.persistence\META-INF\spring\spring-datasource-beans.xml Can you show me the list of bundles installed on your servicemix server please ? regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com On Mon, Jul 6, 2009 at 4:26 PM, Kevin.Zhang <zhangyongjiang@...>wrote: > > Hi Charles, > > I use apache-servicemix-kernel-1.1.0 as osgi container. > > I checked the project file I downloaded from the web page, only > reportincident.persistence contains file spring-datasource-beans.xml. > Module > reportincident.service does not have spring-datasource-beans.xml. > > Thanks, > Kevin > > > > cmoulliard wrote: > > > > Hi Kevin, > > > > It seems that you have a spring error : > > > > org.springframework.beans.factory.parsing.BeanDefinitionParsingException: > > Configuration problem: Failed to import bean definitions from URL > location > > [classpath: > > META-INF/spring/spring-datasource-beans.xml] > > Offending resource: class path resource > [test-reportincident-service.xml]; > > nested exception is > > org.springframework.beans.factory.parsing.BeanDefinitionParsingEx > > ception: Configuration problem: Unable to locate Spring NamespaceHandler > > for > > XML schema namespace > > [http://www.springframework.org/schema/osgi-compendium] > > > > Can you tell me which version of the OSGI server you are using for this > > test > > ? > > > > Regards, > > > > Charles Moulliard > > Senior Enterprise Architect > > Apache Camel Committer > > > > ***************************** > > blog : http://cmoulliard.blogspot.com > > > > > > > > -- > View this message in context: > http://www.nabble.com/Have-anybody-here-tried-the-tutorial-osgi-camel-part2--tp24327596p24356443.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > |
|
|
Re: Have anybody here tried the tutorial-osgi-camel-part2?Hi Charles,
Below please find the list of bundles installed: smx@root:/> osgi/list START LEVEL 100 ID State Spring Level Name [ 0] [Active ] [ ] [ 0] System Bundle (1.5.0.r752991) [ 1] [Active ] [ ] [ 10] Apache Felix Prefrences Service (1.0.2) [ 2] [Active ] [ ] [ 10] Apache ServiceMix Bundles: jaxp-ri-1.4.2 (1.4.2.2) [ 3] [Active ] [ ] [ 10] geronimo-annotation_1.0_spec (1.1.1) [ 4] [Active ] [ ] [ 10] Apache ServiceMix Specs :: JAXP API 1.4 (1.3.0) [ 5] [Active ] [ ] [ 10] OSGi R4 Compendium Bundle (4.1.0) [ 6] [Active ] [ ] [ 10] Apache Felix Configuration Admin Service (1.0.4) [ 7] [Active ] [ ] [ 10] geronimo-servlet_2.5_spec (1.1.2) [ 8] [Active ] [Started] [ 40] Apache ServiceMix Kernel :: GShell Core (1.1.0) [ 9] [Active ] [ ] [ 8] OPS4J Pax Logging - API (1.3.0) [ 10] [Active ] [ ] [ 8] OPS4J Pax Logging - Service (1.3.0) [ 11] [Active ] [ ] [ 5] OPS4J Pax Url - wrap: (0.3.3) [ 12] [Active ] [ ] [ 5] OPS4J Pax Url - mvn: (0.3.3) [ 13] [Active ] [ ] [ 30] spring-osgi-io (1.2.0.m2) [ 14] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: Spring Deployer (1.1.0) [ 15] [Active ] [ ] [ 30] Apache ServiceMix Bundles: mina-1.1.7 (1.1.7.1) [ 16] [Active ] [ ] [ 30] Spring Context (2.5.6) [ 17] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: JAAS Modules (1.1.0) [ 18] [Active ] [ ] [ 30] Apache ServiceMix Bundles: commons-jexl-1.1 (1.1.0.1) [ 19] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell Features (1.1.0) [ 20] [Active ] [ ] [ 30] Apache ServiceMix Bundles: commons-httpclient-3.1 (3.1.0.1) [ 21] [Active ] [ ] [ 30] Spring Core (2.5.6) [ 22] [Active ] [ ] [ 30] jmx-impl (1.0.0.r6125-patched) [ 23] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell ConfigAdmin Commands (1.1.0) [ 24] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: JAAS Config (1.1.0) [ 25] [Active ] [ ] [ 30] jmx (1.0.0.r6125-patched) [ 26] [Active ] [ ] [ 30] Apache ServiceMix Bundles: commons-vfs-1.0 (1.0.0.1) [ 27] [Active ] [ ] [ 30] Spring Beans (2.5.6) [ 28] [Active ] [ ] [ 30] Unnamed - com.google.code.sshd:sshd:bundle:0.1 (0.1) [ 29] [Active ] [ ] [ 30] Apache ServiceMix Bundles: commons-codec-1.2 (1.2.0.1) [ 30] [Active ] [ ] [ 30] spring-osgi-extender (1.2.0.m2) [ 31] [Active ] [ ] [ 30] Apache ServiceMix Bundles: cglib-2.1_3 (2.1.0.3_1) [ 32] [Active ] [ ] [ 30] Apache ServiceMix Bundles: jline-0.9.94 (0.9.94.1) [ 33] [Active ] [ ] [ 30] Apache ServiceMix Bundles: aopalliance-1.0 (1.0.0.1) [ 34] [Active ] [ ] [ 30] Spring AOP (2.5.6) [ 35] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell PackageAdmin Commands (1.1.0) [ 36] [Active ] [ ] [ 30] Apache ServiceMix Bundles: oro-2.0.8 (2.0.8.1) [ 37] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell Log Commands (1.1.0) [ 38] [Active ] [ ] [ 30] spring-osgi-core (1.2.0.m2) [ 39] [Active ] [Started] [ 30] Apache ServiceMix Kernel :: GShell OSGi Commands (1.1.0) [ 40] [Active ] [Started] [ 30] Apache ServiceMix Kernel :: GShell Admin (1.1.0) [ 41] [Active ] [Started] [ 30] Apache ServiceMix Kernel :: Management (1.1.0) [ 42] [Active ] [ ] [ 15] Apache ServiceMix Kernel :: File Monitor (1.1.0) [ 43] [Active ] [ ] [ 60] Apache ServiceMix Bundles: jaxb-impl-2.1.6 (2.1.6.1) [ 44] [Active ] [ ] [ 60] Apache ServiceMix Specs :: ACTIVATION API 1.4 (1.2.0) [ 45] [Active ] [ ] [ 60] Apache ServiceMix Specs :: JAXB API 2.1 (1.2.0) [ 46] [Active ] [ ] [ 60] Commons Collections (3.2.1) [ 47] [Active ] [ ] [ 60] Commons Lang (2.4) [ 48] [Active ] [ ] [ 60] Apache Commons Pool Bundle (1.4) [ 49] [Active ] [ ] [ 60] Apache ServiceMix Bundles: asm-2.2.3 (2.2.3.1) [ 50] [Active ] [ ] [ 60] geronimo-jta_1.1_spec (1.1.1) [ 51] [Active ] [ ] [ 60] geronimo-j2ee-connector_1.5_spec (2.0.0) [ 52] [Active ] [ ] [ 60] Apache ServiceMix Bundles: howl-1.0.1-1 (1.0.1.1_1) [ 53] [Active ] [ ] [ 60] Geronimo TxManager :: Transaction (2.2.0.r634076) [ 54] [Active ] [ ] [ 60] Spring Transaction (2.5.6) [ 55] [Active ] [Started] [ 60] Apache ServiceMix Transaction (1.0.0) [ 56] [Active ] [ ] [ 60] Geronimo TxManager :: Connector (2.2.0.r634076) [ 57] [Active ] [ ] [ 60] geronimo-jms_1.1_spec (1.1.1) [ 58] [Active ] [ ] [ 60] Apache ServiceMix Bundles: jencks-2.1 (2.1.0.1) [ 59] [Active ] [ ] [ 60] geronimo-j2ee-management_1.1_spec (1.0.1) [ 60] [Active ] [ ] [ 60] xbean-spring (3.4.3) [ 61] [Active ] [ ] [ 60] activemq-core (5.2.0) [ 62] [Active ] [ ] [ 60] activemq-ra (5.2.0) [ 63] [Active ] [ ] [ 60] activemq-console (5.2.0) [ 64] [Active ] [ ] [ 60] activemq-pool (5.2.0) [ 65] [Active ] [Started] [ 60] Apache ServiceMix Features :: ActiveMQ Commands (4.0.0) [ 66] [Active ] [ ] [ 60] Apache ServiceMix Bundles: jetty-6.1.14 (6.1.14.1) [ 67] [Active ] [ ] [ 60] OPS4J Pax Web - Web Container (0.6.0) [ 68] [Active ] [ ] [ 60] OPS4J Pax Web - Jsp Support (0.6.0) [ 69] [Active ] [ ] [ 60] OPS4J Pax Web Extender - WAR (0.5.1) [ 70] [Active ] [ ] [ 60] OPS4J Pax Web Extender - Whiteboard (0.5.1) [ 71] [Active ] [ ] [ 60] OPS4J Pax Url - war:, war-i: (0.4.0) [ 72] [Active ] [Started] [ 60] Apache ServiceMix WAR Deployer (4.0.0) [ 73] [Resolved ] [ ] [ 60] Spring Web (2.5.6) [ 74] [Active ] [ ] [ 60] Wicket (1.3.5) [ 75] [Active ] [ ] [ 60] Wicket IoC common code (1.3.5) [ 76] [Active ] [ ] [ 60] Wicket Spring Integration (1.3.5) [ 77] [Active ] [ ] [ 60] Wicket Spring Integration through Annotations (1.3.5) [ 78] [Active ] [ ] [ 60] Wicket Extensions (1.3.5) [ 79] [Active ] [ ] [ 60] Apache ServiceMix Bundles: FastInfoset-1.2.2 (1.2.2.1) [ 80] [Active ] [ ] [ 60] Apache ServiceMix Bundles: xmlsec-1.3.0 (1.3.0.1) [ 81] [Active ] [ ] [ 60] Apache ServiceMix Bundles: wss4j-1.5.4 (1.5.4.1) [ 82] [Active ] [ ] [ 60] Apache ServiceMix Bundles: xmlbeans-2.4.0 (2.4.0.1) [ 83] [Active ] [ ] [ 60] Apache ServiceMix Bundles: xmlresolver-1.2 (1.2.0.1) [ 84] [Active ] [ ] [ 60] Apache ServiceMix Bundles: xmlschema-1.4.2 (1.4.2.1) [ 85] [Active ] [ ] [ 60] Apache ServiceMix Bundles: ant-1.7.0 (1.7.0.1) [ 86] [Active ] [ ] [ 60] Apache ServiceMix Bundles: jdom-1.1 (1.1.0.1) [ 87] [Active ] [ ] [ 60] Apache ServiceMix Bundles: werken-xpath-0.9.4 (0.9.4.1) [ 88] [Active ] [ ] [ 60] Apache ServiceMix Bundles: neethi-2.0.4 (2.0.4.1) [ 89] [Active ] [ ] [ 60] Apache ServiceMix Bundles: abdera-0.4.0-incubating (0.4.0.incubating_1) [ 90] [Active ] [ ] [ 60] Apache ServiceMix Bundles: junit-4.4 (4.4.0.1) [ 91] [Active ] [ ] [ 60] Apache ServiceMix Bundles: antlr-3.0.1 (3.0.1.1) [ 92] [Active ] [ ] [ 60] Apache ServiceMix Bundles: commons-io-1.3.2 (1.3.2.1) [ 93] [Active ] [ ] [ 60] Apache ServiceMix Specs :: JAVAMAIL API 1.4 (1.2.0) [ 94] [Active ] [ ] [ 60] Apache ServiceMix Specs :: JAXWS API 2.1 (1.2.0) [ 95] [Active ] [ ] [ 60] Apache ServiceMix Specs :: SAAJ API 1.3 (1.2.0) [ 96] [Active ] [ ] [ 60] Apache ServiceMix Bundles: wsdl4j-1.6.1 (1.6.1.1) [ 97] [Active ] [ ] [ 60] geronimo-ws-metadata_2.0_spec (1.1.2) [ 98] [Active ] [ ] [ 60] Apache CXF Bundle Jar (2.2) [ 99] [Active ] [Started] [ 60] Apache ServiceMix CXF Transport for OSGi (4.0.0) [ 100] [Active ] [ ] [ 60] camel-core (2.0.0.M1) [ 101] [Active ] [ ] [ 60] camel-spring (2.0.0.M1) [ 102] [Active ] [ ] [ 60] camel-osgi (2.0.0.M1) [ 103] [Active ] [ ] [ 60] camel-bindy (2.0.0.M1) [ 104] [Active ] [ ] [ 60] Spring JMS (2.5.6) [ 105] [Active ] [ ] [ 60] camel-jms (2.0.0.M1) [ 106] [Active ] [ ] [ 60] camel-cxf (2.0.0.M1) [ 107] [Active ] [ ] [ 60] activemq-camel (5.2.0) [ 108] [Resolved ] [ ] [ 60] Apache ServiceMix Bundles: commons-dbcp-1.2.2 (1.2.2.3) [ 109] [Resolved ] [ ] [ 60] Spring ORM (2.5.6) [ 110] [Resolved ] [ ] [ 60] Spring JDBC (2.5.6) [ 111] [Resolved ] [ ] [ 60] ActiveMQ Queuing engine (1.0.0.SNAPSHOT) [ 112] [Resolved ] [ ] [ 60] Camel Queuing Service (1.0.0.SNAPSHOT) [ 113] [Resolved ] [ ] [ 60] Report Incident Model Bundle (1.0.0.SNAPSHOT) [ 114] [Installed ] [ ] [ 60] Report Incident Persistence Bundle (1.0.0.SNAPSHOT) [ 115] [Installed ] [ ] [ 60] reportincident.service (1.0.0.SNAPSHOT) [ 116] [Installed ] [ ] [ 60] Report Incident Webservice Bundle (1.0.0.SNAPSHOT) [ 117] [Installed ] [ ] [ 60] Report Incident Routing Bundle (1.0.0.SNAPSHOT) [ 118] [Installed ] [ ] [ 60] Report Incident Web Bundle (1.0.0.SNAPSHOT) smx@root:/> features/list State Version Name [uninstalled] [ 0.0.0] hibernate [uninstalled] [ 0.0.0] camel-velocity [installed ] [ 0.0.0] web-core [installed ] [ 2.2] cxf [installed ] [ 0.0.0] common [installed ] [ 0.0.0] transaction [installed ] [ 0.0.0] camel-activemq [installed ] [ 0.0.0] web [uninstalled] [ 1.0] reportincident [uninstalled] [ 0.0.0] camel-mail [installed ] [ 0.0.0] cxf-osgi [uninstalled] [ 0.0.0] spring-web [installed ] [ 0.0.0] camel-spring [installed ] [ 2.0-M1] camel [installed ] [ 0.0.0] camel-core [installed ] [ 0.0.0] camel-bindy [installed ] [ 5.2.0] activemq [installed ] [ 0.0.0] connector [installed ] [ 0.0.0] camel-osgi [installed ] [ 0.0.0] wicket [uninstalled] [ 0.0.0] jdbc-driver [installed ] [ 0.0.0] camel-jms [installed ] [ 0.0.0] camel-cxf How do I get here: 1. Downloaded files from http://camel.apache.org/tutorial-osgi-camel-part2.html 2. Changed reportincident.db\src\config\hibernate.cfg.xml to use my db settings. 3. Run commands below mentioned in the tutorial reportincident.activemq clean install org.ops4j:maven-pax-plugin:eclipse reportincident.camelqueueservice clean install org.ops4j:maven-pax-plugin:eclipse reportincident.db mvn clean install reportincident.features mvn clean install reportincident.model mvn clean install org.ops4j:maven-pax-plugin:eclipse reportincident.persistence mvn clean install org.ops4j:maven-pax-plugin:eclipse reportincident.routing mvn clean install org.ops4j:maven-pax-plugin:eclipse reportincident.service mvn clean install org.ops4j:maven-pax-plugin:eclipse reportincident.web mvn clean install reportincident.webservice mvn clean install org.ops4j:maven-pax-plugin:eclipse When I ran mvn clean install org.ops4j:maven-pax-plugin:eclipse for reportincident.service, tests are failed. The error message is on the top of this post. After I removed directory src/test, I could run command above successfully. I checked .m2 repository, it shows $ ls */1.0-SNAPSHOT/*.jar reportincident.activemq/1.0-SNAPSHOT/reportincident.activemq-1.0-SNAPSHOT.jar reportincident.db/1.0-SNAPSHOT/reportincident.db-1.0-SNAPSHOT.jar reportincident.features/1.0-SNAPSHOT/reportincident.features-1.0-SNAPSHOT.jar reportincident.model/1.0-SNAPSHOT/reportincident.model-1.0-SNAPSHOT.jar reportincident.persistence/1.0-SNAPSHOT/reportincident.persistence-1.0-SNAPSHOT.jar reportincident.queueservice/1.0-SNAPSHOT/reportincident.queueservice-1.0-SNAPSHOT.jar reportincident.routing/1.0-SNAPSHOT/reportincident.routing-1.0-SNAPSHOT.jar reportincident.service/1.0-SNAPSHOT/reportincident.service-1.0-SNAPSHOT.jar reportincident.webservice/1.0-SNAPSHOT/reportincident.webservice-1.0-SNAPSHOT.jar 4. I added a new file C:\grid-console\apache-servicemix-kernel-1.1.0\etc\org.apache.camel.example.reportincident.datasource.cfg driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql:///report username=root password=wordpass 5. I changed org.apache.servicemix.features.cfg to featuresRepositories=jar:mvn:org.apache.camel.example/reportincident.features/1.0-SNAPSHOT!/reportincident.features-1.0-SNAPSHOT-features.xml featuresBoot=common,transaction,connector,activemq,web-core,web,spring-web,wicket,cxf,cxf-osgi,camel,jdbc-driver,hibernate,reportincident 6. Start servicemix.bat Please let me know if you need more information. I turned on the TRACE. If you need the log, I can send it to you. This is a great tutorial. I wish I could use this tutorial as the start point of my project. Thanks a lot, --Kevin
|
|
|
Re: Have anybody here tried the tutorial-osgi-camel-part2?Hi Kevin,
I don't see any bundles concerning MySQL or Hibernate. Can you send me what you have in the log for the last bundles 108 - 113 ? I see that some of them are in status "Resolved". So information of the log will help us [ 108] [Resolved ] [ ] [ 60] Apache ServiceMix Bundles: commons-dbcp-1.2.2 (1.2.2.3) [ 109] [Resolved ] [ ] [ 60] Spring ORM (2.5.6) [ 110] [Resolved ] [ ] [ 60] Spring JDBC (2.5.6) [ 111] [Resolved ] [ ] [ 60] ActiveMQ Queuing engine (1.0.0.SNAPSHOT) [ 112] [Resolved ] [ ] [ 60] Camel Queuing Service (1.0.0.SNAPSHOT) [ 113] [Resolved ] [ ] [ 60] Report Incident Model Bundle Regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com On Mon, Jul 6, 2009 at 6:25 PM, Kevin.Zhang <zhangyongjiang@...>wrote: > > Hi Charles, > > Below please find the list of bundles installed: > > smx@root:/> osgi/list > START LEVEL 100 > ID State Spring Level Name > [ 0] [Active ] [ ] [ 0] System Bundle (1.5.0.r752991) > [ 1] [Active ] [ ] [ 10] Apache Felix Prefrences Service > (1.0.2) > [ 2] [Active ] [ ] [ 10] Apache ServiceMix Bundles: > jaxp-ri-1.4.2 (1.4.2.2) > [ 3] [Active ] [ ] [ 10] geronimo-annotation_1.0_spec (1.1.1) > [ 4] [Active ] [ ] [ 10] Apache ServiceMix Specs :: JAXP API > 1.4 (1.3.0) > [ 5] [Active ] [ ] [ 10] OSGi R4 Compendium Bundle (4.1.0) > [ 6] [Active ] [ ] [ 10] Apache Felix Configuration Admin > Service (1.0.4) > [ 7] [Active ] [ ] [ 10] geronimo-servlet_2.5_spec (1.1.2) > [ 8] [Active ] [Started] [ 40] Apache ServiceMix Kernel :: GShell > Core (1.1.0) > [ 9] [Active ] [ ] [ 8] OPS4J Pax Logging - API (1.3.0) > [ 10] [Active ] [ ] [ 8] OPS4J Pax Logging - Service (1.3.0) > [ 11] [Active ] [ ] [ 5] OPS4J Pax Url - wrap: (0.3.3) > [ 12] [Active ] [ ] [ 5] OPS4J Pax Url - mvn: (0.3.3) > [ 13] [Active ] [ ] [ 30] spring-osgi-io (1.2.0.m2) > [ 14] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: Spring > Deployer (1.1.0) > [ 15] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > mina-1.1.7 > (1.1.7.1) > [ 16] [Active ] [ ] [ 30] Spring Context (2.5.6) > [ 17] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: JAAS > Modules (1.1.0) > [ 18] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > commons-jexl-1.1 (1.1.0.1) > [ 19] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell > Features (1.1.0) > [ 20] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > commons-httpclient-3.1 (3.1.0.1) > [ 21] [Active ] [ ] [ 30] Spring Core (2.5.6) > [ 22] [Active ] [ ] [ 30] jmx-impl (1.0.0.r6125-patched) > [ 23] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell > ConfigAdmin Commands (1.1.0) > [ 24] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: JAAS > Config (1.1.0) > [ 25] [Active ] [ ] [ 30] jmx (1.0.0.r6125-patched) > [ 26] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > commons-vfs-1.0 (1.0.0.1) > [ 27] [Active ] [ ] [ 30] Spring Beans (2.5.6) > [ 28] [Active ] [ ] [ 30] Unnamed - > com.google.code.sshd:sshd:bundle:0.1 (0.1) > [ 29] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > commons-codec-1.2 (1.2.0.1) > [ 30] [Active ] [ ] [ 30] spring-osgi-extender (1.2.0.m2) > [ 31] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > cglib-2.1_3 (2.1.0.3_1) > [ 32] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > jline-0.9.94 (0.9.94.1) > [ 33] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > aopalliance-1.0 (1.0.0.1) > [ 34] [Active ] [ ] [ 30] Spring AOP (2.5.6) > [ 35] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell > PackageAdmin Commands (1.1.0) > [ 36] [Active ] [ ] [ 30] Apache ServiceMix Bundles: oro-2.0.8 > (2.0.8.1) > [ 37] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell > Log Commands (1.1.0) > [ 38] [Active ] [ ] [ 30] spring-osgi-core (1.2.0.m2) > [ 39] [Active ] [Started] [ 30] Apache ServiceMix Kernel :: GShell > OSGi Commands (1.1.0) > [ 40] [Active ] [Started] [ 30] Apache ServiceMix Kernel :: GShell > Admin (1.1.0) > [ 41] [Active ] [Started] [ 30] Apache ServiceMix Kernel :: > Management (1.1.0) > [ 42] [Active ] [ ] [ 15] Apache ServiceMix Kernel :: File > Monitor (1.1.0) > [ 43] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > jaxb-impl-2.1.6 (2.1.6.1) > [ 44] [Active ] [ ] [ 60] Apache ServiceMix Specs :: > ACTIVATION > API 1.4 (1.2.0) > [ 45] [Active ] [ ] [ 60] Apache ServiceMix Specs :: JAXB API > 2.1 (1.2.0) > [ 46] [Active ] [ ] [ 60] Commons Collections (3.2.1) > [ 47] [Active ] [ ] [ 60] Commons Lang (2.4) > [ 48] [Active ] [ ] [ 60] Apache Commons Pool Bundle (1.4) > [ 49] [Active ] [ ] [ 60] Apache ServiceMix Bundles: asm-2.2.3 > (2.2.3.1) > [ 50] [Active ] [ ] [ 60] geronimo-jta_1.1_spec (1.1.1) > [ 51] [Active ] [ ] [ 60] geronimo-j2ee-connector_1.5_spec > (2.0.0) > [ 52] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > howl-1.0.1-1 (1.0.1.1_1) > [ 53] [Active ] [ ] [ 60] Geronimo TxManager :: Transaction > (2.2.0.r634076) > [ 54] [Active ] [ ] [ 60] Spring Transaction (2.5.6) > [ 55] [Active ] [Started] [ 60] Apache ServiceMix Transaction > (1.0.0) > [ 56] [Active ] [ ] [ 60] Geronimo TxManager :: Connector > (2.2.0.r634076) > [ 57] [Active ] [ ] [ 60] geronimo-jms_1.1_spec (1.1.1) > [ 58] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > jencks-2.1 > (2.1.0.1) > [ 59] [Active ] [ ] [ 60] geronimo-j2ee-management_1.1_spec > (1.0.1) > [ 60] [Active ] [ ] [ 60] xbean-spring (3.4.3) > [ 61] [Active ] [ ] [ 60] activemq-core (5.2.0) > [ 62] [Active ] [ ] [ 60] activemq-ra (5.2.0) > [ 63] [Active ] [ ] [ 60] activemq-console (5.2.0) > [ 64] [Active ] [ ] [ 60] activemq-pool (5.2.0) > [ 65] [Active ] [Started] [ 60] Apache ServiceMix Features :: > ActiveMQ Commands (4.0.0) > [ 66] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > jetty-6.1.14 (6.1.14.1) > [ 67] [Active ] [ ] [ 60] OPS4J Pax Web - Web Container > (0.6.0) > [ 68] [Active ] [ ] [ 60] OPS4J Pax Web - Jsp Support (0.6.0) > [ 69] [Active ] [ ] [ 60] OPS4J Pax Web Extender - WAR (0.5.1) > [ 70] [Active ] [ ] [ 60] OPS4J Pax Web Extender - Whiteboard > (0.5.1) > [ 71] [Active ] [ ] [ 60] OPS4J Pax Url - war:, war-i: (0.4.0) > [ 72] [Active ] [Started] [ 60] Apache ServiceMix WAR Deployer > (4.0.0) > [ 73] [Resolved ] [ ] [ 60] Spring Web (2.5.6) > [ 74] [Active ] [ ] [ 60] Wicket (1.3.5) > [ 75] [Active ] [ ] [ 60] Wicket IoC common code (1.3.5) > [ 76] [Active ] [ ] [ 60] Wicket Spring Integration (1.3.5) > [ 77] [Active ] [ ] [ 60] Wicket Spring Integration through > Annotations (1.3.5) > [ 78] [Active ] [ ] [ 60] Wicket Extensions (1.3.5) > [ 79] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > FastInfoset-1.2.2 (1.2.2.1) > [ 80] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > xmlsec-1.3.0 (1.3.0.1) > [ 81] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > wss4j-1.5.4 (1.5.4.1) > [ 82] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > xmlbeans-2.4.0 (2.4.0.1) > [ 83] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > xmlresolver-1.2 (1.2.0.1) > [ 84] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > xmlschema-1.4.2 (1.4.2.1) > [ 85] [Active ] [ ] [ 60] Apache ServiceMix Bundles: ant-1.7.0 > (1.7.0.1) > [ 86] [Active ] [ ] [ 60] Apache ServiceMix Bundles: jdom-1.1 > (1.1.0.1) > [ 87] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > werken-xpath-0.9.4 (0.9.4.1) > [ 88] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > neethi-2.0.4 (2.0.4.1) > [ 89] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > abdera-0.4.0-incubating (0.4.0.incubating_1) > [ 90] [Active ] [ ] [ 60] Apache ServiceMix Bundles: junit-4.4 > (4.4.0.1) > [ 91] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > antlr-3.0.1 (3.0.1.1) > [ 92] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > commons-io-1.3.2 (1.3.2.1) > [ 93] [Active ] [ ] [ 60] Apache ServiceMix Specs :: JAVAMAIL > API 1.4 (1.2.0) > [ 94] [Active ] [ ] [ 60] Apache ServiceMix Specs :: JAXWS API > 2.1 (1.2.0) > [ 95] [Active ] [ ] [ 60] Apache ServiceMix Specs :: SAAJ API > 1.3 (1.2.0) > [ 96] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > wsdl4j-1.6.1 (1.6.1.1) > [ 97] [Active ] [ ] [ 60] geronimo-ws-metadata_2.0_spec > (1.1.2) > [ 98] [Active ] [ ] [ 60] Apache CXF Bundle Jar (2.2) > [ 99] [Active ] [Started] [ 60] Apache ServiceMix CXF Transport for > OSGi (4.0.0) > [ 100] [Active ] [ ] [ 60] camel-core (2.0.0.M1) > [ 101] [Active ] [ ] [ 60] camel-spring (2.0.0.M1) > [ 102] [Active ] [ ] [ 60] camel-osgi (2.0.0.M1) > [ 103] [Active ] [ ] [ 60] camel-bindy (2.0.0.M1) > [ 104] [Active ] [ ] [ 60] Spring JMS (2.5.6) > [ 105] [Active ] [ ] [ 60] camel-jms (2.0.0.M1) > [ 106] [Active ] [ ] [ 60] camel-cxf (2.0.0.M1) > [ 107] [Active ] [ ] [ 60] activemq-camel (5.2.0) > [ 108] [Resolved ] [ ] [ 60] Apache ServiceMix Bundles: > commons-dbcp-1.2.2 (1.2.2.3) > [ 109] [Resolved ] [ ] [ 60] Spring ORM (2.5.6) > [ 110] [Resolved ] [ ] [ 60] Spring JDBC (2.5.6) > [ 111] [Resolved ] [ ] [ 60] ActiveMQ Queuing engine > (1.0.0.SNAPSHOT) > [ 112] [Resolved ] [ ] [ 60] Camel Queuing Service > (1.0.0.SNAPSHOT) > [ 113] [Resolved ] [ ] [ 60] Report Incident Model Bundle > (1.0.0.SNAPSHOT) > [ 114] [Installed ] [ ] [ 60] Report Incident Persistence Bundle > (1.0.0.SNAPSHOT) > [ 115] [Installed ] [ ] [ 60] reportincident.service > (1.0.0.SNAPSHOT) > [ 116] [Installed ] [ ] [ 60] Report Incident Webservice Bundle > (1.0.0.SNAPSHOT) > [ 117] [Installed ] [ ] [ 60] Report Incident Routing Bundle > (1.0.0.SNAPSHOT) > [ 118] [Installed ] [ ] [ 60] Report Incident Web Bundle > (1.0.0.SNAPSHOT) > > > smx@root:/> features/list > State Version Name > [uninstalled] [ 0.0.0] hibernate > [uninstalled] [ 0.0.0] camel-velocity > [installed ] [ 0.0.0] web-core > [installed ] [ 2.2] cxf > [installed ] [ 0.0.0] common > [installed ] [ 0.0.0] transaction > [installed ] [ 0.0.0] camel-activemq > [installed ] [ 0.0.0] web > [uninstalled] [ 1.0] reportincident > [uninstalled] [ 0.0.0] camel-mail > [installed ] [ 0.0.0] cxf-osgi > [uninstalled] [ 0.0.0] spring-web > [installed ] [ 0.0.0] camel-spring > [installed ] [ 2.0-M1] camel > [installed ] [ 0.0.0] camel-core > [installed ] [ 0.0.0] camel-bindy > [installed ] [ 5.2.0] activemq > [installed ] [ 0.0.0] connector > [installed ] [ 0.0.0] camel-osgi > [installed ] [ 0.0.0] wicket > [uninstalled] [ 0.0.0] jdbc-driver > [installed ] [ 0.0.0] camel-jms > [installed ] [ 0.0.0] camel-cxf > > > How do I get here: > > 1. Downloaded files from > http://camel.apache.org/tutorial-osgi-camel-part2.html > > 2. Changed reportincident.db\src\config\hibernate.cfg.xml to use my db > settings. > > 3. Run commands below mentioned in the tutorial > > reportincident.activemq clean install > org.ops4j:maven-pax-plugin:eclipse > reportincident.camelqueueservice clean install > org.ops4j:maven-pax-plugin:eclipse > reportincident.db mvn clean install > reportincident.features mvn clean install > reportincident.model mvn clean install > org.ops4j:maven-pax-plugin:eclipse > reportincident.persistence mvn clean install > org.ops4j:maven-pax-plugin:eclipse > reportincident.routing mvn clean install > org.ops4j:maven-pax-plugin:eclipse > reportincident.service mvn clean install > org.ops4j:maven-pax-plugin:eclipse > reportincident.web mvn clean install > reportincident.webservice mvn clean install > org.ops4j:maven-pax-plugin:eclipse > > When I ran mvn clean install org.ops4j:maven-pax-plugin:eclipse for > reportincident.service, tests are failed. The error message is on the top > of > this post. After I removed directory src/test, I could run command above > successfully. I checked .m2 repository, it shows > > $ ls */1.0-SNAPSHOT/*.jar > > reportincident.activemq/1.0-SNAPSHOT/reportincident.activemq-1.0-SNAPSHOT.jar > reportincident.db/1.0-SNAPSHOT/reportincident.db-1.0-SNAPSHOT.jar > > reportincident.features/1.0-SNAPSHOT/reportincident.features-1.0-SNAPSHOT.jar > reportincident.model/1.0-SNAPSHOT/reportincident.model-1.0-SNAPSHOT.jar > > reportincident.persistence/1.0-SNAPSHOT/reportincident.persistence-1.0-SNAPSHOT.jar > > reportincident.queueservice/1.0-SNAPSHOT/reportincident.queueservice-1.0-SNAPSHOT.jar > reportincident.routing/1.0-SNAPSHOT/reportincident.routing-1.0-SNAPSHOT.jar > reportincident.service/1.0-SNAPSHOT/reportincident.service-1.0-SNAPSHOT.jar > > reportincident.webservice/1.0-SNAPSHOT/reportincident.webservice-1.0-SNAPSHOT.jar > > 4. I added a new file > > C:\grid-console\apache-servicemix-kernel-1.1.0\etc\org.apache.camel.example.reportincident.datasource.cfg > > driverClassName=com.mysql.jdbc.Driver > url=jdbc:mysql:///report > username=root > password=wordpass > > 5. I changed org.apache.servicemix.features.cfg to > > > featuresRepositories=jar:mvn:org.apache.camel.example/reportincident.features/1.0-SNAPSHOT!/reportincident.features-1.0-SNAPSHOT-features.xml > > featuresBoot=common,transaction,connector,activemq,web-core,web,spring-web,wicket,cxf,cxf-osgi,camel,jdbc-driver,hibernate,reportincident > > 6. Start servicemix.bat > > Please let me know if you need more information. I turned on the TRACE. If > you need the log, I can send it to you. This is a great tutorial. I wish I > could use this tutorial as the start point of my project. > > Thanks a lot, > > --Kevin > > > > cmoulliard wrote: > > > > Hi, > > > > The file that you mention is part of the project > > reportincident.persistence > > : > > reportincident.persistence\META-INF\spring\spring-datasource-beans.xml > > > > Can you show me the list of bundles installed on your servicemix server > > please ? > > > > regards, > > > > Charles Moulliard > > Senior Enterprise Architect > > Apache Camel Committer > > > > ***************************** > > blog : http://cmoulliard.blogspot.com > > > > > > On Mon, Jul 6, 2009 at 4:26 PM, Kevin.Zhang > > <zhangyongjiang@...>wrote: > > > >> > >> Hi Charles, > >> > >> I use apache-servicemix-kernel-1.1.0 as osgi container. > >> > >> I checked the project file I downloaded from the web page, only > >> reportincident.persistence contains file spring-datasource-beans.xml. > >> Module > >> reportincident.service does not have spring-datasource-beans.xml. > >> > >> Thanks, > >> Kevin > >> > >> > >> > >> cmoulliard wrote: > >> > > >> > Hi Kevin, > >> > > >> > It seems that you have a spring error : > >> > > >> > > >> > org.springframework.beans.factory.parsing.BeanDefinitionParsingException: > >> > Configuration problem: Failed to import bean definitions from URL > >> location > >> > [classpath: > >> > META-INF/spring/spring-datasource-beans.xml] > >> > Offending resource: class path resource > >> [test-reportincident-service.xml]; > >> > nested exception is > >> > org.springframework.beans.factory.parsing.BeanDefinitionParsingEx > >> > ception: Configuration problem: Unable to locate Spring > >> NamespaceHandler > >> > for > >> > XML schema namespace > >> > [http://www.springframework.org/schema/osgi-compendium] > >> > > >> > Can you tell me which version of the OSGI server you are using for > this > >> > test > >> > ? > >> > > >> > Regards, > >> > > >> > Charles Moulliard > >> > Senior Enterprise Architect > >> > Apache Camel Committer > >> > > >> > ***************************** > >> > blog : http://cmoulliard.blogspot.com > >> > > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Have-anybody-here-tried-the-tutorial-osgi-camel-part2--tp24327596p24356443.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://www.nabble.com/Have-anybody-here-tried-the-tutorial-osgi-camel-part2--tp24327596p24358669.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > |
|
|
Re: Have anybody here tried the tutorial-osgi-camel-part2?Hi Charles,
I just uploaded the log file. Please take a look and let me know if you need more information. Thanks a lot, Kevin servicemix.log.zip
|
|
|
Re: Have anybody here tried the tutorial-osgi-camel-part2?Hi,
I see in the log that some important bundles have not been installed : 1) Hibernate is not installed 09:21:20,016 | ERROR | Thread-5 | FeaturesServiceImpl | s.internal.FeaturesServiceImpl$1 380 | Error installing boot feature reportincident org.osgi.framework.BundleException: Unresolved constraint in bundle 114: package; (package=org.hibernate.classic) 2) Idem for MySQL 09:21:19,313 | ERROR | Thread-5 | FeaturesServiceImpl | s.internal.FeaturesServiceImpl$1 380 | Error installing boot feature jdbc-driver java.lang.RuntimeException: URL [mvn:com.mysql.jdbc/com.springsource.com.mysql.jdbc/5.1.6] could not be resolved. (enable TRACE logging for details) at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:193) at java.net.URL.openStream(URL.java:1009) 3) Dom4j 09:21:19,673 | ERROR | Thread-5 | FeaturesServiceImpl | s.internal.FeaturesServiceImpl$1 380 | Error installing boot feature hibernate java.lang.RuntimeException: URL [mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6_2-SNAPSHOT] could not be resolved. (enable TRACE logging for details) at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:193) at java.net.URL.openStream(URL.java:1009) at org.apache.servicemix.kernel.gshell.features.internal.Feat This is strange because I don't see this bundle on apache maven repo This bundle can be recreated locally if you have a copy of the following project : http://svn.apache.org/repos/asf/servicemix/smx4/bundles/trunk/dom4j-1.6 Can you review this ? Regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com On Tue, Jul 7, 2009 at 4:08 PM, Kevin.Zhang <zhangyongjiang@...>wrote: > > Hi Charles, > > I just uploaded the log file. Please take a look and let me know if you > need > more information. > > Thanks a lot, > Kevin > > http://www.nabble.com/file/p24373875/servicemix.log.zip servicemix.log.zip > > > cmoulliard wrote: > > > > Hi Kevin, > > > > I don't see any bundles concerning MySQL or Hibernate. > > > > Can you send me what you have in the log for the last bundles 108 - 113 ? > > I > > see that some of them are in status "Resolved". So information of the log > > will help us > > > > [ 108] [Resolved ] [ ] [ 60] Apache ServiceMix Bundles: > > commons-dbcp-1.2.2 (1.2.2.3) > > [ 109] [Resolved ] [ ] [ 60] Spring ORM (2.5.6) > > [ 110] [Resolved ] [ ] [ 60] Spring JDBC (2.5.6) > > [ 111] [Resolved ] [ ] [ 60] ActiveMQ Queuing engine > > (1.0.0.SNAPSHOT) > > [ 112] [Resolved ] [ ] [ 60] Camel Queuing Service > > (1.0.0.SNAPSHOT) > > [ 113] [Resolved ] [ ] [ 60] Report Incident Model Bundle > > > > Regards, > > > > > > Charles Moulliard > > Senior Enterprise Architect > > Apache Camel Committer > > > > ***************************** > > blog : http://cmoulliard.blogspot.com > > > > > > On Mon, Jul 6, 2009 at 6:25 PM, Kevin.Zhang > > <zhangyongjiang@...>wrote: > > > >> > >> Hi Charles, > >> > >> Below please find the list of bundles installed: > >> > >> smx@root:/> osgi/list > >> START LEVEL 100 > >> ID State Spring Level Name > >> [ 0] [Active ] [ ] [ 0] System Bundle (1.5.0.r752991) > >> [ 1] [Active ] [ ] [ 10] Apache Felix Prefrences Service > > ........................ > >> > >> > > > > > > ----- > > Charles Moulliard > > SOA Architect > > > > My Blog : http://cmoulliard.blogspot.com/ > > > > -- > View this message in context: > http://www.nabble.com/Have-anybody-here-tried-the-tutorial-osgi-camel-part2--tp24327596p24373875.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > |
|
|
Re: Have anybody here tried the tutorial-osgi-camel-part2?Hi Charles,
I downloaded dom4j and ran "mvn" command. It seems that it's still not working. Below is the repository list for dom4j. C:\Documents and Settings\chzhang\.m2\repository>dir /s *dom4j* Volume in drive C has no label. Volume Serial Number is D051-6A60 Directory of C:\Documents and Settings\chzhang\.m2\repository 10/20/2008 09:24 AM <DIR> dom4j 0 File(s) 0 bytes Directory of C:\Documents and Settings\chzhang\.m2\repository\dom4j 07/07/2009 08:06 AM <DIR> dom4j 0 File(s) 0 bytes Directory of C:\Documents and Settings\chzhang\.m2\repository\dom4j\dom4j\1.6 07/07/2009 08:20 AM 0 dom4j-1.6-sources.jar-not-available 07/07/2009 08:06 AM 313,359 dom4j-1.6.jar 07/07/2009 08:06 AM 40 dom4j-1.6.jar.sha1 07/07/2009 08:06 AM 6,763 dom4j-1.6.pom 07/07/2009 08:06 AM 130 dom4j-1.6.pom.sha1 5 File(s) 320,292 bytes Directory of C:\Documents and Settings\chzhang\.m2\repository\dom4j\dom4j\1.6.1 10/20/2008 10:27 AM 432,186 dom4j-1.6.1-sources.jar 10/20/2008 10:27 AM 84 dom4j-1.6.1-sources.jar.sha1 10/20/2008 09:25 AM 313,898 dom4j-1.6.1.jar 10/20/2008 09:25 AM 40 dom4j-1.6.1.jar.sha1 10/20/2008 09:24 AM 6,765 dom4j-1.6.1.pom 10/20/2008 09:24 AM 134 dom4j-1.6.1.pom.sha1 6 File(s) 753,107 bytes Directory of C:\Documents and Settings\chzhang\.m2\repository\org\apache\servicemix\bundles 07/07/2009 08:06 AM <DIR> org.apache.servicemix.bundles.dom4j 0 File(s) 0 bytes Directory of C:\Documents and Settings\chzhang\.m2\repository\org\apache\servicemix\bundles\org.apache.servicemix.bundles.dom4j\1.6_2-SNAPSHOT 07/07/2009 08:06 AM 320,542 org.apache.servicemix.bundles.dom4j-1.6_2-SNAPSHOT.jar 07/07/2009 08:06 AM 2,843 org.apache.servicemix.bundles.dom4j-1.6_2-SNAPSHOT.pom 2 File(s) 323,385 bytes In the hibernate directory, I can see C:\Documents and Settings\chzhang\.m2\repository\org\hibernate>dir Volume in drive C has no label. Volume Serial Number is D051-6A60 Directory of C:\Documents and Settings\chzhang\.m2\repository\org\hibernate 07/02/2009 10:33 PM <DIR> . 07/02/2009 10:33 PM <DIR> .. 07/02/2009 10:33 PM <DIR> ejb3-persistence 10/20/2008 10:06 AM <DIR> hibernate 07/02/2009 10:33 PM <DIR> hibernate-annotations 07/02/2009 10:33 PM <DIR> hibernate-commons-annotations 07/02/2009 10:18 PM <DIR> hibernate-core 07/02/2009 10:33 PM <DIR> hibernate-entitymanager 07/02/2009 10:18 PM <DIR> hibernate-parent 07/02/2009 10:33 PM <DIR> hibernate-tools 10/20/2008 10:06 AM <DIR> jtidy After I started servicemix.bat, it prints error msg in the console. C:\grid-console\apache-servicemix-kernel-1.1.0\bin>servicemix.bat ____ _ __ __ _ / ___| ___ _ ____ _(_) ___ ___| \/ (_)_ __ \___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ / ___) | __/ | \ V /| | (_| __/ | | | |> < |____/ \___|_| \_/ |_|\___\___|_| |_|_/_/\_\ ServiceMix Kernel (1.1.0) Type 'help' for more information. --------------------------------------------------------------------------------------------------------------------------------------------------------------- smx@root:/> ERROR: Error starting mvn:org.apache.camel.example/reportincident.web/1.0-SNAPSHOT/war (org.osgi.framework.BundleException: Unresolved constraint in bundle 114: package; (package=org.hibernate.classic)) org.osgi.framework.BundleException: Unresolved constraint in bundle 114: package; (package=org.hibernate.classic) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3059) at org.apache.felix.framework.Felix.startBundle(Felix.java:1439) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263) at java.lang.Thread.run(Thread.java:619) smx@root:/> osgi/list START LEVEL 100 ID State Spring Level Name [ 0] [Active ] [ ] [ 0] System Bundle (1.5.0.r752991) [ 1] [Active ] [ ] [ 10] Apache Felix Prefrences Service (1.0.2) [ 2] [Active ] [ ] [ 10] Apache ServiceMix Bundles: jaxp-ri-1.4.2 (1.4.2.2) [ 3] [Active ] [ ] [ 10] geronimo-annotation_1.0_spec (1.1.1) [ 4] [Active ] [ ] [ 10] Apache ServiceMix Specs :: JAXP API 1.4 (1.3.0) [ 5] [Active ] [ ] [ 10] OSGi R4 Compendium Bundle (4.1.0) [ 6] [Active ] [ ] [ 10] Apache Felix Configuration Admin Service (1.0.4) [ 7] [Active ] [ ] [ 10] geronimo-servlet_2.5_spec (1.1.2) [ 8] [Active ] [Started] [ 40] Apache ServiceMix Kernel :: GShell Core (1.1.0) [ 9] [Active ] [ ] [ 8] OPS4J Pax Logging - API (1.3.0) [ 10] [Active ] [ ] [ 8] OPS4J Pax Logging - Service (1.3.0) [ 11] [Active ] [ ] [ 5] OPS4J Pax Url - wrap: (0.3.3) [ 12] [Active ] [ ] [ 5] OPS4J Pax Url - mvn: (0.3.3) [ 13] [Active ] [ ] [ 30] spring-osgi-io (1.2.0.m2) [ 14] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: Spring Deployer (1.1.0) [ 15] [Active ] [ ] [ 30] Apache ServiceMix Bundles: mina-1.1.7 (1.1.7.1) [ 16] [Active ] [ ] [ 30] Spring Context (2.5.6) [ 17] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: JAAS Modules (1.1.0) [ 18] [Active ] [ ] [ 30] Apache ServiceMix Bundles: commons-jexl-1.1 (1.1.0.1) [ 19] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell Features (1.1.0) [ 20] [Active ] [ ] [ 30] Apache ServiceMix Bundles: commons-httpclient-3.1 (3.1.0.1) [ 21] [Active ] [ ] [ 30] Spring Core (2.5.6) [ 22] [Active ] [ ] [ 30] jmx-impl (1.0.0.r6125-patched) [ 23] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell ConfigAdmin Commands (1.1.0) [ 24] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: JAAS Config (1.1.0) [ 25] [Active ] [ ] [ 30] jmx (1.0.0.r6125-patched) [ 26] [Active ] [ ] [ 30] Apache ServiceMix Bundles: commons-vfs-1.0 (1.0.0.1) [ 27] [Active ] [ ] [ 30] Spring Beans (2.5.6) [ 28] [Active ] [ ] [ 30] Unnamed - com.google.code.sshd:sshd:bundle:0.1 (0.1) [ 29] [Active ] [ ] [ 30] Apache ServiceMix Bundles: commons-codec-1.2 (1.2.0.1) [ 30] [Active ] [ ] [ 30] spring-osgi-extender (1.2.0.m2) [ 31] [Active ] [ ] [ 30] Apache ServiceMix Bundles: cglib-2.1_3 (2.1.0.3_1) [ 32] [Active ] [ ] [ 30] Apache ServiceMix Bundles: jline-0.9.94 (0.9.94.1) [ 33] [Active ] [ ] [ 30] Apache ServiceMix Bundles: aopalliance-1.0 (1.0.0.1) [ 34] [Active ] [ ] [ 30] Spring AOP (2.5.6) [ 35] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell PackageAdmin Commands (1.1.0) [ 36] [Active ] [ ] [ 30] Apache ServiceMix Bundles: oro-2.0.8 (2.0.8.1) [ 37] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell Log Commands (1.1.0) [ 38] [Active ] [ ] [ 30] spring-osgi-core (1.2.0.m2) [ 39] [Active ] [Started] [ 30] Apache ServiceMix Kernel :: GShell OSGi Commands (1.1.0) [ 40] [Active ] [Started] [ 30] Apache ServiceMix Kernel :: GShell Admin (1.1.0) [ 41] [Active ] [Started] [ 30] Apache ServiceMix Kernel :: Management (1.1.0) [ 42] [Active ] [ ] [ 15] Apache ServiceMix Kernel :: File Monitor (1.1.0) [ 43] [Active ] [ ] [ 60] Apache ServiceMix Bundles: jaxb-impl-2.1.6 (2.1.6.1) [ 44] [Active ] [ ] [ 60] Apache ServiceMix Specs :: ACTIVATION API 1.4 (1.2.0) [ 45] [Active ] [ ] [ 60] Apache ServiceMix Specs :: JAXB API 2.1 (1.2.0) [ 46] [Active ] [ ] [ 60] Commons Collections (3.2.1) [ 47] [Active ] [ ] [ 60] Commons Lang (2.4) [ 48] [Active ] [ ] [ 60] Apache Commons Pool Bundle (1.4) [ 49] [Active ] [ ] [ 60] Apache ServiceMix Bundles: asm-2.2.3 (2.2.3.1) [ 50] [Active ] [ ] [ 60] geronimo-jta_1.1_spec (1.1.1) [ 51] [Active ] [ ] [ 60] geronimo-j2ee-connector_1.5_spec (2.0.0) [ 52] [Active ] [ ] [ 60] Apache ServiceMix Bundles: howl-1.0.1-1 (1.0.1.1_1) [ 53] [Active ] [ ] [ 60] Geronimo TxManager :: Transaction (2.2.0.r634076) [ 54] [Active ] [ ] [ 60] Spring Transaction (2.5.6) [ 55] [Active ] [Started] [ 60] Apache ServiceMix Transaction (1.0.0) [ 56] [Active ] [ ] [ 60] Geronimo TxManager :: Connector (2.2.0.r634076) [ 57] [Active ] [ ] [ 60] geronimo-jms_1.1_spec (1.1.1) [ 58] [Active ] [ ] [ 60] Apache ServiceMix Bundles: jencks-2.1 (2.1.0.1) [ 59] [Active ] [ ] [ 60] geronimo-j2ee-management_1.1_spec (1.0.1) [ 60] [Active ] [ ] [ 60] xbean-spring (3.4.3) [ 61] [Active ] [ ] [ 60] activemq-core (5.2.0) [ 62] [Active ] [ ] [ 60] activemq-ra (5.2.0) [ 63] [Active ] [ ] [ 60] activemq-console (5.2.0) [ 64] [Active ] [ ] [ 60] activemq-pool (5.2.0) [ 65] [Active ] [Started] [ 60] Apache ServiceMix Features :: ActiveMQ Commands (4.0.0) [ 66] [Active ] [ ] [ 60] Apache ServiceMix Bundles: jetty-6.1.14 (6.1.14.1) [ 67] [Active ] [ ] [ 60] OPS4J Pax Web - Web Container (0.6.0) [ 68] [Active ] [ ] [ 60] OPS4J Pax Web - Jsp Support (0.6.0) [ 69] [Active ] [ ] [ 60] OPS4J Pax Web Extender - WAR (0.5.1) [ 70] [Active ] [ ] [ 60] OPS4J Pax Web Extender - Whiteboard (0.5.1) [ 71] [Active ] [ ] [ 60] OPS4J Pax Url - war:, war-i: (0.4.0) [ 72] [Active ] [Started] [ 60] Apache ServiceMix WAR Deployer (4.0.0) [ 73] [Resolved ] [ ] [ 60] Spring Web (2.5.6) [ 74] [Active ] [ ] [ 60] Wicket (1.3.5) [ 75] [Active ] [ ] [ 60] Wicket IoC common code (1.3.5) [ 76] [Active ] [ ] [ 60] Wicket Spring Integration (1.3.5) [ 77] [Active ] [ ] [ 60] Wicket Spring Integration through Annotations (1.3.5) [ 78] [Active ] [ ] [ 60] Wicket Extensions (1.3.5) [ 79] [Active ] [ ] [ 60] Apache ServiceMix Bundles: FastInfoset-1.2.2 (1.2.2.1) [ 80] [Active ] [ ] [ 60] Apache ServiceMix Bundles: xmlsec-1.3.0 (1.3.0.1) [ 81] [Active ] [ ] [ 60] Apache ServiceMix Bundles: wss4j-1.5.4 (1.5.4.1) [ 82] [Active ] [ ] [ 60] Apache ServiceMix Bundles: xmlbeans-2.4.0 (2.4.0.1) [ 83] [Active ] [ ] [ 60] Apache ServiceMix Bundles: xmlresolver-1.2 (1.2.0.1) [ 84] [Active ] [ ] [ 60] Apache ServiceMix Bundles: xmlschema-1.4.2 (1.4.2.1) [ 85] [Active ] [ ] [ 60] Apache ServiceMix Bundles: ant-1.7.0 (1.7.0.1) [ 86] [Active ] [ ] [ 60] Apache ServiceMix Bundles: jdom-1.1 (1.1.0.1) [ 87] [Active ] [ ] [ 60] Apache ServiceMix Bundles: werken-xpath-0.9.4 (0.9.4.1) [ 88] [Active ] [ ] [ 60] Apache ServiceMix Bundles: neethi-2.0.4 (2.0.4.1) [ 89] [Active ] [ ] [ 60] Apache ServiceMix Bundles: abdera-0.4.0-incubating (0.4.0.incubating_1) [ 90] [Active ] [ ] [ 60] Apache ServiceMix Bundles: junit-4.4 (4.4.0.1) [ 91] [Active ] [ ] [ 60] Apache ServiceMix Bundles: antlr-3.0.1 (3.0.1.1) [ 92] [Active ] [ ] [ 60] Apache ServiceMix Bundles: commons-io-1.3.2 (1.3.2.1) [ 93] [Active ] [ ] [ 60] Apache ServiceMix Specs :: JAVAMAIL API 1.4 (1.2.0) [ 94] [Active ] [ ] [ 60] Apache ServiceMix Specs :: JAXWS API 2.1 (1.2.0) [ 95] [Active ] [ ] [ 60] Apache ServiceMix Specs :: SAAJ API 1.3 (1.2.0) [ 96] [Active ] [ ] [ 60] Apache ServiceMix Bundles: wsdl4j-1.6.1 (1.6.1.1) [ 97] [Active ] [ ] [ 60] geronimo-ws-metadata_2.0_spec (1.1.2) [ 98] [Active ] [ ] [ 60] Apache CXF Bundle Jar (2.2) [ 99] [Active ] [Started] [ 60] Apache ServiceMix CXF Transport for OSGi (4.0.0) [ 100] [Active ] [ ] [ 60] camel-core (2.0.0.M1) [ 101] [Active ] [ ] [ 60] camel-spring (2.0.0.M1) [ 102] [Active ] [ ] [ 60] camel-osgi (2.0.0.M1) [ 103] [Active ] [ ] [ 60] camel-bindy (2.0.0.M1) [ 104] [Active ] [ ] [ 60] Spring JMS (2.5.6) [ 105] [Active ] [ ] [ 60] camel-jms (2.0.0.M1) [ 106] [Active ] [ ] [ 60] camel-cxf (2.0.0.M1) [ 107] [Active ] [ ] [ 60] activemq-camel (5.2.0) [ 108] [Resolved ] [ ] [ 60] Apache ServiceMix Bundles: commons-dbcp-1.2.2 (1.2.2.3) [ 109] [Resolved ] [ ] [ 60] Spring ORM (2.5.6) [ 110] [Resolved ] [ ] [ 60] Spring JDBC (2.5.6) [ 111] [Resolved ] [ ] [ 60] ActiveMQ Queuing engine (1.0.0.SNAPSHOT) [ 112] [Resolved ] [ ] [ 60] Camel Queuing Service (1.0.0.SNAPSHOT) [ 113] [Resolved ] [ ] [ 60] Report Incident Model Bundle (1.0.0.SNAPSHOT) [ 114] [Installed ] [ ] [ 60] Report Incident Persistence Bundle (1.0.0.SNAPSHOT) [ 115] [Installed ] [ ] [ 60] reportincident.service (1.0.0.SNAPSHOT) [ 116] [Installed ] [ ] [ 60] Report Incident Webservice Bundle (1.0.0.SNAPSHOT) [ 117] [Installed ] [ ] [ 60] Report Incident Routing Bundle (1.0.0.SNAPSHOT) [ 118] [Installed ] [ ] [ 60] Report Incident Web Bundle (1.0.0.SNAPSHOT) [ 119] [Resolved ] [ ] [ 60] Apache ServiceMix Bundles: dom4j-1.6 (1.6.0.SNAPSHOT) Bundle 73, 108-113 are still in Resolved state. I attached the new log file here servicemix-2.zip. Not sure if it's useful information but in the log file I saw some exception 08:23:57,000 | DEBUG | FelixStartLevel | Connection | .pax.url.mvn.internal.Connection 320 | Resolving metadata 08:23:57,046 | TRACE | FelixStartLevel | Connection | .pax.url.mvn.internal.Connection 331 | Metadata found: [org/apache/camel/example/reportincident.features/1.0-SNAPSHOT/maven-metadata-local.xml] 08:23:57,062 | TRACE | FelixStartLevel | Connection | .pax.url.mvn.internal.Connection 171 | Possible download locations for [mvn:org.apache.camel.example/reportincident.features/1.0-SNAPSHOT] 08:23:57,062 | TRACE | FelixStartLevel | Connection | .pax.url.mvn.internal.Connection 174 | Version [1.0-20090704.161351-0] from URL [file:/C:/Documents%20and%20Settings/chzhang/.m2/repository/org/apache/camel/example/reportincident.features/1.0-SNAPSHOT/reportincident.features-1.0-SNAPSHOT.jar] 08:23:57,062 | TRACE | FelixStartLevel | Connection | .pax.url.mvn.internal.Connection 179 | Downloading [Version [1.0-20090704.161351-0] from URL [file:/C:/Documents%20and%20Settings/chzhang/.m2/repository/org/apache/camel/example/reportincident.features/1.0-SNAPSHOT/reportincident.features-1.0-SNAPSHOT.jar]] 08:23:57,109 | ERROR | FelixStartLevel | FeaturesServiceImpl | res.internal.FeaturesServiceImpl 451 | Error loading FeaturesService state java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Long.parseLong(Long.java:424) at java.lang.Long.parseLong(Long.java:461) at org.apache.servicemix.kernel.gshell.features.internal.FeaturesServiceImpl.readValue(FeaturesServiceImpl.java:507) at org.apache.servicemix.kernel.gshell.features.internal.FeaturesServiceImpl.loadMap(FeaturesServiceImpl.java:487) at org.apache.servicemix.kernel.gshell.features.internal.FeaturesServiceImpl.loadState(FeaturesServiceImpl.java:443) at org.apache.servicemix.kernel.gshell.features.internal.FeaturesServiceImpl.start(FeaturesServiceImpl.java:363) 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.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126) at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:479) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:162) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:68) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:343) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:308) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:138) at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageTwo(DependencyWaiterApplicationContextExecutor.java:304) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:246) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:168) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:179) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:759) at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.maybeCreateApplicationContextFor(ContextLoaderListener.java:806) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.start(ContextLoaderListener.java:415) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589) at org.apache.felix.framework.Felix.startBundle(Felix.java:1458) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263) at java.lang.Thread.run(Thread.java:619) Thanks a lot, Kevin
|
|
|
Re: Have anybody here tried the tutorial-osgi-camel-part2?Hi Kevin,
Can you check if you can install manually dom4j jar : Here is the command to be used in osgi install - s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6_2-SNAPSHOT If this command does not work, check in the following file etc/org.ops4j.pax.url.mvn.cfg that you point to your settings.xml file configured for your local maven repository : org.ops4j.pax.url.mvn.settings=C:/Documents and Settings/chzhang/.m2/settings.xml next try to reinstall or use features command Regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com On Tue, Jul 7, 2009 at 5:42 PM, Kevin.Zhang <zhangyongjiang@...>wrote: > > Hi Charles, > > I downloaded dom4j and ran "mvn" command. It seems that it's still not > working. > > Below is the repository list for dom4j. > > > C:\Documents and Settings\chzhang\.m2\repository>dir /s *dom4j* > Volume in drive C has no label. > Volume Serial Number is D051-6A60 > > Directory of C:\Documents and Settings\chzhang\.m2\repository > > 10/20/2008 09:24 AM <DIR> dom4j > 0 File(s) 0 bytes > > Directory of C:\Documents and Settings\chzhang\.m2\repository\dom4j > > 07/07/2009 08:06 AM <DIR> dom4j > 0 File(s) 0 bytes > > Directory of C:\Documents and > Settings\chzhang\.m2\repository\dom4j\dom4j\1.6 > > 07/07/2009 08:20 AM 0 dom4j-1.6-sources.jar-not-available > 07/07/2009 08:06 AM 313,359 dom4j-1.6.jar > 07/07/2009 08:06 AM 40 dom4j-1.6.jar.sha1 > 07/07/2009 08:06 AM 6,763 dom4j-1.6.pom > 07/07/2009 08:06 AM 130 dom4j-1.6.pom.sha1 > 5 File(s) 320,292 bytes > > Directory of C:\Documents and > Settings\chzhang\.m2\repository\dom4j\dom4j\1.6.1 > > 10/20/2008 10:27 AM 432,186 dom4j-1.6.1-sources.jar > 10/20/2008 10:27 AM 84 dom4j-1.6.1-sources.jar.sha1 > 10/20/2008 09:25 AM 313,898 dom4j-1.6.1.jar > 10/20/2008 09:25 AM 40 dom4j-1.6.1.jar.sha1 > 10/20/2008 09:24 AM 6,765 dom4j-1.6.1.pom > 10/20/2008 09:24 AM 134 dom4j-1.6.1.pom.sha1 > 6 File(s) 753,107 bytes > > Directory of C:\Documents and > Settings\chzhang\.m2\repository\org\apache\servicemix\bundles > > 07/07/2009 08:06 AM <DIR> org.apache.servicemix.bundles.dom4j > 0 File(s) 0 bytes > > Directory of C:\Documents and > > Settings\chzhang\.m2\repository\org\apache\servicemix\bundles\org.apache.servicemix.bundles.dom4j\1.6_2-SNAPSHOT > > 07/07/2009 08:06 AM 320,542 > org.apache.servicemix.bundles.dom4j-1.6_2-SNAPSHOT.jar > 07/07/2009 08:06 AM 2,843 > org.apache.servicemix.bundles.dom4j-1.6_2-SNAPSHOT.pom > 2 File(s) 323,385 bytes > > > In the hibernate directory, I can see > > > C:\Documents and Settings\chzhang\.m2\repository\org\hibernate>dir > Volume in drive C has no label. > Volume Serial Number is D051-6A60 > > Directory of C:\Documents and > Settings\chzhang\.m2\repository\org\hibernate > > 07/02/2009 10:33 PM <DIR> . > 07/02/2009 10:33 PM <DIR> .. > 07/02/2009 10:33 PM <DIR> ejb3-persistence > 10/20/2008 10:06 AM <DIR> hibernate > 07/02/2009 10:33 PM <DIR> hibernate-annotations > 07/02/2009 10:33 PM <DIR> hibernate-commons-annotations > 07/02/2009 10:18 PM <DIR> hibernate-core > 07/02/2009 10:33 PM <DIR> hibernate-entitymanager > 07/02/2009 10:18 PM <DIR> hibernate-parent > 07/02/2009 10:33 PM <DIR> hibernate-tools > 10/20/2008 10:06 AM <DIR> jtidy > > > > After I started servicemix.bat, it prints error msg in the console. > > > C:\grid-console\apache-servicemix-kernel-1.1.0\bin>servicemix.bat > ____ _ __ __ _ > / ___| ___ _ ____ _(_) ___ ___| \/ (_)_ __ > \___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ / > ___) | __/ | \ V /| | (_| __/ | | | |> < > |____/ \___|_| \_/ |_|\___\___|_| |_|_/_/\_\ > > ServiceMix Kernel (1.1.0) > > Type 'help' for more information. > > --------------------------------------------------------------------------------------------------------------------------------------------------------------- > smx@root:/> ERROR: Error starting > mvn:org.apache.camel.example/reportincident.web/1.0-SNAPSHOT/war > (org.osgi.framework.BundleException: Unresolved constraint in > bundle 114: package; (package=org.hibernate.classic)) > org.osgi.framework.BundleException: Unresolved constraint in bundle 114: > package; (package=org.hibernate.classic) > at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3059) > at org.apache.felix.framework.Felix.startBundle(Felix.java:1439) > at > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984) > at > org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263) > at java.lang.Thread.run(Thread.java:619) > > smx@root:/> osgi/list > START LEVEL 100 > ID State Spring Level Name > [ 0] [Active ] [ ] [ 0] System Bundle (1.5.0.r752991) > [ 1] [Active ] [ ] [ 10] Apache Felix Prefrences Service > (1.0.2) > [ 2] [Active ] [ ] [ 10] Apache ServiceMix Bundles: > jaxp-ri-1.4.2 (1.4.2.2) > [ 3] [Active ] [ ] [ 10] geronimo-annotation_1.0_spec (1.1.1) > [ 4] [Active ] [ ] [ 10] Apache ServiceMix Specs :: JAXP API > 1.4 (1.3.0) > [ 5] [Active ] [ ] [ 10] OSGi R4 Compendium Bundle (4.1.0) > [ 6] [Active ] [ ] [ 10] Apache Felix Configuration Admin > Service (1.0.4) > [ 7] [Active ] [ ] [ 10] geronimo-servlet_2.5_spec (1.1.2) > [ 8] [Active ] [Started] [ 40] Apache ServiceMix Kernel :: GShell > Core (1.1.0) > [ 9] [Active ] [ ] [ 8] OPS4J Pax Logging - API (1.3.0) > [ 10] [Active ] [ ] [ 8] OPS4J Pax Logging - Service (1.3.0) > [ 11] [Active ] [ ] [ 5] OPS4J Pax Url - wrap: (0.3.3) > [ 12] [Active ] [ ] [ 5] OPS4J Pax Url - mvn: (0.3.3) > [ 13] [Active ] [ ] [ 30] spring-osgi-io (1.2.0.m2) > [ 14] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: Spring > Deployer (1.1.0) > [ 15] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > mina-1.1.7 > (1.1.7.1) > [ 16] [Active ] [ ] [ 30] Spring Context (2.5.6) > [ 17] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: JAAS > Modules (1.1.0) > [ 18] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > commons-jexl-1.1 (1.1.0.1) > [ 19] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell > Features (1.1.0) > [ 20] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > commons-httpclient-3.1 (3.1.0.1) > [ 21] [Active ] [ ] [ 30] Spring Core (2.5.6) > [ 22] [Active ] [ ] [ 30] jmx-impl (1.0.0.r6125-patched) > [ 23] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell > ConfigAdmin Commands (1.1.0) > [ 24] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: JAAS > Config (1.1.0) > [ 25] [Active ] [ ] [ 30] jmx (1.0.0.r6125-patched) > [ 26] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > commons-vfs-1.0 (1.0.0.1) > [ 27] [Active ] [ ] [ 30] Spring Beans (2.5.6) > [ 28] [Active ] [ ] [ 30] Unnamed - > com.google.code.sshd:sshd:bundle:0.1 (0.1) > [ 29] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > commons-codec-1.2 (1.2.0.1) > [ 30] [Active ] [ ] [ 30] spring-osgi-extender (1.2.0.m2) > [ 31] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > cglib-2.1_3 (2.1.0.3_1) > [ 32] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > jline-0.9.94 (0.9.94.1) > [ 33] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > aopalliance-1.0 (1.0.0.1) > [ 34] [Active ] [ ] [ 30] Spring AOP (2.5.6) > [ 35] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell > PackageAdmin Commands (1.1.0) > [ 36] [Active ] [ ] [ 30] Apache ServiceMix Bundles: oro-2.0.8 > (2.0.8.1) > [ 37] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell > Log Commands (1.1.0) > [ 38] [Active ] [ ] [ 30] spring-osgi-core (1.2.0.m2) > [ 39] [Active ] [Started] [ 30] Apache ServiceMix Kernel :: GShell > OSGi Commands (1.1.0) > [ 40] [Active ] [Started] [ 30] Apache ServiceMix Kernel :: GShell > Admin (1.1.0) > [ 41] [Active ] [Started] [ 30] Apache ServiceMix Kernel :: > Management (1.1.0) > [ 42] [Active ] [ ] [ 15] Apache ServiceMix Kernel :: File > Monitor (1.1.0) > [ 43] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > jaxb-impl-2.1.6 (2.1.6.1) > [ 44] [Active ] [ ] [ 60] Apache ServiceMix Specs :: > ACTIVATION > API 1.4 (1.2.0) > [ 45] [Active ] [ ] [ 60] Apache ServiceMix Specs :: JAXB API > 2.1 (1.2.0) > [ 46] [Active ] [ ] [ 60] Commons Collections (3.2.1) > [ 47] [Active ] [ ] [ 60] Commons Lang (2.4) > [ 48] [Active ] [ ] [ 60] Apache Commons Pool Bundle (1.4) > [ 49] [Active ] [ ] [ 60] Apache ServiceMix Bundles: asm-2.2.3 > (2.2.3.1) > [ 50] [Active ] [ ] [ 60] geronimo-jta_1.1_spec (1.1.1) > [ 51] [Active ] [ ] [ 60] geronimo-j2ee-connector_1.5_spec > (2.0.0) > [ 52] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > howl-1.0.1-1 (1.0.1.1_1) > [ 53] [Active ] [ ] [ 60] Geronimo TxManager :: Transaction > (2.2.0.r634076) > [ 54] [Active ] [ ] [ 60] Spring Transaction (2.5.6) > [ 55] [Active ] [Started] [ 60] Apache ServiceMix Transaction > (1.0.0) > [ 56] [Active ] [ ] [ 60] Geronimo TxManager :: Connector > (2.2.0.r634076) > [ 57] [Active ] [ ] [ 60] geronimo-jms_1.1_spec (1.1.1) > [ 58] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > jencks-2.1 > (2.1.0.1) > [ 59] [Active ] [ ] [ 60] geronimo-j2ee-management_1.1_spec > (1.0.1) > [ 60] [Active ] [ ] [ 60] xbean-spring (3.4.3) > [ 61] [Active ] [ ] [ 60] activemq-core (5.2.0) > [ 62] [Active ] [ ] [ 60] activemq-ra (5.2.0) > [ 63] [Active ] [ ] [ 60] activemq-console (5.2.0) > [ 64] [Active ] [ ] [ 60] activemq-pool (5.2.0) > [ 65] [Active ] [Started] [ 60] Apache ServiceMix Features :: > ActiveMQ Commands (4.0.0) > [ 66] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > jetty-6.1.14 (6.1.14.1) > [ 67] [Active ] [ ] [ 60] OPS4J Pax Web - Web Container > (0.6.0) > [ 68] [Active ] [ ] [ 60] OPS4J Pax Web - Jsp Support (0.6.0) > [ 69] [Active ] [ ] [ 60] OPS4J Pax Web Extender - WAR (0.5.1) > [ 70] [Active ] [ ] [ 60] OPS4J Pax Web Extender - Whiteboard > (0.5.1) > [ 71] [Active ] [ ] [ 60] OPS4J Pax Url - war:, war-i: (0.4.0) > [ 72] [Active ] [Started] [ 60] Apache ServiceMix WAR Deployer > (4.0.0) > [ 73] [Resolved ] [ ] [ 60] Spring Web (2.5.6) > [ 74] [Active ] [ ] [ 60] Wicket (1.3.5) > [ 75] [Active ] [ ] [ 60] Wicket IoC common code (1.3.5) > [ 76] [Active ] [ ] [ 60] Wicket Spring Integration (1.3.5) > [ 77] [Active ] [ ] [ 60] Wicket Spring Integration through > Annotations (1.3.5) > [ 78] [Active ] [ ] [ 60] Wicket Extensions (1.3.5) > [ 79] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > FastInfoset-1.2.2 (1.2.2.1) > [ 80] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > xmlsec-1.3.0 (1.3.0.1) > [ 81] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > wss4j-1.5.4 (1.5.4.1) > [ 82] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > xmlbeans-2.4.0 (2.4.0.1) > [ 83] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > xmlresolver-1.2 (1.2.0.1) > [ 84] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > xmlschema-1.4.2 (1.4.2.1) > [ 85] [Active ] [ ] [ 60] Apache ServiceMix Bundles: ant-1.7.0 > (1.7.0.1) > [ 86] [Active ] [ ] [ 60] Apache ServiceMix Bundles: jdom-1.1 > (1.1.0.1) > [ 87] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > werken-xpath-0.9.4 (0.9.4.1) > [ 88] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > neethi-2.0.4 (2.0.4.1) > [ 89] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > abdera-0.4.0-incubating (0.4.0.incubating_1) > [ 90] [Active ] [ ] [ 60] Apache ServiceMix Bundles: junit-4.4 > (4.4.0.1) > [ 91] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > antlr-3.0.1 (3.0.1.1) > [ 92] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > commons-io-1.3.2 (1.3.2.1) > [ 93] [Active ] [ ] [ 60] Apache ServiceMix Specs :: JAVAMAIL > API 1.4 (1.2.0) > [ 94] [Active ] [ ] [ 60] Apache ServiceMix Specs :: JAXWS API > 2.1 (1.2.0) > [ 95] [Active ] [ ] [ 60] Apache ServiceMix Specs :: SAAJ API > 1.3 (1.2.0) > [ 96] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > wsdl4j-1.6.1 (1.6.1.1) > [ 97] [Active ] [ ] [ 60] geronimo-ws-metadata_2.0_spec > (1.1.2) > [ 98] [Active ] [ ] [ 60] Apache CXF Bundle Jar (2.2) > [ 99] [Active ] [Started] [ 60] Apache ServiceMix CXF Transport for > OSGi (4.0.0) > [ 100] [Active ] [ ] [ 60] camel-core (2.0.0.M1) > [ 101] [Active ] [ ] [ 60] camel-spring (2.0.0.M1) > [ 102] [Active ] [ ] [ 60] camel-osgi (2.0.0.M1) > [ 103] [Active ] [ ] [ 60] camel-bindy (2.0.0.M1) > [ 104] [Active ] [ ] [ 60] Spring JMS (2.5.6) > [ 105] [Active ] [ ] [ 60] camel-jms (2.0.0.M1) > [ 106] [Active ] [ ] [ 60] camel-cxf (2.0.0.M1) > [ 107] [Active ] [ ] [ 60] activemq-camel (5.2.0) > [ 108] [Resolved ] [ ] [ 60] Apache ServiceMix Bundles: > commons-dbcp-1.2.2 (1.2.2.3) > [ 109] [Resolved ] [ ] [ 60] Spring ORM (2.5.6) > [ 110] [Resolved ] [ ] [ 60] Spring JDBC (2.5.6) > [ 111] [Resolved ] [ ] [ 60] ActiveMQ Queuing engine > (1.0.0.SNAPSHOT) > [ 112] [Resolved ] [ ] [ 60] Camel Queuing Service > (1.0.0.SNAPSHOT) > [ 113] [Resolved ] [ ] [ 60] Report Incident Model Bundle > (1.0.0.SNAPSHOT) > [ 114] [Installed ] [ ] [ 60] Report Incident Persistence Bundle > (1.0.0.SNAPSHOT) > [ 115] [Installed ] [ ] [ 60] reportincident.service > (1.0.0.SNAPSHOT) > [ 116] [Installed ] [ ] [ 60] Report Incident Webservice Bundle > (1.0.0.SNAPSHOT) > [ 117] [Installed ] [ ] [ 60] Report Incident Routing Bundle > (1.0.0.SNAPSHOT) > [ 118] [Installed ] [ ] [ 60] Report Incident Web Bundle > (1.0.0.SNAPSHOT) > [ 119] [Resolved ] [ ] [ 60] Apache ServiceMix Bundles: dom4j-1.6 > (1.6.0.SNAPSHOT) > > > Bundle 73, 108-113 are still in Resolved state. > > I attached the new log file here > http://www.nabble.com/file/p24375817/servicemix-2.zip servicemix-2.zip . > Not > sure if it's useful information but in the log file I saw some exception > > > 08:23:57,000 | DEBUG | FelixStartLevel | Connection > | > .pax.url.mvn.internal.Connection 320 | Resolving metadata > 08:23:57,046 | TRACE | FelixStartLevel | Connection > | > .pax.url.mvn.internal.Connection 331 | Metadata found: > > [org/apache/camel/example/reportincident.features/1.0-SNAPSHOT/maven-metadata-local.xml] > 08:23:57,062 | TRACE | FelixStartLevel | Connection > | > .pax.url.mvn.internal.Connection 171 | Possible download locations for > [mvn:org.apache.camel.example/reportincident.features/1.0-SNAPSHOT] > 08:23:57,062 | TRACE | FelixStartLevel | Connection > | > .pax.url.mvn.internal.Connection 174 | Version [1.0-20090704.161351-0] > from URL > > [file:/C:/Documents%20and%20Settings/chzhang/.m2/repository/org/apache/camel/example/reportincident.features/1.0-SNAPSHOT/reportincident.features-1.0-SNAPSHOT.jar] > 08:23:57,062 | TRACE | FelixStartLevel | Connection > | > .pax.url.mvn.internal.Connection 179 | Downloading [Version > [1.0-20090704.161351-0] from URL > > [file:/C:/Documents%20and%20Settings/chzhang/.m2/repository/org/apache/camel/example/reportincident.features/1.0-SNAPSHOT/reportincident.features-1.0-SNAPSHOT.jar]] > 08:23:57,109 | ERROR | FelixStartLevel | FeaturesServiceImpl > | > res.internal.FeaturesServiceImpl 451 | Error loading FeaturesService state > java.lang.NumberFormatException: For input string: "" > at > > java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) > at java.lang.Long.parseLong(Long.java:424) > at java.lang.Long.parseLong(Long.java:461) > at > > org.apache.servicemix.kernel.gshell.features.internal.FeaturesServiceImpl.readValue(FeaturesServiceImpl.java:507) > at > > org.apache.servicemix.kernel.gshell.features.internal.FeaturesServiceImpl.loadMap(FeaturesServiceImpl.java:487) > at > > org.apache.servicemix.kernel.gshell.features.internal.FeaturesServiceImpl.loadState(FeaturesServiceImpl.java:443) > at > > org.apache.servicemix.kernel.gshell.features.internal.FeaturesServiceImpl.start(FeaturesServiceImpl.java:363) > 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.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) > at java.security.AccessController.doPrivileged(Native Method) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) > at > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) > at > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) > at > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) > at java.security.AccessController.doPrivileged(Native Method) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) > at > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) > at > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) > at > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) > at java.security.AccessController.doPrivileged(Native Method) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) > at > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) > at > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) > at > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) > at > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287) > at > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126) > at > > org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:479) > at > > org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:162) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) > at java.security.AccessController.doPrivileged(Native Method) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) > at > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219) > at > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) > at java.security.AccessController.doPrivileged(Native Method) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) > at > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219) > at > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) > at > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287) > at > > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) > at java.security.AccessController.doPrivileged(Native Method) > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) > at > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) > at > > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) > at > > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:68) > at > > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:343) > at > > org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) > at > > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:308) > at > > org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:138) > at > > org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49) > at > > org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageTwo(DependencyWaiterApplicationContextExecutor.java:304) > at > > org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:246) > at > > org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:168) > at > > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:179) > at > > org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:759) > at > > org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49) > at > > org.springframework.osgi.extender.internal.activator.ContextLoaderListener.maybeCreateApplicationContextFor(ContextLoaderListener.java:806) > at > > org.springframework.osgi.extender.internal.activator.ContextLoaderListener.start(ContextLoaderListener.java:415) > at > > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589) > at org.apache.felix.framework.Felix.startBundle(Felix.java:1458) > at > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984) > at > org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263) > at java.lang.Thread.run(Thread.java:619) > > > Thanks a lot, > > Kevin > > > cmoulliard wrote: > > > > Hi, > > > > I see in the log that some important bundles have not been installed : > > > > 1) Hibernate is not installed > > > > 09:21:20,016 | ERROR | Thread-5 | FeaturesServiceImpl > > | > > s.internal.FeaturesServiceImpl$1 380 | Error installing boot feature > > reportincident > > org.osgi.framework.BundleException: Unresolved constraint in bundle 114: > > package; (package=org.hibernate.classic) > > > > 2) Idem for MySQL > > > > 09:21:19,313 | ERROR | Thread-5 | FeaturesServiceImpl > > | > > s.internal.FeaturesServiceImpl$1 380 | Error installing boot feature > > jdbc-driver > > java.lang.RuntimeException: URL > > [mvn:com.mysql.jdbc/com.springsource.com.mysql.jdbc/5.1.6] could not be > > resolved. (enable TRACE logging for details) > > at > > > org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:193) > > at java.net.URL.openStream(URL.java:1009) > > > > 3) Dom4j > > > > 09:21:19,673 | ERROR | Thread-5 | FeaturesServiceImpl > > | > > s.internal.FeaturesServiceImpl$1 380 | Error installing boot feature > > hibernate > > java.lang.RuntimeException: URL > > > [mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6_2-SNAPSHOT] > > could not be resolved. (enable TRACE logging for details) > > at > > > org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:193) > > at java.net.URL.openStream(URL.java:1009) > > at org.apache.servicemix.kernel.gshell.features.internal.Feat > > > > This is strange because I don't see this bundle on apache maven repo > > > > This bundle can be recreated locally if you have a copy of the following > > project : > > > > http://svn.apache.org/repos/asf/servicemix/smx4/bundles/trunk/dom4j-1.6 > > > > Can you review this ? > > > > Regards, > > > > Charles Moulliard > > Senior Enterprise Architect > > Apache Camel Committer > > > > ***************************** > > blog : http://cmoulliard.blogspot.com > > > > > > On Tue, Jul 7, 2009 at 4:08 PM, Kevin.Zhang > > <zhangyongjiang@...>wrote: > > > >> > >> Hi Charles, > >> > >> I just uploaded the log file. Please take a look and let me know if you > >> need > >> more information. > >> > >> Thanks a lot, > >> Kevin > >> > >> http://www.nabble.com/file/p24373875/servicemix.log.zip > >> servicemix.log.zip > >> > >> > >> cmoulliard wrote: > >> > > >> > Hi Kevin, > >> > > >> > I don't see any bundles concerning MySQL or Hibernate. > >> > > >> > Can you send me what you have in the log for the last bundles 108 - > 113 > >> ? > >> > I > >> > see that some of them are in status "Resolved". So information of the > >> log > >> > will help us > >> > > >> > [ 108] [Resolved ] [ ] [ 60] Apache ServiceMix Bundles: > >> > commons-dbcp-1.2.2 (1.2.2.3) > >> > [ 109] [Resolved ] [ ] [ 60] Spring ORM (2.5.6) > >> > [ 110] [Resolved ] [ ] [ 60] Spring JDBC (2.5.6) > >> > [ 111] [Resolved ] [ ] [ 60] ActiveMQ Queuing engine > >> > (1.0.0.SNAPSHOT) > >> > [ 112] [Resolved ] [ ] [ 60] Camel Queuing Service > >> > (1.0.0.SNAPSHOT) > >> > [ 113] [Resolved ] [ ] [ 60] Report Incident Model Bundle > >> > > >> > Regards, > >> > > >> > > >> > Charles Moulliard > >> > Senior Enterprise Architect > >> > Apache Camel Committer > >> > > >> > ***************************** > >> > blog : http://cmoulliard.blogspot.com > >> > > >> > > >> > On Mon, Jul 6, 2009 at 6:25 PM, Kevin.Zhang > >> > <zhangyongjiang@...>wrote: > >> > > >> >> > >> >> Hi Charles, > >> >> > >> >> Below please find the list of bundles installed: > >> >> > >> >> smx@root:/> osgi/list > >> >> START LEVEL 100 > >> >> ID State Spring Level Name > >> >> [ 0] [Active ] [ ] [ 0] System Bundle (1.5.0.r752991) > >> >> [ 1] [Active ] [ ] [ 10] Apache Felix Prefrences > Service > >> > ........................ > >> >> > >> >> > >> > > >> > > >> > ----- > >> > Charles Moulliard > >> > SOA Architect > >> > > >> > My Blog : http://cmoulliard.blogspot.com/ > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Have-anybody-here-tried-the-tutorial-osgi-camel-part2--tp24327596p24373875.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://www.nabble.com/Have-anybody-here-tried-the-tutorial-osgi-camel-part2--tp24327596p24375817.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > |
|
|
Re: Have anybody here tried the tutorial-osgi-camel-part2?Hi Charles,
I installed mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6_2-SNAPSHOT. After that I restarted servicemix. But I still have the same problem. Command osgi/list can show the new installed dom4j. [ 119] [Active ] [ ] [ 60] Apache ServiceMix Bundles: dom4j-1.6 (1.6.0.SNAPSHOT) The features list command shows: [uninstalled] [ 0.0.0] hibernate [uninstalled] [ 0.0.0] camel-velocity [installed ] [ 0.0.0] web-core [installed ] [ 2.2] cxf [installed ] [ 0.0.0] common [installed ] [ 0.0.0] transaction [installed ] [ 0.0.0] camel-activemq [installed ] [ 0.0.0] web [uninstalled] [ 1.0] reportincident [uninstalled] [ 0.0.0] camel-mail [installed ] [ 0.0.0] cxf-osgi [uninstalled] [ 0.0.0] spring-web [installed ] [ 0.0.0] camel-spring [installed ] [ 2.0-M1] camel [installed ] [ 0.0.0] camel-core [installed ] [ 0.0.0] camel-bindy [installed ] [ 5.2.0] activemq [installed ] [ 0.0.0] connector [installed ] [ 0.0.0] camel-osgi [installed ] [ 0.0.0] wicket [uninstalled] [ 0.0.0] jdbc-driver [installed ] [ 0.0.0] camel-jms [installed ] [ 0.0.0] camel-cxf I tried to use features installed command "install hibernate". It gave me error: smx@root:features> install hibernate ERROR CommandLineExecutionFailed: org.apache.geronimo.gshell.command.CommandException: java.lang.RuntimeException: URL [mvn:org.antlr/com.springsource.antlr/2.7 .7] could not be resolved. (enable TRACE logging for details) I'm using windows. Charles, what's your dev environment? Thanks a lot, Kevin
|
|
|
Re: Have anybody here tried the tutorial-osgi-camel-part2?Error appears in your copy/paste
mvn:org.antlr/com.springsource.antlr/2.7 .7 You can't install a required bundle of Hibernate wich is antlr. I work on Windows XP Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com On Wed, Jul 8, 2009 at 5:47 PM, Kevin.Zhang <zhangyongjiang@...>wrote: > > Hi Charles, > > I installed > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6_2-SNAPSHOT. > After that I restarted servicemix. But I still have the same problem. > > Command osgi/list can show the new installed dom4j. > > [ 119] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > dom4j-1.6 (1.6.0.SNAPSHOT) > > The features list command shows: > > [uninstalled] [ 0.0.0] hibernate > [uninstalled] [ 0.0.0] camel-velocity > [installed ] [ 0.0.0] web-core > [installed ] [ 2.2] cxf > [installed ] [ 0.0.0] common > [installed ] [ 0.0.0] transaction > [installed ] [ 0.0.0] camel-activemq > [installed ] [ 0.0.0] web > [uninstalled] [ 1.0] reportincident > [uninstalled] [ 0.0.0] camel-mail > [installed ] [ 0.0.0] cxf-osgi > [uninstalled] [ 0.0.0] spring-web > [installed ] [ 0.0.0] camel-spring > [installed ] [ 2.0-M1] camel > [installed ] [ 0.0.0] camel-core > [installed ] [ 0.0.0] camel-bindy > [installed ] [ 5.2.0] activemq > [installed ] [ 0.0.0] connector > [installed ] [ 0.0.0] camel-osgi > [installed ] [ 0.0.0] wicket > [uninstalled] [ 0.0.0] jdbc-driver > [installed ] [ 0.0.0] camel-jms > [installed ] [ 0.0.0] camel-cxf > > I tried to use features installed command "install hibernate". It gave me > error: > > > smx@root:features> install hibernate > ERROR CommandLineExecutionFailed: > org.apache.geronimo.gshell.command.CommandException: > java.lang.RuntimeException: URL [mvn:org.antlr/com.springsource.antlr/2.7 > .7] could not be resolved. (enable TRACE logging for details) > > > I'm using windows. Charles, what's your dev environment? > > Thanks a lot, > Kevin > > > cmoulliard wrote: > > > > Hi Kevin, > > > > Can you check if you can install manually dom4j jar : > > > > Here is the command to be used in osgi > > > > install - s > > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6_2-SNAPSHOT > > > > If this command does not work, check in the following file > > etc/org.ops4j.pax.url.mvn.cfg that you point to your settings.xml file > > configured for your local maven repository : > > > > org.ops4j.pax.url.mvn.settings=C:/Documents and > > Settings/chzhang/.m2/settings.xml > > > > next try to reinstall or use features command > > > > Regards, > > > > Charles Moulliard > > Senior Enterprise Architect > > Apache Camel Committer > > > > ***************************** > > blog : http://cmoulliard.blogspot.com > > > > > > -- > View this message in context: > http://www.nabble.com/Have-anybody-here-tried-the-tutorial-osgi-camel-part2--tp24327596p24393218.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > |
|
|
Re: Have anybody here tried the tutorial-osgi-camel-part2?Still cannot make it work. I might have to give up. If anybody can make it work, please let me know.
Charles, thank you so much for your help. If you have time, I would suggest you to retest it on a clean machine which has no mvn, servicemix and other modules installed. This tutorial is a great tutorial and I wish people could be benefited from it. -Kevin
|
|
|
Re: Have anybody here tried the tutorial-osgi-camel-part2?Hi Kevin,
I have done a full installation and everything works fine. I have done some modifications (see remarks here after) 1) I have slightly modified the pom files to facilitate the maven build. Please have a look on the web site - wiki page of my tutorial 2) The features to be installed have been modified for Camel 2.0-M1 --> 2.0-M2 and Spring OSGI because the release used by SMX4 1.1. is 1.2.0-m2 3) Startup.property file must be modified to use the cglib version 2.1_3_2: org/apache/servicemix/bundles/org.apache.servicemix.bundles.cglib/2.1_3_2-SNAPSHOT/org.apache.servicemix.bundles.cglib-2.1_3_2-SNAPSHOT.jar=30 YOU HAVE ALSO TO COPY THE JAR INTO system folder Otherwise, I can zip the server and send it to you configured. I know this is difficult to install all the stuffs the first time and particularly in the current context because the project Apache ServiceMix kernel has moved to Apache Felix Karaf and no official build is available for the moment. You have to build it. Regards, Regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com On Thu, Jul 9, 2009 at 9:07 AM, Kevin.Zhang <zhangyongjiang@...>wrote: > > Still cannot make it work. I might have to give up. If anybody can make it > work, please let me know. > > Charles, thank you so much for your help. If you have time, I would suggest > you to retest it on a clean machine which has no mvn, servicemix and other > modules installed. This tutorial is a great tutorial and I wish people > could > be benefited from it. > > -Kevin > > > cmoulliard wrote: > > > > Error appears in your copy/paste > > > > mvn:org.antlr/com.springsource.antlr/2.7 > > .7 > > > > You can't install a required bundle of Hibernate wich is antlr. > > > > I work on Windows XP > > > > Charles Moulliard > > Senior Enterprise Architect > > Apache Camel Committer > > > > ***************************** > > blog : http://cmoulliard.blogspot.com > > > > > > On Wed, Jul 8, 2009 at 5:47 PM, Kevin.Zhang > > <zhangyongjiang@...>wrote: > > > >> > >> Hi Charles, > >> > >> I installed > >> > >> > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6_2-SNAPSHOT. > >> After that I restarted servicemix. But I still have the same problem. > >> > >> Command osgi/list can show the new installed dom4j. > >> > >> [ 119] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > >> dom4j-1.6 (1.6.0.SNAPSHOT) > >> > >> The features list command shows: > >> > >> [uninstalled] [ 0.0.0] hibernate > >> [uninstalled] [ 0.0.0] camel-velocity > >> [installed ] [ 0.0.0] web-core > >> [installed ] [ 2.2] cxf > >> [installed ] [ 0.0.0] common > >> [installed ] [ 0.0.0] transaction > >> [installed ] [ 0.0.0] camel-activemq > >> [installed ] [ 0.0.0] web > >> [uninstalled] [ 1.0] reportincident > >> [uninstalled] [ 0.0.0] camel-mail > >> [installed ] [ 0.0.0] cxf-osgi > >> [uninstalled] [ 0.0.0] spring-web > >> [installed ] [ 0.0.0] camel-spring > >> [installed ] [ 2.0-M1] camel > >> [installed ] [ 0.0.0] camel-core > >> [installed ] [ 0.0.0] camel-bindy > >> [installed ] [ 5.2.0] activemq > >> [installed ] [ 0.0.0] connector > >> [installed ] [ 0.0.0] camel-osgi > >> [installed ] [ 0.0.0] wicket > >> [uninstalled] [ 0.0.0] jdbc-driver > >> [installed ] [ 0.0.0] camel-jms > >> [installed ] [ 0.0.0] camel-cxf > >> > >> I tried to use features installed command "install hibernate". It gave > me > >> error: > >> > >> > >> smx@root:features> install hibernate > >> ERROR CommandLineExecutionFailed: > >> org.apache.geronimo.gshell.command.CommandException: > >> java.lang.RuntimeException: URL > [mvn:org.antlr/com.springsource.antlr/2.7 > >> .7] could not be resolved. (enable TRACE logging for details) > >> > >> > >> I'm using windows. Charles, what's your dev environment? > >> > >> Thanks a lot, > >> Kevin > >> > >> > >> cmoulliard wrote: > >> > > >> > Hi Kevin, > >> > > >> > Can you check if you can install manually dom4j jar : > >> > > >> > Here is the command to be used in osgi > >> > > >> > install - s > >> > > >> > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6_2-SNAPSHOT > >> > > >> > If this command does not work, check in the following file > >> > etc/org.ops4j.pax.url.mvn.cfg that you point to your settings.xml > file > >> > configured for your local maven repository : > >> > > >> > org.ops4j.pax.url.mvn.settings=C:/Documents and > >> > Settings/chzhang/.m2/settings.xml > >> > > >> > next try to reinstall or use features command > >> > > >> > Regards, > >> > > >> > Charles Moulliard > >> > Senior Enterprise Architect > >> > Apache Camel Committer > >> > > >> > ***************************** > >> > blog : http://cmoulliard.blogspot.com > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Have-anybody-here-tried-the-tutorial-osgi-camel-part2--tp24327596p24393218.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://www.nabble.com/Have-anybody-here-tried-the-tutorial-osgi-camel-part2--tp24327596p24405219.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > |
|
|
Re: Have anybody here tried the tutorial-osgi-camel-part2?Hi Charles,
Could you please update the tutorial-osgi-camel-part2.zip in the tutorial page to reflect your latest changes? Please also send me the server zip so that I can have a good start point. Best, Kevin
|
|
|
Re: Have anybody here tried the tutorial-osgi-camel-part2?Hi Kevin,
I have already updated the code of the tutorial on the wiki page. How can I send to you a zip of 57 Mb ? Regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com On Fri, Jul 10, 2009 at 5:32 PM, Kevin.Zhang <zhangyongjiang@...>wrote: > > Hi Charles, > > Could you please update the tutorial-osgi-camel-part2.zip in the tutorial > page to reflect your latest changes? Please also send me the server zip so > that I can have a good start point. > > Best, > Kevin > > > > cmoulliard wrote: > > > > Hi Kevin, > > > > I have done a full installation and everything works fine. I have done > > some > > modifications (see remarks here after) > > > > 1) I have slightly modified the pom files to facilitate the maven build. > > Please have a look on the web site - wiki page of my tutorial > > 2) The features to be installed have been modified for Camel 2.0-M1 --> > > 2.0-M2 and Spring OSGI because the release used by SMX4 1.1. is 1.2.0-m2 > > 3) Startup.property file must be modified to use the cglib version > > 2.1_3_2: > > > org/apache/servicemix/bundles/org.apache.servicemix.bundles.cglib/2.1_3_2-SNAPSHOT/org.apache.servicemix.bundles.cglib-2.1_3_2-SNAPSHOT.jar=30 > > YOU HAVE ALSO TO COPY THE JAR INTO system folder > > > > Otherwise, I can zip the server and send it to you configured. I know > this > > is difficult to install all the stuffs the first time and particularly in > > the current context because the project Apache ServiceMix kernel has > moved > > to Apache Felix Karaf and no official build is available for the moment. > > You > > have to build it. > > > > Regards, > > > > Regards, > > > > Charles Moulliard > > Senior Enterprise Architect > > Apache Camel Committer > > > > ***************************** > > blog : http://cmoulliard.blogspot.com > > > > > > On Thu, Jul 9, 2009 at 9:07 AM, Kevin.Zhang > > <zhangyongjiang@...>wrote: > > > >> > >> Still cannot make it work. I might have to give up. If anybody can make > >> it > >> work, please let me know. > >> > >> Charles, thank you so much for your help. If you have time, I would > >> suggest > >> you to retest it on a clean machine which has no mvn, servicemix and > >> other > >> modules installed. This tutorial is a great tutorial and I wish people > >> could > >> be benefited from it. > >> > >> -Kevin > >> > >> > >> cmoulliard wrote: > >> > > >> > Error appears in your copy/paste > >> > > >> > mvn:org.antlr/com.springsource.antlr/2.7 > >> > .7 > >> > > >> > You can't install a required bundle of Hibernate wich is antlr. > >> > > >> > I work on Windows XP > >> > > >> > Charles Moulliard > >> > Senior Enterprise Architect > >> > Apache Camel Committer > >> > > >> > ***************************** > >> > blog : http://cmoulliard.blogspot.com > >> > > >> > > >> > On Wed, Jul 8, 2009 at 5:47 PM, Kevin.Zhang > >> > <zhangyongjiang@...>wrote: > >> > > >> >> > >> >> Hi Charles, > >> >> > >> >> I installed > >> >> > >> >> > >> > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6_2-SNAPSHOT. > >> >> After that I restarted servicemix. But I still have the same problem. > >> >> > >> >> Command osgi/list can show the new installed dom4j. > >> >> > >> >> [ 119] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > >> >> dom4j-1.6 (1.6.0.SNAPSHOT) > >> >> > >> >> The features list command shows: > >> >> > >> >> [uninstalled] [ 0.0.0] hibernate > >> >> [uninstalled] [ 0.0.0] camel-velocity > >> >> [installed ] [ 0.0.0] web-core > >> >> [installed ] [ 2.2] cxf > >> >> [installed ] [ 0.0.0] common > >> >> [installed ] [ 0.0.0] transaction > >> >> [installed ] [ 0.0.0] camel-activemq > >> >> [installed ] [ 0.0.0] web > >> >> [uninstalled] [ 1.0] reportincident > >> >> [uninstalled] [ 0.0.0] camel-mail > >> >> [installed ] [ 0.0.0] cxf-osgi > >> >> [uninstalled] [ 0.0.0] spring-web > >> >> [installed ] [ 0.0.0] camel-spring > >> >> [installed ] [ 2.0-M1] camel > >> >> [installed ] [ 0.0.0] camel-core > >> >> [installed ] [ 0.0.0] camel-bindy > >> >> [installed ] [ 5.2.0] activemq > >> >> [installed ] [ 0.0.0] connector > >> >> [installed ] [ 0.0.0] camel-osgi > >> >> [installed ] [ 0.0.0] wicket > >> >> [uninstalled] [ 0.0.0] jdbc-driver > >> >> [installed ] [ 0.0.0] camel-jms > >> >> [installed ] [ 0.0.0] camel-cxf > >> >> > >> >> I tried to use features installed command "install hibernate". It > gave > >> me > >> >> error: > >> >> > >> >> > >> >> smx@root:features> install hibernate > >> >> ERROR CommandLineExecutionFailed: > >> >> org.apache.geronimo.gshell.command.CommandException: > >> >> java.lang.RuntimeException: URL > >> [mvn:org.antlr/com.springsource.antlr/2.7 > >> >> .7] could not be resolved. (enable TRACE logging for details) > >> >> > >> >> > >> >> I'm using windows. Charles, what's your dev environment? > >> >> > >> >> Thanks a lot, > >> >> Kevin > >> >> > >> >> > >> >> cmoulliard wrote: > >> >> > > >> >> > Hi Kevin, > >> >> > > >> >> > Can you check if you can install manually dom4j jar : > >> >> > > >> >> > Here is the command to be used in osgi > >> >> > > >> >> > install - s > >> >> > > >> >> > >> > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6_2-SNAPSHOT > >> >> > > >> >> > If this command does not work, check in the following file > >> >> > etc/org.ops4j.pax.url.mvn.cfg that you point to your settings.xml > >> file > >> >> > configured for your local maven repository : > >> >> > > >> >> > org.ops4j.pax.url.mvn.settings=C:/Documents and > >> >> > Settings/chzhang/.m2/settings.xml > >> >> > > >> >> > next try to reinstall or use features command > >> >> > > >> >> > Regards, > >> >> > > >> >> > Charles Moulliard > >> >> > Senior Enterprise Architect > >> >> > Apache Camel Committer > >> >> > > >> >> > ***************************** > >> >> > blog : http://cmoulliard.blogspot.com > >> >> > > >> >> > > >> >> > >> >> -- > >> >> View this message in context: > >> >> > >> > http://www.nabble.com/Have-anybody-here-tried-the-tutorial-osgi-camel-part2--tp24327596p24393218.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://www.nabble.com/Have-anybody-here-tried-the-tutorial-osgi-camel-part2--tp24327596p24405219.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://www.nabble.com/Have-anybody-here-tried-the-tutorial-osgi-camel-part2--tp24327596p24429749.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > |
|
|
Re: Have anybody here tried the tutorial-osgi-camel-part2?Charles,
The zip file tutorial-osgi-camel-part2.zip in page http://camel.apache.org/tutorial-osgi-camel-part2.html still shows that it's created in May 04, 2009. Please let me know if it's the right file to download. For the big zip file, could you please upload it to http://www.sendspace.com/ and put my email address zhangyongjiang at yahoo dot com as the recipient? By the way, you mentioned that currently servicemix kernel has no official build and I have to build it by myself. Actually I did not build it by myself. I download it from http://servicemix.apache.org/kernel/karaf-download.html. Should I build it by myself? Thanks a lot, Kevin
|
|
|
Re: Have anybody here tried the tutorial-osgi-camel-part2?Hi Kevin
The zip file tutorial-osgi-camel-part2.zip in page http://camel.apache.org/tutorial-osgi-camel-part2.html still shows that it's created in May 04, 2009. Please let me know if it's the right file to download. >> I will check next monday why the zip has not been published from cwiki to camel web site By the way, you mentioned that currently servicemix kernel has no official build and I have to build it by myself. Actually I did not build it by myself. I download it from http://servicemix.apache.org/kernel/karaf-download.html. Should I build it by myself? >> The official release of Apache Felix Karaf is planned for end of Augustus this year. don't use it for the moment because the jars used by it are a bit different from Apache ServiceMix Kernel. I will try to deploy newt week in a build of Karaf and provide a feature file modified the zip is in myspace website : http://www.sendspace.com/file/lyml1v Regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com On Fri, Jul 10, 2009 at 5:51 PM, Kevin.Zhang <zhangyongjiang@...>wrote: > > Charles, > > The zip file tutorial-osgi-camel-part2.zip in page > http://camel.apache.org/tutorial-osgi-camel-part2.html still shows that > it's > created in May 04, 2009. Please let me know if it's the right file to > download. > > For the big zip file, could you please upload it to > http://www.sendspace.com/ and put my email address zhangyongjiang at yahoo > dot com as the recipient? > > By the way, you mentioned that currently servicemix kernel has no official > build and I have to build it by myself. Actually I did not build it by > myself. I download it from > http://servicemix.apache.org/kernel/karaf-download.html. Should I build it > by myself? > > Thanks a lot, > Kevin > > > cmoulliard wrote: > > > > Hi Kevin, > > > > I have already updated the code of the tutorial on the wiki page. How can > > I > > send to you a zip of 57 Mb ? > > > > Regards, > > > > Charles Moulliard > > Senior Enterprise Architect > > Apache Camel Committer > > > > ***************************** > > blog : http://cmoulliard.blogspot.com > > > > > > On Fri, Jul 10, 2009 at 5:32 PM, Kevin.Zhang > > <zhangyongjiang@...>wrote: > > > >> > >> Hi Charles, > >> > >> Could you please update the tutorial-osgi-camel-part2.zip in the > tutorial > >> page to reflect your latest changes? Please also send me the server zip > >> so > >> that I can have a good start point. > >> > >> Best, > >> Kevin > >> > >> > >> > > > > -- > View this message in context: > http://www.nabble.com/Have-anybody-here-tried-the-tutorial-osgi-camel-part2--tp24327596p24430068.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > |
| Free embeddable forum powered by Nabble | Forum Help |