2 Replies Latest reply on Feb 7, 2014 8:06 AM by Rajit Singh

    org.osgi.framework.BundleException: Unresolved constraint in bundle

    Rajit Singh Newbie

      Hi,

      I am getting below error during the install of my bundle, which is using JPA from the jdbc dirver sqljdbc4-3.0.jar

       

      org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.camel.camel-cxf-proxy [61]: Unable to resolve 61.1: missing requirement [61.1] osgi.wiring.package; (&(osgi.wiring.package=javax.persistence)(version>=1.1.0)(!(version>=3.0.0)))

       

      During search for finding the resolution i came to know that by installing the jdbc driver, it may solve the issue. i tried to install below jdbc driver

      osgi:install -s mvn:org.springframework/spring-jdbc/3.0.7.RELEASE

       

      It is installing this jdbc driver but i am not able to see the message like this in the fuseesb.log file

      133 Active [ ] [ ] 60 sqljdbc4 (4.0)

      134 Active [ ] [ ] 60 Spring JDBC (3.0.5.RELEASE)

       

      Any help on this.

       

      Thanks

      Rajit

        • 1. Re: org.osgi.framework.BundleException: Unresolved constraint in bundle
          Claus Ibsen Master

          What version of JBoss Fuse are you using?

           

          You need to install jpa which you can do with

           

          features:install jpa

          • 2. Re: Re: org.osgi.framework.BundleException: Unresolved constraint in bundle
            Rajit Singh Newbie

            Thanks Clause. But now i am getting below problem

            18:32:46,849 | ERROR | ExtenderThread-1 | ContextLoaderListener            | 113 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=org.apache.camel.camel-cxf-proxy, config=osgibundle:/META-INF/spring/*.xml)) org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:META-INF/cxf/cxf.xml] Offending resource: URL [bundle://250.0:0/META-INF/spring/camel-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=250|bnd.sym=org.apache.camel.camel-cxf-proxy]; nested exception is java.io.FileNotFoundException: OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=250|bnd.sym=org.apache.camel.camel-cxf-proxy] cannot be resolved to URL because it does not exist