9 Replies Latest reply on May 11, 2016 10:07 AM by rhn-support-shsingh

    Bundle Deplyment error

    mitul.sanghani

      Hi There,

       

      I am getting error while deploying bundle containing sql component. see following error. I really Appreciate any help on this, I have already searched a lot some post are saying there is Version problem but version of the both the jars are same even i check with command 'feature:list' in studio cell for version of all the features and supporting versions,

       

      Unable to start bundle file:D:/jobss_worksoace/ProjectName/target/ProjectName-1.0.jar: Unresolved constraint in bundle ProjectName[300]: Unable to resolve 300.0: missing requirement [300.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.camel.component.sql)(version>=2.15.0)(!(version>=3.0.0)))

       

      Thanks in advance.

        • 1. Re: Bundle Deplyment error
          rhn-support-shsingh

          can you check if the camel-sql bundle is installed and started.  Verify the exports version by below command.

          ~~~

          exports |grep org.apache.camel.component.sql

          ~~~

          • 2. Re: Bundle Deplyment error
            mitul.sanghani

            Thanks for the reply Shailendra..

             

            I have executed command you gave it shows version=2.15.1.redhat-621084, version is ok all the camel jars having that version only.

             

            We have Camel-sql.jar is installed while we check from "features:list" and it show status = Installed instead of active it that make any problem, while other installed components are showing active.

            • 3. Re: Bundle Deplyment error
              rhn-support-shsingh

              Can you start the bundle by using "osgi:start <bundle_id>" and see if it helps.

              • 4. Re: Bundle Deplyment error
                mitul.sanghani

                Thanks for quick reply.

                Tried with start comment as you mentioned now error get changed see following

                 

                Error executing command: Error starting bundles:

                        Unable to start bundle 401: Unresolved constraint in bundle org.apache.camel.camel-sql [401]: Unable to resolve 401.0: missing requirement [401.0] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.jdbc.core)(version>=3.2.0)(!(version>=5.0.0)))

                 

                I have already deployed and started spring-jdbc(version 4.0.0) on server, any idea is there any dependent jar missing or something .?

                • 5. Re: Bundle Deplyment error
                  rhn-support-shsingh

                  Can you verify the version ,bundle id of spring-jdbc and its state by running the below command.

                  ~~~~

                  exports |grep org.springframework.jdbc.core

                  ~~~~

                  Version ship with JBoss Fuse 6.2.1 is "3.2.12.RELEASE"

                   

                  You can install the "features:install spring-jdbc"

                  • 6. Re: Bundle Deplyment error
                    mitul.sanghani

                    Result of exports |grep org.springframework.jdbc.core shows

                     

                       375 org.springframework.jdbc.core; version=0.0.0

                       375 org.springframework.jdbc.core.metadata; version=0.0.0

                       375 org.springframework.jdbc.core.namedparam; version=0.0.0

                       375 org.springframework.jdbc.core.simple; version=0.0.0

                       375 org.springframework.jdbc.core.support; version=0.0.0

                     

                    from where it takes 0.0.0 no idea,i have deployed spring-jdbc-4.0.0

                    • 7. Re: Bundle Deplyment error
                      rhn-support-shsingh

                      Install the feature spring-jdbc - "features:install spring-jdbc"

                      • 8. Re: Bundle Deplyment error
                        mitul.sanghani

                        Did the following modification to install spring-jdbc ita installed but still facing same issue while starting it.

                         

                        fabric:profile-edit --feature spring-jdbc default

                        Adding feature:spring-jdbc to profile:default version:1.0

                        Error executing command: Error starting bundles:

                                Unable to start bundle 407: Unresolved constraint in bundle org.apache.camel.camel-sql [407]: Unable to resolve 407.0: missing requirement [407.0] osgi.wiring.package; (&(osgi.wiring.package=org.springframework.jdbc.core)(version>=3.2.0)(!(version>=5.0.0)))

                        • 9. Re: Bundle Deplyment error
                          rhn-support-shsingh

                          can u verify the installed spring-jdbc version and its status. Have you removed the spring-jdbc-4.0.0 ? restart the container  and then reverify