see that some of them are in status "Resolved". So information of the log
>
> 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.
>
>