1 Reply Latest reply on May 18, 2017 8:48 PM by sarada.ch

    Unable to deploy the bundle in JBOss fuse 6.3

    sarada.ch

      Hi All,

       

      Trying to install bundle and failed with below error. Can anyone let me know what the error is

       

      JBossFuse:karaf@root> install file:C:/Users/sarada.chelluboyena/workspacelab/Cam

      elCXFSOAP/target/camelcxfsoap-1.0.0-SNAPSHOT.jar

      Bundle ID: 308

      JBossFuse:karaf@root> list | grep SNAPSHOT

      [ 308] [Installed  ] [            ] [       ] [   80] Camel Spring Quickstart (1

      .0.0.SNAPSHOT)

      JBossFuse:karaf@root> start 308

      Error executing command: Error starting bundles:

              Unable to start bundle 308: Unresolved constraint in bundle com.x.camelcxfsoap [308]: Unable to resolve 308.0: missing requirement [308.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.camel)(version>=2.18.0)(!(version>=3.0.0)))

      JBossFuse:karaf@root>

       

       

      <?xml version="1.0" encoding="UTF-8"?>
      <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.x</groupId>
        <artifactId>camelcxfsoap</artifactId>
        <version>1.0.0-SNAPSHOT</version>
        <packaging>bundle</packaging>
        <name>Camel Spring Quickstart</name>
        <description>Empty Camel Spring Example</description>
        <licenses>
          <license>
            <name>Apache License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
            <distribution>repo</distribution>
          </license>
        </licenses>
        <properties>
          <camel.version>2.18.1.redhat-000012</camel.version>
          <version.maven-bundle-plugin>3.2.0</version.maven-bundle-plugin>
          <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
          <jboss.fuse.bom.version>6.3.0.redhat-224</jboss.fuse.bom.version>
          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        </properties>
        <dependencyManagement>
          <dependencies>
            <dependency>
              <groupId>org.jboss.fuse.bom</groupId>
              <artifactId>jboss-fuse-parent</artifactId>
              <version>${jboss.fuse.bom.version}</version>
              <type>pom</type>
              <scope>import</scope>
            </dependency>
          </dependencies>
        </dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-core</artifactId>
            <version>${camel.version}</version>
          </dependency>
          <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-spring</artifactId>
            <version>${camel.version}</version>
          </dependency>
          <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
          </dependency>
          <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
          </dependency>
          <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
          </dependency>
          <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-test-spring</artifactId>
            <version>${camel.version}</version>
          </dependency>
           <dependency>
        <groupId>org.apache.camel</groupId>
        <artifactId>camel-cxf</artifactId>
        <version>${camel.version}</version>
        </dependency>
        </dependencies>
        <repositories>
          <repository>
            <releases>
              <enabled>true</enabled>
              <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
              <enabled>false</enabled>
            </snapshots>
            <id>fuse-public-repository</id>
            <name>FuseSource Community Release Repository</name>
            <url>https://repo.fusesource.com/nexus/content/groups/public</url>
          </repository>
          <repository>
            <releases>
              <enabled>true</enabled>
              <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
              <enabled>false</enabled>
            </snapshots>
            <id>red-hat-ga-repository</id>
            <name>Red Hat GA Repository</name>
            <url>https://maven.repository.redhat.com/ga</url>
          </repository>
        </repositories>
        <pluginRepositories>
          <pluginRepository>
            <releases>
              <enabled>true</enabled>
              <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
              <enabled>false</enabled>
            </snapshots>
            <id>fuse-public-repository</id>
            <name>FuseSource Community Release Repository</name>
            <url>https://repo.fusesource.com/nexus/content/groups/public</url>
          </pluginRepository>
          <pluginRepository>
            <releases>
              <enabled>true</enabled>
              <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
              <enabled>false</enabled>
            </snapshots>
            <id>red-hat-ga-repository</id>
            <name>Red Hat GA Repository</name>
            <url>https://maven.repository.redhat.com/ga</url>
          </pluginRepository>
        </pluginRepositories>
        <build>
          <defaultGoal>install</defaultGoal>
          <plugins>
            <plugin>
              <groupId>org.apache.felix</groupId>
              <artifactId>maven-bundle-plugin</artifactId>
              <version>${version.maven-bundle-plugin}</version>
              <extensions>true</extensions>
             <!--  <configuration>
                <instructions>
                  <Bundle-SymbolicName>CamelCXFSOAP</Bundle-SymbolicName>
                  <Bundle-Name>Empty Camel Spring Example [CamelCXFSOAP]</Bundle-Name>
                  
                </instructions>
              </configuration> -->
            </plugin>
            <plugin>
              <artifactId>maven-compiler-plugin</artifactId>
              <version>3.5.1</version>
              <configuration>
                <source>1.8</source>
                <target>1.8</target>
              </configuration>
            </plugin>
            <plugin>
              <artifactId>maven-resources-plugin</artifactId>
              <version>3.0.1</version>
              <configuration>
                <encoding>UTF-8</encoding>
              </configuration>
            </plugin>
            <plugin>
              <groupId>org.apache.camel</groupId>
              <artifactId>camel-maven-plugin</artifactId>
              <version>${camel.version}</version>
              <configuration>
                <fileApplicationContextUri>src/main/resources/META-INF/spring/camel-context.xml</fileApplicationContextUri>
              </configuration>
            </plugin>
          </plugins>
        </build>
      </project>