1 2 Previous Next 18 Replies Latest reply on Aug 2, 2013 3:43 PM by Lalit Manchanda

    Jboss Fuse - Fab resolver failing (at bundle install)

    Lalit Manchanda Newbie

      Hi,

       

      I am using jboss-fuse 6-24, I use fab to install the package, while installing one of the package using -

       

       

      install fab:mvn:manchanda.lalit/TestJpa/0.1

       

       

      I get the following warning in logs, though the pom (xml-apis-1.3.04.pom) for the jar (xml-apis-1.3.04.jar) does exist at the location mentioned.

       

       

      21:09:03,464 | INFO  | l Console Thread | FabConnection                    | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Packages not yet shared: [javax.xml.parsers, javax.xml.transform.dom, org.w3c.dom.traversal, javax.xml.datatype, org.xml.sax, javax.xml.namespace, javax.xml.xpath, org.w3c.dom.ls, org.xml.sax.ext, javax.xml.transform, javax.xml.transform.stream, javax.xml.validation, javax.xml.transform.sax, org.xml.sax.helpers]^M

      21:09:03,465 | DEBUG | l Console Thread | configadmin                      | 5 - org.apache.felix.configadmin - 1.4.0.redhat-60024 | getProperties()^M

      21:09:03,465 | DEBUG | l Console Thread | configadmin                      | 5 - org.apache.felix.configadmin - 1.4.0.redhat-60024 | getProperties()^M

      21:09:03,468 | WARN  | l Console Thread | FabResolver                      | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Cannot resolve pom.xml for C:\Users\Administrator\.m2\repository\xml-apis\xml-apis\1.3.04\xml-apis-1.3.04.jar^M

      21:09:03,472 | DEBUG | l Console Thread | BndUtils                         | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Creating bundle for [file:/C:/Users/Administrator/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar]^M

      21:09:03,472 | DEBUG | l Console Thread | BndUtils                         | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Overwrite mode: MERGE^M

      21:09:03,652 | WARN  | l Console Thread | FabConnection                    | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Could not deduce the pom.xml for the jar file:/C:/Users/Administrator/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar so cannot treat as FAB^M

       

       

       

      This causes the unresolved dependencies as mentioned below and bundle start fails, all these are part of xml-apis-1.3.04.jar, but somehow these are not correctly being resolved during install time and seems 0 of '04' is being dropped as insignificant.

       

       

      javax.xml.datatype;version="[1.3.4,2)",

      javax.xml.namespace;version="[1.3.4,2)",

      javax.xml.parsers;version="[1.3.4,2)",

      javax.xml.transform;version="[1.3.4,2)",

      javax.xml.transform.dom;version="[1.3.4,2)",

      javax.xml.transform.sax;version="[1.3.4,2)",

      javax.xml.transform.stream;version="[1.3.4,2)",

      javax.xml.validation;version="[1.3.4,2)",

      javax.xml.xpath;version="[1.3.4,2)",

       

      I tried installing the jar as FAB bundle directly, but it could not also help resolve the dependency.

       

      Please see if there is a problem in usage or suggest get around.

       

      Thanks

      Lalit

        • 1. Re: Jboss Fuse - Fab resolver failing (at bundle install)
          Gert Vanthienen Novice

          Lalit,

           

           

          In order to help us troubleshoot this, it would be helpful to see the output of mvn dependency:tree for your project and/or if you could attach the pom.xml file to this thread.  One thing you could try doing is excluding the xml-apis dependency, cfr. http://fusesource.com/docs/esbent/7.0/esb_deploy_osgi/BuildFab-Configure.html#BuildFab-Configure-Excluding

           

           

          Regards,

           

          Gert

          • 2. Re: Jboss Fuse - Fab resolver failing (at bundle install)
            Lalit Manchanda Newbie

            Hi Gert,

             

            Following is the dependency tree. Thanks for the help

             

             

            [INFO] manchanda.lalit:TestJpa:jar:0.1

            [INFO] +- org.apache.camel:camel-core:jar:2.10.0.redhat-60024:provided

            [INFO] +- org.apache.camel:camel-blueprint:jar:2.10.0.redhat-60024:provided

            [INFO] |  +- org.apache.camel:camel-core-xml:jar:2.10.0.redhat-60024:provided

            [INFO] |  +- org.apache.camel:camel-core-osgi:jar:2.10.0.redhat-60024:provided

            [INFO] |  \- org.apache.aries.blueprint:org.apache.aries.blueprint:jar:1.0.1.red

            hat-60024:provided

            [INFO] +- org.apache.camel:camel-jpa:jar:2.10.0.redhat-60024:provided

            [INFO] |  +- org.apache.camel:camel-spring:jar:2.10.0.redhat-60024:provided

            [INFO] |  |  +- org.springframework:spring-context:jar:3.1.3.RELEASE:provided

            [INFO] |  |  |  +- org.springframework:spring-expression:jar:3.1.3.RELEASE:provi

            ded

            [INFO] |  |  |  \- org.springframework:spring-asm:jar:3.1.3.RELEASE:provided

            [INFO] |  |  +- org.springframework:spring-aop:jar:3.1.3.RELEASE:provided

            [INFO] |  |  |  \- aopalliance:aopalliance:jar:1.0:provided

            [INFO] |  |  \- org.springframework:spring-tx:jar:3.1.3.RELEASE:provided

            [INFO] |  +- org.springframework:spring-jdbc:jar:3.1.3.RELEASE:provided

            [INFO] |  |  +- org.springframework:spring-beans:jar:3.1.3.RELEASE:provided

            [INFO] |  |  \- org.springframework:spring-core:jar:3.1.3.RELEASE:provided

            [INFO] |  \- org.springframework:spring-orm:jar:3.1.3.RELEASE:provided

            [INFO] +- javax.persistence:persistence-api:jar:1.0.2:provided

            [INFO] +- org.apache.openjpa:openjpa:jar:2.2.0:provided

            [INFO] |  +- commons-collections:commons-collections:jar:3.2.1:provided

            [INFO] |  +- net.sourceforge.serp:serp:jar:1.13.1:provided

            [INFO] |  +- org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1:provided

            [INFO] |  +- org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:provided

            [INFO] |  +- commons-pool:commons-pool:jar:1.5.4:provided

            [INFO] |  +- asm:asm:jar:3.2:provided

            [INFO] |  \- org.apache.geronimo.specs:geronimo-jpa_2.0_spec:jar:1.1:provided

            [INFO] +- postgresql:postgresql:jar:9.1-901.jdbc4:provided

            [INFO] +- com.oracle:ojdbc6:jar:11.2.0.3:provided

            [INFO] +- mysql:mysql-connector-java:jar:5.1.6:provided

            [INFO] +- org.milyn:milyn-smooks-javabean:jar:1.5.1:compile

            [INFO] |  +- org.milyn:milyn-smooks-core:jar:1.5.1:compile

            [INFO] |  |  +- org.milyn:milyn-commons:jar:1.5.1:compile

            [INFO] |  |  |  +- org.freemarker:freemarker:jar:2.3.15:compile

            [INFO] |  |  |  \- javassist:javassist:jar:3.10.0.GA:compile

            [INFO] |  |  +- com.thoughtworks.xstream:xstream:jar:1.4.1:compile

            [INFO] |  |  |  +- xmlpull:xmlpull:jar:1.1.3.1:compile

            [INFO] |  |  |  \- xpp3:xpp3_min:jar:1.1.4c:compile

            [INFO] |  |  +- org.mvel:mvel2:jar:2.0.17:compile

            [INFO] |  |  +- jaxen:jaxen:jar:1.1.1:compile

            [INFO] |  |  |  \- xerces:xercesImpl:jar:2.6.2:compile

            [INFO] |  |  \- javax.transaction:jta:jar:1.1:compile

            [INFO] |  +- commons-lang:commons-lang:jar:2.4:compile

            [INFO] |  \- commons-logging:commons-logging:jar:1.1:compile

            [INFO] +- org.apache.servicemix.bundles:org.apache.servicemix.bundles.hsqldb:jar

            :1.8.0.7_2:compile

            [INFO] +- org.milyn:milyn-smooks-csv:jar:1.5.1:compile

            [INFO] |  +- net.sf.opencsv:opencsv:jar:1.8:compile

            [INFO] |  \- org.milyn:milyn-smooks-flatfile:jar:1.5.1:compile

            [INFO] +- org.milyn:milyn-smooks-persistence:jar:1.5.1:provided

            [INFO] |  +- org.milyn:milyn-scribe-core:jar:1.5.1:provided

            [INFO] |  \- org.milyn:milyn-smooks-templating:jar:1.5.1:provided

            [INFO] |     +- antlr:stringtemplate:jar:2.2:provided

            [INFO] |     +- antlr:antlr:jar:2.7.7:provided

            [INFO] |     \- ognl:ognl:jar:2.7.3:provided

            [INFO] +- com.sun.xml.bind:jaxb-impl:jar:2.1.3:compile

            [INFO] +- javax.xml.bind:jaxb-api:jar:2.2:compile

            [INFO] |  +- javax.xml.stream:stax-api:jar:1.0-2:compile

            [INFO] |  \- javax.activation:activation:jar:1.1:compile

            [INFO] +- xml-apis:xml-apis:jar:1.3.04:compile

            [INFO] +- org.slf4j:slf4j-api:jar:1.6.6:compile

            [INFO] +- org.slf4j:slf4j-log4j12:jar:1.6.6:compile

            [INFO] +- org.slf4j:jcl-over-slf4j:jar:1.6.6:compile

            [INFO] +- log4j:log4j:jar:1.2.17:compile

            [INFO] \- org.apache.camel:camel-test-blueprint:jar:2.10.0.redhat-60024:test

            [INFO]    +- org.apache.camel:camel-test:jar:2.10.0.redhat-60024:test

            [INFO]    +- org.apache.aries:org.apache.aries.util:jar:1.0.0:test

            [INFO]    +- org.apache.aries.proxy:org.apache.aries.proxy.impl:jar:1.0.0:test

            [INFO]    +- org.apache.aries.proxy:org.apache.aries.proxy.api:jar:1.0.0:test

            [INFO]    +- com.googlecode.pojosr:de.kalpatec.pojosr.framework:jar:0.2.1:test

            [INFO]    +- org.ops4j.pax.swissbox:pax-swissbox-tinybundles:jar:1.3.1:test

            [INFO]    |  +- org.ops4j.base:ops4j-base-lang:jar:1.2.2:test

            [INFO]    |  +- org.ops4j.base:ops4j-base-io:jar:1.2.2:test

            [INFO]    |  |  \- org.ops4j.base:ops4j-base-monitors:jar:1.2.2:test

            [INFO]    |  +- org.ops4j.base:ops4j-base-store:jar:1.2.2:test

            [INFO]    |  \- org.ops4j.pax.swissbox:pax-swissbox-bnd:jar:1.3.1:test

            [INFO]    |     \- biz.aQute:bndlib:jar:0.0.357:test

            [INFO]    +- junit:junit:jar:4.10:test

            [INFO]    |  \- org.hamcrest:hamcrest-core:jar:1.1:test

            [INFO]    +- org.apache.felix:org.apache.felix.configadmin:jar:1.2.4:test

            [INFO]    \- org.apache.felix:org.apache.felix.fileinstall:jar:3.2.6:test

            [INFO] ------------------------------------------------------------------------

            [INFO] BUILD SUCCESSFUL

            [INFO] ------------------------------------------------------------------------

            • 3. Re: Jboss Fuse - Fab resolver failing (at bundle install)
              Lalit Manchanda Newbie

              Hi Gert,

               

              I tried using FAB_exclude and following is the pom.xml as it looks now, but still the problem is not solved.

               

              <?xml version="1.0" encoding="UTF-8"?>

              <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

               

               

                <modelVersion>4.0.0</modelVersion>

               

               

                <groupId>manchanda.lalit</groupId>

                <artifactId>TestJpa</artifactId>

                <packaging>jar</packaging>

                <version>0.1</version>

               

               

                <name>A Camel Blueprint Route</name>

                <url>http://www.myorganization.org</url>

               

               

                <properties>

                  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

                  <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

                </properties>

               

               

              <repositories>

                  <repository>

                    <id>release.fusesource.org</id>

                    <name>FuseSource Release Repository</name>

                    <url>http://repo.fusesource.com/nexus/content/repositories/releases</url>

                    <snapshots>

                      <enabled>false</enabled>

                    </snapshots>

                    <releases>

                      <enabled>true</enabled>

                    </releases>

                  </repository>

                  <repository>

                    <id>snapshot.fusesource.org</id>

                    <name>FuseSource Snapshot Repository</name>

                    <url>http://repo.fusesource.com/nexus/content/repositories/snapshots</url>

                    <snapshots>

                      <enabled>true</enabled>

                    </snapshots>

                    <releases>

                      <enabled>false</enabled>

                    </releases>

                  </repository>

                  <repository>

                    <id>codelds</id>

                    <url>https://code.lds.org/nexus/content/groups/main-repo</url>

                  </repository>

                </repositories>

               

               

                <pluginRepositories>

                  <pluginRepository>

                    <id>release.fusesource.org</id>

                    <name>FuseSource Release Repository</name>

                    <url>http://repo.fusesource.com/nexus/content/repositories/releases</url>

                    <snapshots>

                      <enabled>false</enabled>

                    </snapshots>

                    <releases>

                      <enabled>true</enabled>

                    </releases>

                  </pluginRepository>

                  <pluginRepository>

                    <id>snapshot.fusesource.org</id>

                    <name>FuseSource Snapshot Repository</name>

                    <url>http://repo.fusesource.com/nexus/content/repositories/snapshots</url>

                    <snapshots>

                      <enabled>true</enabled>

                    </snapshots>

                    <releases>

                      <enabled>false</enabled>

                    </releases>

                  </pluginRepository> 

                </pluginRepositories>

               

               

                <dependencies>

                  <dependency>

                    <groupId>org.apache.camel</groupId>

                    <artifactId>camel-core</artifactId>

                    <version>2.10.0.redhat-60024</version>

                    <scope>provided</scope>

                  </dependency>

                  <dependency>

                    <groupId>org.apache.camel</groupId>

                    <artifactId>camel-blueprint</artifactId>

                    <version>2.10.0.redhat-60024</version>

                    <scope>provided</scope>

                  </dependency>

                 

                  <dependency>

                    <groupId>org.apache.camel</groupId>

                    <artifactId>camel-jpa</artifactId>

                    <version>2.10.0.redhat-60024</version>

                    <scope>provided</scope>

                  </dependency>

                 

                    

                   <dependency>

                                  <groupId>javax.persistence</groupId>

                                  <artifactId>persistence-api</artifactId>

                                  <version>1.0.2</version>

                                  <scope>provided</scope>

                        </dependency>

               

                        <!-- OpenJPA -->

                        <dependency>

                    <groupId>org.apache.openjpa</groupId>

                    <artifactId>openjpa</artifactId>

                    <version>2.2.0</version>

                    <scope>provided</scope>           

                  </dependency>

                 

                  <!-- Postgres Database -->

                 

                  <dependency>

                                  <groupId>postgresql</groupId>

                                  <artifactId>postgresql</artifactId>

                                  <version>9.1-901.jdbc4</version>

                                  <scope>provided</scope>

                        </dependency>

               

               

              <!-- Oracle  Database -->

               

               

               

               

                        <dependency>

                            <groupId>com.oracle</groupId>

                            <artifactId>ojdbc6</artifactId>

                            <version>11.2.0.3</version>

                            <scope>provided</scope>

                        </dependency>

               

              <!-- MySql Database -->

                        <dependency>

                                  <groupId>mysql</groupId>

                                  <artifactId>mysql-connector-java</artifactId>

                                  <version>5.1.6</version>

                                  <scope>provided</scope>

                        </dependency>

               

               

              <!-- Smooks -->

               

               

               

              <dependency>

                            <groupId>org.milyn</groupId>

                            <artifactId>milyn-smooks-javabean</artifactId>

                            <version>1.5.1</version>

                 

                  </dependency>

                 

              <dependency>

                                  <groupId>org.apache.servicemix.bundles</groupId>

                                  <artifactId>org.apache.servicemix.bundles.hsqldb</artifactId>

                                  <version>[1.8.0.7_1,3.0.0]</version>

                        </dependency>  

               

               

              <dependency>

                            <groupId>org.milyn</groupId>

                            <artifactId>milyn-smooks-csv</artifactId>

                            <version>1.5.1</version>

                     </dependency>

                

              <dependency>

                    <groupId>org.milyn</groupId>

                    <artifactId>milyn-smooks-persistence</artifactId>

                    <version>1.5.1</version>

                    <scope>provided</scope>

                  </dependency>

              <!--

              <dependency>

                        <groupId>org.milyn</groupId>

                        <artifactId>milyn-scribe-jpa</artifactId>

                        <version>1.5.1</version>

              </dependency>

              -->

              <dependency>

                        <groupId>com.sun.xml.bind</groupId>

                        <artifactId>jaxb-impl</artifactId>

                        <version>2.1.3</version>

              </dependency>

               

               

              <dependency>

                        <groupId>javax.xml.bind</groupId>

                        <artifactId>jaxb-api</artifactId>

                        <version>2.2</version>

              </dependency>

               

               

              <dependency>

                        <groupId>xml-apis</groupId>

                        <artifactId>xml-apis</artifactId>

                        <version>1.3.04</version>

              </dependency>

                 

                  <!-- logging -->

                  <dependency>

                    <groupId>org.slf4j</groupId>

                    <artifactId>slf4j-api</artifactId>

                    <version>1.6.6</version>

                  </dependency>

                  <dependency>

                    <groupId>org.slf4j</groupId>

                    <artifactId>slf4j-log4j12</artifactId>

                    <version>1.6.6</version>

                  </dependency>

                  <dependency>

                    <groupId>org.slf4j</groupId>

                    <artifactId>jcl-over-slf4j</artifactId>

                    <version>1.6.6</version>

                  </dependency>

                  <dependency>

                    <groupId>log4j</groupId>

                    <artifactId>log4j</artifactId>

                    <version>1.2.17</version>

                  </dependency>

               

               

                  <!-- testing -->

                  <dependency>

                    <groupId>org.apache.camel</groupId>

                    <artifactId>camel-test-blueprint</artifactId>

                    <version>2.10.0.redhat-60024</version>

                    <scope>test</scope>

                  </dependency>

                </dependencies>

               

               

                <build>

                  <defaultGoal>install</defaultGoal>

               

               

                  <plugins>

                    <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-compiler-plugin</artifactId>

                      <version>2.5.1</version>

                      <configuration>

                        <source>1.6</source>

                        <target>1.6</target>

                      </configuration>

                    </plugin>

                    <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-resources-plugin</artifactId>

                      <version>2.4.3</version>

                      <configuration>

                        <encoding>UTF-8</encoding>

                      </configuration>

                    </plugin>

               

               

                   

                          <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-jar-plugin</artifactId>

                      <configuration>

                        <archive>

                        <manifestEntries>

                          <index>true</index>

                            <Private-Package></Private-Package>

                            <Import-Package>

                            com.bea.xml.stream;resolution:="optional",

              com.mchange.v2.c3p0;resolution:="optional",

              com.sun.jdi;resolution:="optional",

              com.sun.jdi.connect;resolution:="optional",

              com.sun.jdi.event;resolution:="optional",

              com.sun.jdi.request;resolution:="optional",

              com.sun.org.apache.xml.internal.utils;resolution:="optional",

              com.sun.org.apache.xpath.internal;resolution:="optional",

              com.sun.org.apache.xpath.internal.objects;resolution:="optional",

              com.sun.security.auth.module;resolution:="optional",

              com.wutka.dtd;resolution:="optional",

              javax.crypto;resolution:="optional",

              javax.crypto.spec;resolution:="optional",

              javax.el;resolution:="optional",

              javax.management;resolution:="optional",

              javax.naming;resolution:="optional",

              javax.naming.directory;resolution:="optional",

              javax.naming.spi;resolution:="optional",

              javax.net;resolution:="optional",

              javax.net.ssl;resolution:="optional",

              javax.persistence;version="[1.0.2,2)",

              javax.resource;resolution:="optional",

              javax.resource.spi;resolution:="optional",

              javax.resource.spi.endpoint;resolution:="optional",

              javax.resource.spi.security;resolution:="optional",

              javax.security.auth;resolution:="optional",

              javax.security.auth.callback;resolution:="optional",

              javax.security.auth.kerberos;resolution:="optional",

              javax.security.auth.login;resolution:="optional",

              javax.security.cert;resolution:="optional",

              javax.servlet;resolution:="optional",

              javax.servlet.http;resolution:="optional",

              javax.servlet.jsp;resolution:="optional",

              javax.servlet.jsp.el;resolution:="optional",

              javax.servlet.jsp.tagext;resolution:="optional",

              javax.sql;resolution:="optional",

              javax.sql.rowset;resolution:="optional",

              javax.sql.rowset.spi;resolution:="optional",

              javax.swing;resolution:="optional",

              javax.swing.border;resolution:="optional",

              javax.swing.event;resolution:="optional",

              javax.swing.plaf;resolution:="optional",

              javax.swing.table;resolution:="optional",

              javax.swing.tree;resolution:="optional",

              javax.xml.datatype;resolution:="optional",

              javax.xml.namespace;resolution:="optional",

              javax.xml.parsers;resolution:="optional",

              javax.xml.transform;resolution:="optional",

              javax.xml.transform.dom;resolution:="optional",

              javax.xml.transform.sax;resolution:="optional",

              javax.xml.transform.stax;resolution:="optional",

              javax.xml.transform.stream;resolution:="optional",

              javax.xml.validation;resolution:="optional",

              javax.xml.xpath;resolution:="optional",

              net.sf.cglib.proxy;resolution:="optional",

              nu.xom;resolution:="optional",

              oracle.i18n.text;resolution:="optional",

              oracle.i18n.text.converter;resolution:="optional",

              oracle.ons;resolution:="optional",

              oracle.security.pki;resolution:="optional",

              oracle.xdb;resolution:="optional",

              oracle.xml.parser.v2;resolution:="optional",

              org.apache.camel;resolution:="optional",

              org.apache.camel.component.jpa;resolution:="optional",

              org.apache.camel.spring.spi;resolution:="optional",

              org.apache.commons.logging;resolution:="optional",

              org.apache.log;resolution:="optional",

              org.apache.log4j;resolution:="optional",

              org.apache.tools.ant;resolution:="optional",

              org.apache.tools.ant.taskdefs;resolution:="optional",

              org.apache.xml.utils;resolution:="optional",

              org.apache.xpath;resolution:="optional",

              org.apache.xpath.objects;resolution:="optional",

              org.codehaus.jettison;resolution:="optional",

              org.codehaus.jettison.mapped;resolution:="optional",

              org.dom4j;resolution:="optional",

              org.dom4j.io;resolution:="optional",

              org.dom4j.tree;resolution:="optional",

              org.ietf.jgss;resolution:="optional",

              org.jboss.resource.adapter.jdbc;resolution:="optional",

              org.jboss.resource.adapter.jdbc.vendor;resolution:="optional",

              org.jdom;resolution:="optional",

              org.jdom.input;resolution:="optional",

              org.jdom.output;resolution:="optional",

              org.joda.time;resolution:="optional",

              org.joda.time.format;resolution:="optional",

              org.kxml2.io;resolution:="optional",

              org.mozilla.javascript;resolution:="optional",

              org.objectweb.asm;resolution:="optional",

              org.osgi.service.blueprint;version="[1.0.0,2.0.0)",

               

               

              org.python.core;resolution:="optional",

              org.python.util;resolution:="optional",

              org.springframework.transaction.jta;resolution:="optional",

              org.w3c.dom.ls;resolution:="optional",

              org.w3c.dom.traversal;resolution:="optional",

              org.xml.sax;resolution:="optional",

              org.xml.sax.ext;resolution:="optional",

              org.xml.sax.helpers;resolution:="optional",

              org.zeroturnaround.javarebel;resolution:="optional",

              sun.misc;resolution:="optional",

              sun.reflect;resolution:="optional",

              sun.security.action;resolution:="optional",

              sun.security.krb5;resolution:="optional",

              sun.security.krb5.internal;resolution:="optional",

              sun.security.util;resolution:="optional"

                           

                           

                            </Import-Package>

                            <FAB-Exclude-Dependency>

                            xml-apis

                            </FAB-Exclude-Dependency>

                            <Export-Package>  

                                                </Export-Package>

                                                         

                                                <Meta-Persistence>META-INF/persistence.xml</Meta-Persistence>

                                       </manifestEntries>

                                      

                        </archive>

                      </configuration>

                       </plugin>

                   

               

                  </plugins>

                 

                </build>

               

               

              </project>

              • 4. Re: Jboss Fuse - Fab resolver failing (at bundle install)
                Gert Vanthienen Novice

                Lalit,

                 

                 

                Could you try marking the JAXP/JAXB/xml-apis dependencies as provided as well?  Those classes are available in the container by default so there should be no need to deploy another copy.  Also, for SLF4J, could you mark the API as provided and everything else as 'test' - you probably only depend on those other JARs for testing purposes, your code itself most likely only uses the API.

                 

                Regards,

                 

                Gert

                 

                 

                P.S. Typically, you wouldn't have to add the large amount of imports to the POM either - if you want more fine-grained control over the actual imports/exports, it's probably better to choose bundle packaging instead of using FABs

                • 5. Re: Jboss Fuse - Fab resolver failing (at bundle install)
                  Lalit Manchanda Newbie

                  Hi Gert,

                   

                  Thanks for supporting me on the issue, I did all the changes, but still the problem is the same, when I see the headers, it shows me the following:

                   

                  javax.xml.datatype;version="[1.3.4,2)",

                  javax.xml.namespace;version="[1.3.4,2)",

                  javax.xml.parsers;version="[1.3.4,2)",

                  javax.xml.transform;version="[1.3.4,2)",

                  javax.xml.transform.dom;version="[1.3.4,2)",

                  javax.xml.transform.sax;version="[1.3.4,2)",

                  javax.xml.transform.stream;version="[1.3.4,2)",

                  javax.xml.validation;version="[1.3.4,2)",

                  javax.xml.xpath;version="[1.3.4,2)",

                  org.w3c.dom.ls;version="[1.3.4,2)",

                  org.w3c.dom.traversal;version="[1.3.4,2)",

                  org.xml.sax;version="[1.3.4,2)",

                  org.xml.sax.ext;version="[1.3.4,2)",

                  org.xml.sax.helpers;version="[1.3.4,2)",

                   

                   

                   

                  Following is the pom:

                   

                  <?xml version="1.0" encoding="UTF-8"?>

                  <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

                   

                   

                    <modelVersion>4.0.0</modelVersion>

                   

                   

                    <groupId>manchanda.lalit</groupId>

                    <artifactId>TestJpa</artifactId>

                    <packaging>jar</packaging>

                    <version>0.1</version>

                   

                   

                    <name>A Camel Blueprint Route</name>

                    <url>http://www.myorganization.org</url>

                   

                   

                    <properties>

                      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

                      <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

                    </properties>

                   

                   

                  <repositories>

                      <repository>

                        <id>release.fusesource.org</id>

                        <name>FuseSource Release Repository</name>

                        <url>http://repo.fusesource.com/nexus/content/repositories/releases</url>

                        <snapshots>

                          <enabled>false</enabled>

                        </snapshots>

                        <releases>

                          <enabled>true</enabled>

                        </releases>

                      </repository>

                      <repository>

                        <id>snapshot.fusesource.org</id>

                        <name>FuseSource Snapshot Repository</name>

                        <url>http://repo.fusesource.com/nexus/content/repositories/snapshots</url>

                        <snapshots>

                          <enabled>true</enabled>

                        </snapshots>

                        <releases>

                          <enabled>false</enabled>

                        </releases>

                      </repository>

                      <repository>

                        <id>codelds</id>

                        <url>https://code.lds.org/nexus/content/groups/main-repo</url>

                      </repository>

                    </repositories>

                   

                   

                    <pluginRepositories>

                      <pluginRepository>

                        <id>release.fusesource.org</id>

                        <name>FuseSource Release Repository</name>

                        <url>http://repo.fusesource.com/nexus/content/repositories/releases</url>

                        <snapshots>

                          <enabled>false</enabled>

                        </snapshots>

                        <releases>

                          <enabled>true</enabled>

                        </releases>

                      </pluginRepository>

                      <pluginRepository>

                        <id>snapshot.fusesource.org</id>

                        <name>FuseSource Snapshot Repository</name>

                        <url>http://repo.fusesource.com/nexus/content/repositories/snapshots</url>

                        <snapshots>

                          <enabled>true</enabled>

                        </snapshots>

                        <releases>

                          <enabled>false</enabled>

                        </releases>

                      </pluginRepository> 

                    </pluginRepositories>

                   

                   

                    <dependencies>

                      <dependency>

                        <groupId>org.apache.camel</groupId>

                        <artifactId>camel-core</artifactId>

                        <version>2.10.0.redhat-60024</version>

                        <scope>provided</scope>

                      </dependency>

                      <dependency>

                        <groupId>org.apache.camel</groupId>

                        <artifactId>camel-blueprint</artifactId>

                        <version>2.10.0.redhat-60024</version>

                        <scope>provided</scope>

                      </dependency>

                     

                      <dependency>

                        <groupId>org.apache.camel</groupId>

                        <artifactId>camel-jpa</artifactId>

                        <version>2.10.0.redhat-60024</version>

                        <scope>provided</scope>

                      </dependency>

                     

                        

                       <dependency>

                                      <groupId>javax.persistence</groupId>

                                      <artifactId>persistence-api</artifactId>

                                      <version>1.0.2</version>

                                      <scope>provided</scope>

                            </dependency>

                   

                            <!-- OpenJPA -->

                            <dependency>

                        <groupId>org.apache.openjpa</groupId>

                        <artifactId>openjpa</artifactId>

                        <version>2.2.0</version>

                        

                      </dependency>

                     

                      <!-- Postgres Database -->

                     

                      <dependency>

                                      <groupId>postgresql</groupId>

                                      <artifactId>postgresql</artifactId>

                                      <version>9.1-901.jdbc4</version>

                   

                            </dependency>

                   

                   

                  <!-- Oracle  Database -->

                   

                   

                   

                   

                            <dependency>

                                <groupId>com.oracle</groupId>

                                <artifactId>ojdbc6</artifactId>

                                <version>11.2.0.3</version>

                             

                            </dependency>

                   

                  <!-- MySql Database -->

                            <dependency>

                                      <groupId>mysql</groupId>

                                      <artifactId>mysql-connector-java</artifactId>

                                      <version>5.1.6</version>

                   

                            </dependency>

                   

                   

                  <!-- Smooks -->

                   

                   

                   

                  <dependency>

                                <groupId>org.milyn</groupId>

                                <artifactId>milyn-smooks-javabean</artifactId>

                                <version>1.5.1</version>

                     

                      </dependency>

                     

                  <dependency>

                                      <groupId>org.apache.servicemix.bundles</groupId>

                                      <artifactId>org.apache.servicemix.bundles.hsqldb</artifactId>

                                      <version>[1.8.0.7_1,3.0.0]</version>

                            </dependency>  

                   

                   

                  <dependency>

                                <groupId>org.milyn</groupId>

                                <artifactId>milyn-smooks-csv</artifactId>

                                <version>1.5.1</version>

                         </dependency>

                   

                  <dependency>

                        <groupId>org.milyn</groupId>

                        <artifactId>milyn-smooks-persistence</artifactId>

                        <version>1.5.1</version>

                   

                      </dependency>

                   

                  <dependency>

                            <groupId>org.milyn</groupId>

                            <artifactId>milyn-scribe-jpa</artifactId>

                            <version>1.5.1</version>

                  </dependency>

                  <!-- -->

                  <dependency>

                            <groupId>com.sun.xml.bind</groupId>

                            <artifactId>jaxb-impl</artifactId>

                            <version>2.1.3</version>

                            <scope>provided</scope>

                  </dependency>

                   

                   

                  <dependency>

                            <groupId>javax.xml.bind</groupId>

                            <artifactId>jaxb-api</artifactId>

                            <version>2.2</version>

                            <scope>provided</scope>

                  </dependency>

                   

                   

                  <dependency>

                            <groupId>xml-apis</groupId>

                            <artifactId>xml-apis</artifactId>

                            <version>1.3.04</version>

                            <scope>provided</scope>

                  </dependency>

                    

                      <!-- logging -->

                      <dependency>

                        <groupId>org.slf4j</groupId>

                        <artifactId>slf4j-api</artifactId>

                        <version>1.6.6</version>

                        <scope>provided</scope>

                      </dependency>

                      <dependency>

                        <groupId>org.slf4j</groupId>

                        <artifactId>slf4j-log4j12</artifactId>

                        <version>1.6.6</version>

                        <scope>test</scope>

                      </dependency>

                      <dependency>

                        <groupId>org.slf4j</groupId>

                        <artifactId>jcl-over-slf4j</artifactId>

                        <version>1.6.6</version>

                        <scope>test</scope>

                      </dependency>

                      <dependency>

                        <groupId>log4j</groupId>

                        <artifactId>log4j</artifactId>

                        <version>1.2.17</version>

                        <scope>test</scope>

                      </dependency>

                   

                   

                      <!-- testing -->

                      <dependency>

                        <groupId>org.apache.camel</groupId>

                        <artifactId>camel-test-blueprint</artifactId>

                        <version>2.10.0.redhat-60024</version>

                        <scope>test</scope>

                      </dependency>

                    </dependencies>

                   

                   

                    <build>

                      <defaultGoal>install</defaultGoal>

                   

                   

                      <plugins>

                        <plugin>

                          <groupId>org.apache.maven.plugins</groupId>

                          <artifactId>maven-compiler-plugin</artifactId>

                          <version>2.5.1</version>

                          <configuration>

                            <source>1.6</source>

                            <target>1.6</target>

                          </configuration>

                        </plugin>

                        <plugin>

                          <groupId>org.apache.maven.plugins</groupId>

                          <artifactId>maven-resources-plugin</artifactId>

                          <version>2.4.3</version>

                          <configuration>

                            <encoding>UTF-8</encoding>

                          </configuration>

                        </plugin>

                   

                   

                      

                              <plugin>

                          <groupId>org.apache.maven.plugins</groupId>

                          <artifactId>maven-jar-plugin</artifactId>

                          <configuration>

                            <archive>

                            <manifestEntries>

                              <index>true</index>

                                <Private-Package></Private-Package>

                                <Import-Package></Import-Package>

                                 <Export-Package></Export-Package>

                                                   <Meta-Persistence>META-INF/persistence.xml</Meta-Persistence>

                                           </manifestEntries>

                           </archive>

                          </configuration>

                         </plugin>

                       

                     

                      </plugins>

                     

                    </build>

                   

                   

                  </project>

                   

                   

                   

                   

                  Following is the dependency tree:

                   

                  [INFO] [dependency:tree {execution: default-cli}]

                  [INFO] manchanda.lalit:TestJpa:jar:0.1

                  [INFO] +- org.apache.camel:camel-core:jar:2.10.0.redhat-60024:provided

                  [INFO] +- org.apache.camel:camel-blueprint:jar:2.10.0.redhat-60024:provided

                  [INFO] |  +- org.apache.camel:camel-core-xml:jar:2.10.0.redhat-60024:provided

                  [INFO] |  +- org.apache.camel:camel-core-osgi:jar:2.10.0.redhat-60024:provided

                  [INFO] |  \- org.apache.aries.blueprint:org.apache.aries.blueprint:jar:1.0.1.red

                  hat-60024:provided

                  [INFO] +- org.apache.camel:camel-jpa:jar:2.10.0.redhat-60024:provided

                  [INFO] |  +- org.apache.camel:camel-spring:jar:2.10.0.redhat-60024:provided

                  [INFO] |  |  +- org.springframework:spring-context:jar:3.1.3.RELEASE:provided

                  [INFO] |  |  |  +- org.springframework:spring-expression:jar:3.1.3.RELEASE:provi

                  ded

                  [INFO] |  |  |  \- org.springframework:spring-asm:jar:3.1.3.RELEASE:provided

                  [INFO] |  |  +- org.springframework:spring-aop:jar:3.1.3.RELEASE:provided

                  [INFO] |  |  |  \- aopalliance:aopalliance:jar:1.0:provided

                  [INFO] |  |  \- org.springframework:spring-tx:jar:3.1.3.RELEASE:provided

                  [INFO] |  +- org.springframework:spring-jdbc:jar:3.1.3.RELEASE:provided

                  [INFO] |  |  +- org.springframework:spring-beans:jar:3.1.3.RELEASE:provided

                  [INFO] |  |  \- org.springframework:spring-core:jar:3.1.3.RELEASE:provided

                  [INFO] |  \- org.springframework:spring-orm:jar:3.1.3.RELEASE:provided

                  [INFO] +- javax.persistence:persistence-api:jar:1.0.2:provided (scope not update

                  d to compile)

                  [INFO] +- org.apache.openjpa:openjpa:jar:2.2.0:compile

                  [INFO] |  +- commons-lang:commons-lang:jar:2.4:compile

                  [INFO] |  +- commons-collections:commons-collections:jar:3.2.1:compile

                  [INFO] |  +- net.sourceforge.serp:serp:jar:1.13.1:compile

                  [INFO] |  |  \- junit:junit:jar:4.10:compile

                  [INFO] |  +- org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1:compile

                  [INFO] |  +- org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile

                  [INFO] |  +- commons-pool:commons-pool:jar:1.5.4:compile

                  [INFO] |  +- asm:asm:jar:3.2:compile

                  [INFO] |  \- org.apache.geronimo.specs:geronimo-jpa_2.0_spec:jar:1.1:compile

                  [INFO] +- postgresql:postgresql:jar:9.1-901.jdbc4:compile

                  [INFO] +- com.oracle:ojdbc6:jar:11.2.0.3:compile

                  [INFO] +- mysql:mysql-connector-java:jar:5.1.6:compile

                  [INFO] +- org.milyn:milyn-smooks-javabean:jar:1.5.1:compile

                  [INFO] |  +- org.milyn:milyn-smooks-core:jar:1.5.1:compile

                  [INFO] |  |  +- org.milyn:milyn-commons:jar:1.5.1:compile

                  [INFO] |  |  |  +- org.freemarker:freemarker:jar:2.3.15:compile

                  [INFO] |  |  |  \- javassist:javassist:jar:3.10.0.GA:compile

                  [INFO] |  |  +- com.thoughtworks.xstream:xstream:jar:1.4.1:compile

                  [INFO] |  |  |  +- xmlpull:xmlpull:jar:1.1.3.1:compile

                  [INFO] |  |  |  \- xpp3:xpp3_min:jar:1.1.4c:compile

                  [INFO] |  |  +- org.mvel:mvel2:jar:2.0.17:compile

                  [INFO] |  |  +- jaxen:jaxen:jar:1.1.1:compile

                  [INFO] |  |  |  \- xerces:xercesImpl:jar:2.6.2:compile

                  [INFO] |  |  \- javax.transaction:jta:jar:1.1:compile

                  [INFO] |  \- commons-logging:commons-logging:jar:1.1:compile

                  [INFO] +- org.apache.servicemix.bundles:org.apache.servicemix.bundles.hsqldb:jar

                  :1.8.0.7_2:compile

                  [INFO] +- org.milyn:milyn-smooks-csv:jar:1.5.1:compile

                  [INFO] |  +- net.sf.opencsv:opencsv:jar:1.8:compile

                  [INFO] |  \- org.milyn:milyn-smooks-flatfile:jar:1.5.1:compile

                  [INFO] +- org.milyn:milyn-smooks-persistence:jar:1.5.1:compile

                  [INFO] |  +- org.milyn:milyn-scribe-core:jar:1.5.1:compile

                  [INFO] |  \- org.milyn:milyn-smooks-templating:jar:1.5.1:compile

                  [INFO] |     +- antlr:stringtemplate:jar:2.2:compile

                  [INFO] |     +- antlr:antlr:jar:2.7.7:compile

                  [INFO] |     \- ognl:ognl:jar:2.7.3:compile

                  [INFO] +- org.milyn:milyn-scribe-jpa:jar:1.5.1:compile

                  [INFO] +- com.sun.xml.bind:jaxb-impl:jar:2.1.3:provided

                  [INFO] +- javax.xml.bind:jaxb-api:jar:2.2:provided

                  [INFO] |  +- javax.xml.stream:stax-api:jar:1.0-2:provided

                  [INFO] |  \- javax.activation:activation:jar:1.1:provided

                  [INFO] +- xml-apis:xml-apis:jar:1.3.04:provided

                  [INFO] +- org.slf4j:slf4j-api:jar:1.6.6:provided

                  [INFO] +- org.slf4j:slf4j-log4j12:jar:1.6.6:test

                  [INFO] +- org.slf4j:jcl-over-slf4j:jar:1.6.6:test

                  [INFO] +- log4j:log4j:jar:1.2.17:test (scope not updated to compile)

                  [INFO] \- org.apache.camel:camel-test-blueprint:jar:2.10.0.redhat-60024:test

                  [INFO]    +- org.apache.camel:camel-test:jar:2.10.0.redhat-60024:test

                  [INFO]    +- org.apache.aries:org.apache.aries.util:jar:1.0.0:test

                  [INFO]    +- org.apache.aries.proxy:org.apache.aries.proxy.impl:jar:1.0.0:test

                  [INFO]    +- org.apache.aries.proxy:org.apache.aries.proxy.api:jar:1.0.0:test

                  [INFO]    +- com.googlecode.pojosr:de.kalpatec.pojosr.framework:jar:0.2.1:test

                  [INFO]    +- org.ops4j.pax.swissbox:pax-swissbox-tinybundles:jar:1.3.1:test

                  [INFO]    |  +- org.ops4j.base:ops4j-base-lang:jar:1.2.2:test

                  [INFO]    |  +- org.ops4j.base:ops4j-base-io:jar:1.2.2:test

                  [INFO]    |  |  \- org.ops4j.base:ops4j-base-monitors:jar:1.2.2:test

                  [INFO]    |  +- org.ops4j.base:ops4j-base-store:jar:1.2.2:test

                  [INFO]    |  \- org.ops4j.pax.swissbox:pax-swissbox-bnd:jar:1.3.1:test

                  [INFO]    |     \- biz.aQute:bndlib:jar:0.0.357:test

                  [INFO]    +- org.apache.felix:org.apache.felix.configadmin:jar:1.2.4:test

                  [INFO]    \- org.apache.felix:org.apache.felix.fileinstall:jar:3.2.6:test

                   

                   

                   

                  Following is the warining I see in the logs:

                   

                  lled for: xerces.xercesImpl version: 2.9.1 packages: []

                  16:28:34,836 | INFO  | l Console Thread | FabConnection                    | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Packages not yet shared: [javax.xml.parsers, javax.xml.transform.dom, org.w3c.dom.traversal, javax.xml.datatype, org.xml.sax, javax.xml.namespace, javax.xml.xpath, org.w3c.dom.ls, org.xml.sax.ext, javax.xml.transform, javax.xml.transform.stream, javax.xml.validation, javax.xml.transform.sax, org.xml.sax.helpers]

                  16:28:34,838 | DEBUG | l Console Thread | configadmin                      | 5 - org.apache.felix.configadmin - 1.4.0.redhat-60024 | getProperties()

                  16:28:34,839 | DEBUG | l Console Thread | configadmin                      | 5 - org.apache.felix.configadmin - 1.4.0.redhat-60024 | getProperties()

                  16:28:34,843 | WARN  | l Console Thread | FabResolver                      | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Cannot resolve pom.xml for C:\Users\Administrator\.m2\repository\xml-apis\xml-apis\1.3.04\xml-apis-1.3.04.jar

                  16:28:34,847 | DEBUG | l Console Thread | BndUtils                         | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Creating bundle for [file:/C:/Users/Administrator/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar]

                  16:28:34,847 | DEBUG | l Console Thread | BndUtils                         | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Overwrite mode: MERGE

                  16:28:34,926 | WARN  | l Console Thread | FabConnection                    | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Could not deduce the pom.xml for the jar file:/C:/Users/Administrator/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar so cannot treat as FAB

                  16:28:34,929 | INFO  | l Console Thread | FabConnection                    | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Bundle non-optional packages already installed for: xalan.serializer version: 2.7.1 packages: []

                  16:28:34,942 | INFO  | l Console Thread | FabConnection                    | 71 - org.fusesource.fabric.fab.fab-osgi - 7.2.0.redhat-024 | Bundle non-optional packages already installed for: xalan.xalan version: 2.7.1 packages: [org.apache.xpath.objects, org.apache.xalan.extensions, org.apache.xml.utils, org.apache.xpath, org.apache.xalan.templates]

                  16:28:35,940 | DEBUG | l Console Thread | BlueprintExtender                | 14 - org.apache.aries.blueprint.core - 1.0.1.redhat-60024 | Starting BlueprintContainer destruction process for bundle manchanda.lalit.TestJpa

                   

                   

                   

                   

                  Also I had to resort to detailed import package option beacuase of other issue I faced https://community.jboss.org/message/817430#817430

                  • 6. Re: Jboss Fuse - Fab resolver failing (at bundle install)
                    Gert Vanthienen Novice

                    Lalit,

                     

                     

                    It looks like FAB is not taking into account the packages that are available through boot delegation and/or through the system bundle.  I raised http://fusesource.com/issues/browse/FAB-59 to look into that.  I'm wondering if you actually need the xml-apis dependency at all in your POM - the JRE should provide those packages and that dependency is causing the "[1.3.4,2)" version range to be added to those import statements.  Could you try removing that dependency to see if that fixes things?

                     

                    If that still doesn't work, we may have to look into reverting to bundle packaging until we can fix the above JIRA issue. 

                     

                     

                    Regards,

                     

                    Gert

                    • 7. Re: Jboss Fuse - Fab resolver failing (at bundle install)
                      Lalit Manchanda Newbie

                      Gert,

                       

                      When I started xml-apis ws not defined as dependency, its only later when I saw the warning in fuse log I put it. So removing it is not solving the problem.

                       

                      Also if we look at xml-apis at http://mvnrepository.com/artifact/xml-apis/xml-apis, there is no valid version 1.3.4, its only 1.3.04.

                       

                      Do you think that 1.3.4 is actually 1.3.04 but its getting changed in some sort of translation ? 

                       

                      Regds

                      Lalit

                      • 8. Re: Jboss Fuse - Fab resolver failing (at bundle install)
                        Gert Vanthienen Novice

                        Lalit,

                         

                        Yeah, 1.3.04 would definitely get translated to 1.3.4 when it is being handled by the default OSGi versioning mechanims.  Could you check if the same dependency is perhaps picked up transitively again after you removed your own dependency in the POM?  If so, you might have to exclude it from the transitive dependencies as well.

                         

                        Regards,

                         

                        Gert

                        • 9. Re: Jboss Fuse - Fab resolver failing (at bundle install)
                          Lalit Manchanda Newbie

                          Gert,

                           

                          Though xml-apis did not show up in the list when I did dependency:tree, I knew this problem was coming when I added 'milyn-smooks-persistence' as a dependency, so I did the following:

                           

                           

                          <dependency>

                                <groupId>org.milyn</groupId>

                                <artifactId>milyn-smooks-persistence</artifactId>

                                <version>1.5.1</version>

                                       <exclusions>

                                <exclusion>

                                    <groupId>xml-apis</groupId>

                                    <artifactId>xml-apis</artifactId>

                                </exclusion>

                            </exclusions>

                              </dependency>

                           

                           

                          For now the un-idenfied dependencies issue, seems to have gone, I will test this a bit and confirm (and mark this as answer), if its working fine.

                           

                           

                          Meanwhile, can you plese also help on the following:

                           

                          a) But as I know FAB picks some dependecies from blueprint (context) also, how can I identify such issues in future?

                           

                          b) can you please comment on https://community.jboss.org/message/817430#817430, as I find FAB a good tool, but this issue, is limiting use of it.

                           

                          Thanks

                          Lalit

                          • 10. Re: Jboss Fuse - Fab resolver failing (at bundle install)
                            Lalit Manchanda Newbie

                            Hi Gert,

                             

                            After doing the change, I have started getting the Grace_period for the application bundle due to following:

                             

                             

                            11:35:20,110 | DEBUG | a-0.1.0-thread-2 | AbstractServiceReferenceRecipe   | 14 - org.apache.aries.blueprint.core - 1.0.1.redhat-60024 | Found initial references null for OSGi service (objectClass=javax.transaction.TransactionManager)

                            11:35:20,110 | DEBUG | a-0.1.0-thread-2 | ReferenceRecipe                  | 14 - org.apache.aries.blueprint.core - 1.0.1.redhat-60024 | Binding reference .component-1 to [javax.persistence.EntityManagerFactory]

                            11:35:20,110 | DEBUG | a-0.1.0-thread-2 | AbstractServiceReferenceRecipe   | 14 - org.apache.aries.blueprint.core - 1.0.1.redhat-60024 | Found initial references [[javax.persistence.EntityManagerFactory]] for OSGi service (&(&(!(org.apache.aries.jpa.proxy.factory=*))(osgi.unit.name=camel-openjpa))(objectClass=javax.persistence.EntityManagerFactory))

                            11:35:20,111 | DEBUG | a-0.1.0-thread-2 | ReferenceRecipe                  | 14 - org.apache.aries.blueprint.core - 1.0.1.redhat-60024 | Binding reference .component-2 to [javax.persistence.EntityManagerFactory]

                            11:35:20,111 | DEBUG | a-0.1.0-thread-2 | AbstractServiceReferenceRecipe   | 14 - org.apache.aries.blueprint.core - 1.0.1.redhat-60024 | Found initial references [[javax.persistence.EntityManagerFactory]] for OSGi service (&(&(!(org.apache.aries.jpa.proxy.factory=*))(osgi.unit.name=camel-openjpa-mysql))(objectClass=javax.persistence.EntityManagerFactory))

                            11:35:20,111 | DEBUG | a-0.1.0-thread-2 | ReferenceRecipe                  | 14 - org.apache.aries.blueprint.core - 1.0.1.redhat-60024 | Binding reference .component-4 to [javax.persistence.EntityManagerFactory]

                            11:35:20,111 | DEBUG | a-0.1.0-thread-2 | AbstractServiceReferenceRecipe   | 14 - org.apache.aries.blueprint.core - 1.0.1.redhat-60024 | Found initial references [[javax.persistence.EntityManagerFactory]] for OSGi service (&(&(!(org.apache.aries.jpa.proxy.factory=*))(osgi.unit.name=camel-openjpa-postgres))(objectClass=javax.persistence.EntityManagerFactory))

                            11:35:20,112 | DEBUG | a-0.1.0-thread-2 | BlueprintContainerImpl           | 14 - org.apache.aries.blueprint.core - 1.0.1.redhat-60024 | Tracking service references: [.component-1, .component-2, .component-4, .camelBlueprint.componentResolver.properties, jpaTransactionManager]

                            11:35:20,112 | DEBUG | a-0.1.0-thread-2 | BlueprintContainerImpl           | 14 - org.apache.aries.blueprint.core - 1.0.1.redhat-60024 | Running blueprint container for bundle manchanda.lalit.TestJpa in state WaitForInitialReferences

                            11:35:20,112 | INFO  | a-0.1.0-thread-2 | BlueprintContainerImpl           | 14 - org.apache.aries.blueprint.core - 1.0.1.redhat-60024 | Bundle manchanda.lalit.TestJpa is waiting for dependencies [(objectClass=javax.transaction.TransactionManager)]

                            11:35:20,112 | DEBUG | a-0.1.0-thread-2 | BlueprintEventDispatcher         | 14 - org.apache.aries.blueprint.core - 1.0.1.redhat-60024 | Sending blueprint container event BlueprintEvent[type=GRACE_PERIOD, dependencies=[(objectClass=javax.transaction.TransactionManager)]] for bundle manchanda.lalit.TestJpa

                            11:35:20,112 | DEBUG | nt Dispatcher: 1 | BlueprintListener                | 47 - org.apache.karaf.shell.osgi - 2.3.0.redhat-60024 | Blueprint app state changed to GracePeriod for bundle 1079

                             

                             

                             

                            I can see following exports for Transaction  (when I do exports)

                             

                             

                              0 javax.transaction; version=0.0.0

                              0 javax.transaction.xa; version=0.0.0

                            94 javax.transaction.xa; version=1.1.0

                            94 javax.transaction; version=1.1.0

                             

                             

                            Is it problem of multiple exports? If yes how can I solve this?

                             

                            Regds

                            Lalit

                            • 11. Re: Jboss Fuse - Fab resolver failing (at bundle install)
                              Gert Vanthienen Novice

                              Hi Lalit,

                               

                               

                              Yes, this is actually a problem in JBoss Fuse itself - these 2 bundles are installed by default, so not really a problem with your own FAB here.  I raised http://fusesource.com/issues/browse/ENTESB-808 to remove the duplicate package in a future release.  Looking at my own local installation, the most likely cause for this GracePeriod event you're seeing is that your FAB is import the javax.transaction package from the system bundle instead of the bundle 94.

                               

                              Could you do an osgi:headers for your FAB and see what version range is configured on the import?  Also, do a packages:imports to check which bundle it is importing the package from?  Once we know that, we have to either configure a bundle version range in the manifest or alter the FAB options to ensure it generates the right header to import the correct package.

                               

                               

                              Regards

                               

                              Gert

                              • 12. Re: Jboss Fuse - Fab resolver failing (at bundle install)
                                Lalit Manchanda Newbie

                                Hi Gert,

                                 

                                The headers output does not give any version range, I am pasting the output as below:

                                 

                                FAB-Id = manchanda.lalit:TestJpa:0.1:jar

                                Created-By = 1.6.0_43 (Sun Microsystems Inc.)

                                Manifest-Version = 1

                                Bnd-LastModified = 1375286711295

                                Originally-Created-By = Apache Maven

                                Meta-Persistence = META-INF/persistence.xml

                                FAB-Provided-Dependency = org.apache.cxf:* org.apache.camel:* org.apache.activem

                                 

                                 

                                q:*

                                Built-By = localit

                                 

                                 

                                Bundle-Name = manchanda.lalit.TestJpa

                                Bundle-SymbolicName = manchanda.lalit.TestJpa

                                Bundle-Version = 0.1.0

                                Bundle-ManifestVersion = 2

                                Bundle-ClassPath = .,com.sun.xml.bind.jaxb-impl-resources.jar,xerces.xercesImpl-

                                 

                                 

                                resources.jar,xalan.xalan-resources.jar,com.oracle.ojdbc6.jar,mysql.mysql-connec

                                 

                                 

                                tor-java.jar,org.apache.servicemix.bundles.org.apache.servicemix.bundles.hsqldb.

                                 

                                 

                                jar,org.milyn.milyn-scribe-jpa.jar,commons-lang.commons-lang.jar,org.milyn.milyn

                                 

                                 

                                -scribe-core.jar,org.milyn.milyn-commons.jar,javassist.javassist.jar,org.freemar

                                 

                                 

                                ker.freemarker.jar,org.milyn.milyn-smooks-csv.jar,net.sf.opencsv.opencsv.jar,org

                                 

                                 

                                .milyn.milyn-smooks-core.jar,com.thoughtworks.xstream.xstream.jar,xmlpull.xmlpul

                                 

                                 

                                l.jar,xpp3.xpp3_min.jar,javax.transaction.jta.jar,jaxen.jaxen.jar,org.mvel.mvel2

                                 

                                 

                                .jar,org.milyn.milyn-smooks-flatfile.jar,org.milyn.milyn-smooks-javabean.jar,org

                                 

                                 

                                .milyn.milyn-smooks-persistence.jar,org.milyn.milyn-smooks-templating.jar,antlr.

                                 

                                 

                                antlr.jar,antlr.stringtemplate.jar,ognl.ognl.jar,postgresql.postgresql.jar

                                 

                                 

                                Import-Service =

                                        javax.transaction.TransactionManager

                                Export-Service =

                                        javax.sql.DataSource;osgi.jndi.service.name=jdbc/postgresds,

                                        javax.sql.DataSource;osgi.jndi.service.name=jdbc/oracleds,

                                        javax.sql.DataSource;osgi.jndi.service.name=jdbc/mysqlds

                                 

                                 

                                Private-Package =

                                        org.milyn.javabean.lifecycle,

                                        org.milyn.xml.hierarchy,

                                        javassist,

                                        org.mvel2.templates.util.io,

                                        org.mvel2.optimizers.impl.refl.collection,

                                        org.milyn.dtd,

                                        org.milyn.javabean.ext,

                                        com.mysql.jdbc.jdbc2.optional,

                                        oracle.jdbc.internal,

                                        org.milyn.persistence.parameter,

                                        com.thoughtworks.xstream.converters.reflection,

                                        org.mvel2,

                                        org.hsqldb.util.sqltool,

                                        com.thoughtworks.xstream.io.naming,

                                       

                                        org.milyn.cdr.xpath,

                                        org.hsqldb.util,

                                        oracle.net.mesg,

                                        com.mysql.jdbc.configs,

                                        org.milyn.cdr,

                                        org.mvel2.math,

                                        org.mvel2.util,

                                        com.thoughtworks.xstream.io.json,

                                        .,

                                        antlr.actions.java,

                                        org.milyn.flatfile.variablefield,

                                        org.postgresql.ds,

                                        freemarker.ext.rhino,

                                        org.antlr.stringtemplate.misc,

                                        oracle.net.ano,

                                        oracle.core.lvf,

                                        org.milyn.javabean.context,

                                        org.milyn.config,

                                        oracle.jdbc.replay.internal,

                                        org.milyn.io,

                                        org.milyn.useragent,

                                        org.apache.commons.lang.enum,

                                        org.jaxen.dom4j,

                                        org.milyn.templating.xslt.reporting,

                                        oracle.jdbc.pool,

                                        javassist.expr,

                                        org.antlr.stringtemplate.test,

                                        freemarker.ext.jython,

                                        org.mvel2.asm.util,

                                        ognl.internal,

                                        org.milyn.javabean.binding,

                                        org.milyn.net,

                                        org.apache.commons.lang,

                                        org.milyn.delivery.dom.serialize,

                                        org.hsqldb.persist,

                                        oracle.net.jndi,

                                        org.milyn.event.report.model,

                                        org.postgresql.jdbc3g,

                                        oracle.net.jdbc.nl,

                                        javassist.tools.reflect,

                                        org.milyn.javabean.dynamic.ext,

                                        org.milyn.cdr.xpath.evaluators,

                                        org.apache.commons.lang.text,

                                        org.milyn.visitors.set,

                                        ognl.enhance,

                                        antlr.build,

                                        freemarker.ext.xml,

                                        com.thoughtworks.xstream.core.util,

                                        org.milyn.templating.stringtemplate.reporting,

                                        org.milyn.function,

                                        freemarker.log,

                                        oracle.jdbc.rowset,

                                        org.milyn.javabean.dynamic.serialize,

                                        org.mvel2.compiler,

                                        javassist.compiler,

                                        org.postgresql.gss,

                                        oracle.jdbc,

                                        org.milyn.visitors.remove,

                                        javassist.tools.rmi,

                                       

                                        javassist.util.proxy,

                                        org.milyn.event.report,

                                        oracle.security.o5logon,

                                        org.xmlpull.mxp1,

                                        org.milyn.xml,

                                        antlr.debug.misc,

                                        oracle.jdbc.connector,

                                        org.milyn.thread,

                                        com.thoughtworks.xstream.io.xml,

                                        org.milyn.delivery.sax,

                                        com.thoughtworks.xstream.mapper,

                                        org.milyn.javabean.binding.model,

                                        org.mvel2.optimizers.impl.refl,

                                        org.milyn.scribe.reflection,

                                        freemarker.ext.util,

                                        oracle.net.resolver,

                                        org.postgresql.largeobject,

                                        org.milyn.persistence,

                                        org.milyn.javabean.decoders,

                                        org.milyn.templating.xslt,

                                        org.milyn.javabean.dynamic.visitor,

                                        org.milyn.delivery.doc-files,

                                        org.mvel2.sh.command.basic,

                                        org.milyn.templating.freemarker,

                                        ognl,

                                        org.milyn.javabean.binding.xml,

                                        org.milyn.profile.doc-files,

                                        org.milyn.namespace,

                                        org.milyn.delivery.replay,

                                        org.jaxen.pattern,

                                        freemarker,

                                        javassist.bytecode,

                                        org.antlr.stringtemplate.language,

                                        com.thoughtworks.xstream.converters.basic,

                                        org.milyn.delivery.nested,

                                        org.postgresql.core.types,

                                        org.mvel2.asm,

                                        org.mvel2.integration.impl,

                                        org.hsqldb.index,

                                        org.milyn.event.types,

                                        org.mvel2.optimizers.dynamic,

                                        org.milyn.cdr.annotation,

                                        org.milyn.visitors.ctrl,

                                        oracle.jdbc.oracore,

                                        org.postgresql.geometric,

                                        org.mvel2.ast,

                                        org.jaxen.expr,

                                        org.milyn.javabean.expression,

                                        com.mysql.jdbc.integration.c3p0,

                                        org.milyn.cdr.xpath.evaluators.value,

                                        org.milyn.javabean.dynamic.serialize.freemarker,

                                        org.milyn.csv,

                                        javassist.convert,

                                        antlr.collections,

                                        org.milyn.cdr.xpath.evaluators.equality,

                                        org.milyn.javabean.binding.model.get,

                                        org.hsqldb.rowio,

                                        oracle.net.jdbc.TNSAddress,

                                        javassist.tools,

                                       

                                  org.milyn.csv,

                                  javassist.convert,

                                  antlr.collections,

                                  org.milyn.cdr.xpath.evaluators.equality,

                                  org.milyn.javabean.binding.model.get,

                                  org.hsqldb.rowio,

                                  oracle.net.jdbc.TNSAddress,

                                  javassist.tools,

                                  org.postgresql.jdbc3,

                                  org.postgresql.jdbc4,

                                  org.jaxen.function,

                                  javax.transaction,

                                  com.thoughtworks.xstream.persistence,

                                  org.postgresql.jdbc2,

                                  org.jaxen.javabean,

                                  oracle.jdbc.diagnostics,

                                  com.thoughtworks.xstream.converters.enums,

                                  org.milyn.javabean.gen,

                                  oracle.security.o3logon,

                                  org.hsqldb.resources,

                                  com.thoughtworks.xstream.io.path,

                                  com.mysql.jdbc.log,

                                  freemarker.ext.dom,

                                  org.milyn.javabean,

                                  org.milyn.doc-files,

                                  org.milyn.util,

                                  org.mvel2.templates.res,

                                  org.milyn.javabean.context.preinstalled,

                                  org.milyn.cdr.xpath.evaluators.logical,

                                  org.mvel2.optimizers.impl.asm,

                                  org.milyn.servlet,

                                  freemarker.debug.impl,

                                  freemarker.core,

                                  org.mvel2.debug,

                                  org.hsqldb.lib.java,

                                  org.milyn.db,

                                  com.thoughtworks.xstream.converters.collections,

                                  com.thoughtworks.xstream.core,

                                  javassist.compiler.ast,

                                  javassist.bytecode.analysis,

                                  org.postgresql.ds.jdbc23,

                                  oracle.jdbc.xa.client,

                                  com.mysql.jdbc.interceptors,

                                  org.postgresql,

                                  org.hsqldb.scriptio,

                                  org.xmlpull.v1,

                                  javassist.bytecode.annotation,

                                  org.postgresql.core.v2,

                                  org.postgresql.core.v3,

                                  org.w3c.dom,

                                  oracle.core.lmx,

                                  org.milyn.useragent.request,

                                  freemarker.ext.jdom,

                                  org.jaxen.function.ext,

                                  com.thoughtworks.xstream.io,

                                  org.milyn.csv.prog,

                                  org.apache.commons.lang.builder,

                                  com.mysql.jdbc.integration.jboss,

                                  freemarker.template,

                                  

                                     org.milyn.expression,

                                     org.jaxen.saxpath.helpers,

                                     com.thoughtworks.xstream.io.copy,

                                     com.mysql.jdbc.exceptions,

                                     org.milyn.assertion,

                                     com.thoughtworks.xstream.io.xml.xppdom,

                                     antlr.actions.python,

                                     org.milyn.container.plugin,

                                     org.postgresql.ds.jdbc4,

                                     org.milyn.javabean.dynamic.resolvers,

                                     org.milyn.persistence.util,

                                     org.hsqldb.store,

                                     oracle.jdbc.replay.driver,

                                     freemarker.ext.beans,

                                     org.mvel2.optimizers,

                                     org.apache.commons.lang.exception,

                                     org.postgresql.ds.common,

                                     org.gjt.mm.mysql,

                                     org.jaxen.expr.iter,

                                     org.postgresql.core,

                                     org.mvel2.sh.text,

                                     org.milyn.archive,

                                     freemarker.debug,

                                     org.milyn.container,

                                     org.milyn.reflect,

                                     org.milyn.db.reporting,

                                     org.antlr.stringtemplate,

                                     org.milyn.classpath,

                                     oracle.jdbc.proxy.annotation,

                                     org.milyn.templating.xslt.doc-files,

                                     org.milyn.templating,

                                     org.milyn.delivery.annotation,

                                     org.milyn.resource,

                                     com.mysql.jdbc.util,

                                     au.com.bytecode.opencsv.bean,

                                     org.mvel2.sh,

                                     org.postgresql.jdbc2.optional,

                                     javassist.bytecode.stackmap,

                                     freemarker.ext.jsp,

                                     com.thoughtworks.xstream.converters,

                                     org.postgresql.fastpath,

                                     oracle.jdbc.util,

                                     com.mysql.jdbc.exceptions.jdbc4,

                                     org.milyn.scribe,

                                     org.postgresql.copy,

                                     antlr.ASdebug,

                                     org.milyn.persistence.observers,

                                     org.milyn.javabean.reporting,

                                     org.milyn.flatfile,

                                     org.milyn.delivery.sax.annotation,

                                     org.milyn.persistence.config.ext,

                                     freemarker.ext.ant,

                                     org.milyn.scribe.register,

                                     oracle.jdbc.dcn,

                                     org.postgresql.xa,

                                     org.jaxen.saxpath.base,

                                     org.milyn.templating.freemarker.reporting,

                                     org.milyn.javabean.gen.templates,

                                     org.hsqldb.types,

                                    

                                     org.hsqldb.jdbc,

                                     oracle.sql.converter,

                                     org.apache.commons.lang.mutable,

                                     oracle.jdbc.replay,

                                     org.milyn.javabean.pojogen,

                                     org.jaxen.saxpath,

                                     com.thoughtworks.xstream.io.binary,

                                     antlr.debug,

                                     oracle.net.aso,

                                     au.com.bytecode.opencsv,

                                     antlr.actions.csharp,

                                     javax.transaction.xa,

                                     org.jaxen.dom,

                                     org.hsqldb,

                                     oracle.jdbc.aq,

                                     org.milyn.delivery,

                                     oracle.sql,

                                     javassist.runtime,

                                     freemarker.ext.servlet,

                                     oracle.jdbc.xa,

                                     org.mvel2.integration,

                                     freemarker.cache,

                                     org.milyn.scribe.adapter.jpa,

                                     org.milyn.javabean.dynamic,

                                     org.milyn.delivery.sax.terminate,

                                     antlr,

                                     org.milyn.scribe.annotation,

                                     com.thoughtworks.xstream,

                                     org.milyn.javabean.observers,

                                     org.milyn.profile,

                                     org.milyn.lang,

                                     oracle.net.jdbc.nl.mesg,

                                     javassist.scopedpool,

                                     com.thoughtworks.xstream.converters.javabean,

                                     org.milyn.event.report.annotation,

                                     freemarker.template.utility,

                                     com.thoughtworks.xstream.converters.extended,

                                     antlr.collections.impl,

                                     org.apache.commons.lang.time,

                                     org.hsqldb.sample,

                                     org.mvel2.sh.command.file,

                                     org.apache.commons.lang.math,

                                     org.hsqldb.lib,

                                     oracle.jdbc.driver,

                                     org.milyn.scribe.invoker,

                                     org.milyn.persistence.reporting,

                                     org.mvel2.conversion,

                                     org.mvel2.optimizers.impl.refl.nodes,

                                     org.jaxen.jdom,

                                     org.apache.commons.lang.enums,

                                     org.mvel2.asm.signature,

                                     antlr.actions.cpp,

                                     org.milyn.flatfile.regex,

                                     oracle.jpub.runtime,

                                     org.milyn.container.standalone,

                                     org.milyn.delivery.java,

                                     oracle.sql.converter_xcharset,

                                     com.mysql.jdbc,

                                     javassist.tools.web,

                                    

                                        org.jaxen.function.xslt,

                                        oracle.net.nt,

                                        oracle.net.ns,

                                        antlr.preprocessor,

                                        org.milyn.annotation,

                                        com.thoughtworks.xstream.annotations,

                                        org.milyn,

                                        org.milyn.event,

                                        org.jaxen,

                                        org.milyn.javabean.factory,

                                        javassist.util,

                                        org.mvel2.templates,

                                        org.milyn.cdr.extension,

                                        oracle.jdbc.proxy,

                                        org.jaxen.xom,

                                        org.postgresql.util,

                                        org.milyn.delivery.dom,

                                        com.mysql.jdbc.profiler,

                                        org.milyn.payload,

                                        org.milyn.javabean.repository,

                                        org.jaxen.util,

                                        org.postgresql.translation,

                                        org.milyn.event.report.html,

                                        org.mvel2.templates.util,

                                        oracle.jdbc.oci,

                                        org.milyn.templating.stringtemplate,

                                        org.milyn.javabean.gen.model,

                                        org.milyn.delivery.ordering,

                                        org.postgresql.ssl

                                Import-Package =

                                        com.bea.xml.stream;resolution:=optional,

                                        com.mchange.v2.c3p0;resolution:=optional,

                                        com.sun.jdi;resolution:=optional,

                                        com.sun.jdi.connect;resolution:=optional,

                                        com.sun.jdi.event;resolution:=optional,

                                        com.sun.jdi.request;resolution:=optional,

                                        com.sun.org.apache.xml.internal.utils;resolution:=optional,

                                        com.sun.org.apache.xpath.internal;resolution:=optional,

                                        com.sun.org.apache.xpath.internal.objects;resolution:=optional,

                                        com.sun.security.auth.module;resolution:=optional,

                                        com.wutka.dtd;resolution:=optional,

                                        javax.crypto;resolution:=optional,

                                        javax.crypto.spec;resolution:=optional,

                                        javax.el;resolution:=optional,

                                        javax.management;resolution:=optional,

                                        javax.naming;resolution:=optional,

                                        javax.naming.directory;resolution:=optional,

                                        javax.naming.spi;resolution:=optional,

                                        javax.net;resolution:=optional,

                                        javax.net.ssl;resolution:=optional,

                                        javax.persistence;version="[1.0.0,2)",

                                        javax.resource;resolution:=optional,

                                        javax.resource.spi;resolution:=optional,

                                        javax.resource.spi.endpoint;resolution:=optional,

                                        javax.resource.spi.security;resolution:=optional,

                                        javax.security.auth;resolution:=optional,

                                        javax.security.auth.callback;resolution:=optional,

                                        javax.security.auth.kerberos;resolution:=optional,

                                        javax.security.auth.login;resolution:=optional,

                                        javax.security.cert;resolution:=optional,

                                        javax.servlet;resolution:=optional,

                                        javax.servlet.http;resolution:=optional,

                                        javax.servlet.jsp;resolution:=optional,

                                        javax.servlet.jsp.el;resolution:=optional,

                                        javax.servlet.jsp.tagext;resolution:=optional,

                                        javax.sql;resolution:=optional,

                                        javax.sql.rowset;resolution:=optional,

                                        javax.sql.rowset.spi;resolution:=optional,

                                        javax.swing;resolution:=optional,

                                        javax.swing.border;resolution:=optional,

                                        javax.swing.event;resolution:=optional,

                                        javax.swing.plaf;resolution:=optional,

                                        javax.swing.table;resolution:=optional,

                                        javax.swing.tree;resolution:=optional,

                                        javax.xml.datatype;resolution:=optional,

                                        javax.xml.namespace;resolution:=optional,

                                        javax.xml.parsers;resolution:=optional,

                                        javax.xml.stream;version="[1.0.0.2,2)",

                                        javax.xml.transform;resolution:=optional,

                                        javax.xml.transform.dom;resolution:=optional,

                                        javax.xml.transform.sax;resolution:=optional,

                                        javax.xml.transform.stax;resolution:=optional,

                                        javax.xml.transform.stream;resolution:=optional,

                                        javax.xml.validation;resolution:=optional,

                                        javax.xml.xpath;resolution:=optional,

                                        net.sf.cglib.proxy;resolution:=optional,

                                        nu.xom;resolution:=optional,

                                        oracle.i18n.text;resolution:=optional,

                                        oracle.i18n.text.converter;resolution:=optional,

                                        oracle.ons;resolution:=optional,

                                        oracle.security.pki;resolution:=optional,

                                        oracle.xdb;resolution:=optional,

                                        oracle.xml.parser.v2;resolution:=optional,

                                        org.apache.camel;resolution:=optional,

                                       

                                        org.apache.camel.component.jpa;resolution:=optional,

                                        org.apache.camel.spring.spi;resolution:=optional,

                                        org.apache.commons.logging;resolution:=optional,

                                        org.apache.log;resolution:=optional,

                                        org.apache.log4j;resolution:=optional,

                                        org.apache.tools.ant;resolution:=optional,

                                        org.apache.tools.ant.taskdefs;resolution:=optional,

                                        org.apache.xalan.extensions;version="[2.7.1,3)",

                                        org.apache.xalan.templates;version="[2.7.1,3)",

                                        org.apache.xml.utils;version="[2.7.1,3)",

                                        org.apache.xpath;version="[2.7.1,3)",

                                        org.apache.xpath.objects;version="[2.7.1,3)",

                                        org.codehaus.jettison;resolution:=optional,

                                        org.codehaus.jettison.mapped;resolution:=optional,

                                        org.dom4j;resolution:=optional,

                                        org.dom4j.io;resolution:=optional,

                                        org.dom4j.tree;resolution:=optional,

                                        org.ietf.jgss;resolution:=optional,

                                        org.jboss.resource.adapter.jdbc;resolution:=optional,

                                        org.jboss.resource.adapter.jdbc.vendor;resolution:=optional,

                                        org.jdom;resolution:=optional,

                                        org.jdom.input;resolution:=optional,

                                        org.jdom.output;resolution:=optional,

                                        org.joda.time;resolution:=optional,

                                        org.joda.time.format;resolution:=optional,

                                        org.kxml2.io;resolution:=optional,

                                        org.mozilla.javascript;resolution:=optional,

                                        org.objectweb.asm;resolution:=optional,

                                        org.osgi.service.blueprint;resolution:=optional;version="[1.0.0,2.0.0)"

                                ,

                                        org.python.core;resolution:=optional,

                                        org.python.util;resolution:=optional,

                                        org.springframework.transaction.jta;resolution:=optional,

                                        org.w3c.dom.ls;resolution:=optional,

                                        org.w3c.dom.traversal;resolution:=optional,

                                        org.xml.sax;resolution:=optional,

                                        org.xml.sax.ext;resolution:=optional,

                                        org.xml.sax.helpers;resolution:=optional,

                                        org.zeroturnaround.javarebel;resolution:=optional,

                                        sun.misc;resolution:=optional,

                                        sun.reflect;resolution:=optional,

                                        sun.security.action;resolution:=optional,

                                        sun.security.krb5;resolution:=optional,

                                        sun.security.krb5.internal;resolution:=optional,

                                        sun.security.util;resolution:=optional

                                Export-Package =

                                        manchanda.lalit.TestJpa;

                                                uses:="javax.persistence,

                                                        org.apache.camel,

                                                        org.apache.camel.component.jpa",

                                        OSGI-INF.blueprint,

                                        OSGI-INF

                                 

                                 

                                But when I do packages imports for my FAB, I see the following

                                 

                                 

                                System Bundle (0): org.apache.xalan.templates; version=2.7.1

                                System Bundle (0): org.apache.xml.utils; version=2.7.1

                                System Bundle (0): org.apache.xpath.objects; version=2.7.1

                                System Bundle (0): org.apache.xpath; version=2.7.1

                                System Bundle (0): javax.crypto; version=0.0.0

                                System Bundle (0): javax.crypto.spec; version=0.0.0

                                System Bundle (0): javax.management; version=0.0.0

                                System Bundle (0): javax.naming; version=0.0.0

                                System Bundle (0): javax.naming.directory; version=0.0.0

                                System Bundle (0): javax.naming.spi; version=0.0.0

                                System Bundle (0): javax.net; version=0.0.0

                                System Bundle (0): javax.net.ssl; version=0.0.0

                                System Bundle (0): javax.security.auth; version=0.0.0

                                System Bundle (0): javax.security.auth.callback; version=0.0.0

                                System Bundle (0): javax.security.auth.kerberos; version=0.0.0

                                System Bundle (0): javax.security.auth.login; version=0.0.0

                                System Bundle (0): javax.security.cert; version=0.0.0

                                System Bundle (0): javax.sql; version=0.0.0

                                System Bundle (0): javax.sql.rowset; version=0.0.0

                                System Bundle (0): javax.sql.rowset.spi; version=0.0.0

                                System Bundle (0): javax.swing; version=0.0.0

                                System Bundle (0): javax.swing.border; version=0.0.0

                                System Bundle (0): javax.swing.event; version=0.0.0

                                System Bundle (0): javax.swing.plaf; version=0.0.0

                                System Bundle (0): javax.swing.table; version=0.0.0

                                System Bundle (0): javax.swing.tree; version=0.0.0

                                System Bundle (0): javax.xml.datatype; version=0.0.0

                                System Bundle (0): javax.xml.namespace; version=0.0.0

                                System Bundle (0): javax.xml.parsers; version=0.0.0

                                System Bundle (0): javax.xml.stream; version=1.2.0

                                System Bundle (0): javax.xml.transform; version=0.0.0

                                System Bundle (0): javax.xml.transform.dom; version=0.0.0

                                System Bundle (0): javax.xml.transform.sax; version=0.0.0

                                System Bundle (0): javax.xml.transform.stax; version=0.0.0

                                System Bundle (0): javax.xml.transform.stream; version=0.0.0

                                System Bundle (0): javax.xml.validation; version=0.0.0

                                System Bundle (0): javax.xml.xpath; version=0.0.0

                                System Bundle (0): org.ietf.jgss; version=0.0.0

                                System Bundle (0): org.w3c.dom.ls; version=0.0.0

                                System Bundle (0): org.w3c.dom.traversal; version=0.0.0

                                System Bundle (0): org.xml.sax; version=0.0.0

                                System Bundle (0): org.xml.sax.ext; version=0.0.0

                                System Bundle (0): org.xml.sax.helpers; version=0.0.0

                                OPS4J Pax Logging - API (4): org.apache.commons.logging; version=1.1.1

                                OPS4J Pax Logging - API (4): org.apache.commons.logging; version=1.0.4

                                OPS4J Pax Logging - API (4): org.apache.log4j; version=1.2.15

                                ASM all classes with debug info (10): org.objectweb.asm; version=4.1.0

                                Apache Aries Blueprint Core (14): org.osgi.service.blueprint; version=1.0.0

                                geronimo-servlet_2.5_spec (95): javax.servlet.http; version=2.5.0

                                geronimo-servlet_2.5_spec (95): javax.servlet; version=2.5.0

                                jettison (119): org.codehaus.jettison.mapped; version=1.3.3

                                jettison (119): org.codehaus.jettison; version=1.3.3

                                geronimo-j2ee-connector_1.5_spec (125): javax.resource.spi.endpoint; version=1.5.0

                                geronimo-j2ee-connector_1.5_spec (125): javax.resource.spi; version=1.5.0

                                geronimo-j2ee-connector_1.5_spec (125): javax.resource.spi.security; version=1.5.0

                                geronimo-j2ee-connector_1.5_spec (125): javax.resource; version=1.5.0

                                Joda-Time (126): org.joda.time; version=1.6.2

                                Joda-Time (126): org.joda.time.format; version=1.6.2

                                camel-core (130): org.apache.camel; version=2.10.0.redhat-60024

                                Apache ServiceMix :: Bundles :: cglib (135): net.sf.cglib.proxy; version=2.2.2

                                Spring Transaction (136): org.springframework.transaction.jta; version=3.1.3.RELEASE

                                camel-spring (137): org.apache.camel.spring.spi; version=2.10.0.redhat-60024

                                Apache ServiceMix :: Bundles :: js (191): org.mozilla.javascript; version=1.0.0.7R2

                                OPS4J Pax Web - Jsp Support (228): javax.servlet.jsp; version=1.1.2

                                OPS4J Pax Web - Jsp Support (228): javax.servlet.jsp.el; version=1.1.2

                                OPS4J Pax Web - Jsp Support (228): javax.servlet.jsp; version=2.1.0

                                OPS4J Pax Web - Jsp Support (228): javax.servlet.jsp.el; version=2.1.0

                                OPS4J Pax Web - Jsp Support (228): javax.servlet.jsp.tagext; version=2.1.0

                                OPS4J Pax Web - Jsp Support (228): javax.el; version=2.1.0

                                camel-jpa (244): org.apache.camel.component.jpa; version=2.10.0.redhat-60024

                                Apache Geronimo JSR-317 JPA 2.0 Spec API (247): javax.persistence; version=1.1.0

                                Apache Geronimo JSR-317 JPA 2.0 Spec API (247): javax.persistence; version=2.0.0

                                Apache ServiceMix :: Bundles :: ant (248): org.apache.tools.ant.taskdefs; version=1.7.0

                                Apache ServiceMix :: Bundles :: ant (248): org.apache.tools.ant; version=1.7.0

                                 

                                 

                                 

                                Though the system bundle does not seem to contribute, but a spring transaction bundle seems to be contributing, the other contender (In my mind) could have been

                                 

                                [  94] [Active     ] [            ] [       ] [   30] geronimo-jta_1.1_spec (1.1.1)

                                 

                                 

                                Please help the next steps.

                                 

                                Regds

                                Lalit

                                • 13. Re: Jboss Fuse - Fab resolver failing (at bundle install)
                                  Gert Vanthienen Novice

                                  Lalit,

                                   

                                   

                                  OK, so it looks like it's not the duplicate javax.transaction package exported by the container that's messing things up here, it's the javax.transaction.jta.jar that's embedded in the FAB itself that's causing the issues.  With that JAR, the FAB now has its own copy of the javax.transaction.TransactionManager API and it won't find the transaction manager that's already in the container (using the interface in the geronimo bundle).

                                   

                                  Adding the javax.transaction:jta:jar:1.1 dependency with scope 'provided' should be enough to fix the issue, I think.  That should trigger FAB into reusing the existing bundle instead of embedding the JAR into the FAB bundle.

                                   

                                   

                                  Regards,

                                   

                                  Gert

                                  • 14. Re: Jboss Fuse - Fab resolver failing (at bundle install)
                                    Lalit Manchanda Newbie

                                    Hi Gert,

                                     

                                    It worked, thanks for the insights.

                                     

                                    Is the bug http://fusesource.com/issues/browse/FAB-59, still valid?

                                     

                                    Regds

                                    Lalit

                                    1 2 Previous Next