5 Replies Latest reply on Jun 27, 2013 10:44 AM by SMS Krishnan

    camel-activemq example - Could not find artifact javax.ejb:ejb:jar:3.0

    Felipe Lascaray Newbie

      Hello I am a newbie with Fuse. When i deploy the example i found the next issue:

       

      Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle clarin.fop-esb [251]: Unable to resolve 251.0: missing requirement [251.0] osgi.wiring.package; (&(osgi.wiring.package=javax.ejb)(version>=3.0.0))

              at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4155)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

              at org.apache.felix.framework.Felix.startBundle(Felix.java:2055)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

              at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

              at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]

              at org.apache.karaf.shell.osgi.StartBundle.doExecute(StartBundle.java:37)[47:org.apache.karaf.shell.osgi:2.3.0.redhat-60024]

       

       

       

      Maven 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>clarin</groupId>

                <artifactId>fop-esb</artifactId>

                <packaging>jar</packaging>

                <version>1.0.0-SNAPSHOT</version>

       

       

                <properties>

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

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

                          <activemq-version>5.8.0.redhat-60024</activemq-version>

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

                </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> <!-- Archiva Managed Internal Repository -->

                                    <id>internal</id>

                                    <name>Archiva Managed Internal Repository</name>

                                    <url>http://nap20.int.clarin.com:8888/archiva/repository/internal/</url>

                                    <releases>

                                              <enabled>true</enabled>

                                    </releases>

                                    <snapshots>

                                              <enabled>true</enabled>

                                    </snapshots>

                          </repository>

                          <repository> <!--Archiva Managed Snapshot Repository -->

                                    <id>snapshots</id>

                                    <name>Archiva Managed Snapshot Repository</name>

                                    <url>http://nap20.int.clarin.com:8888/archiva/repository/snapshots/</url>

                                    <releases>

                                              <enabled>true</enabled>

                                    </releases>

                                    <snapshots>

                                              <enabled>true</enabled>

                                    </snapshots>

                          </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>${camel-version}</version>

                          </dependency>

                          <dependency>

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

                                    <artifactId>camel-spring</artifactId>

                                    <version>${camel-version}</version>

                          </dependency>

                          <dependency>

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

                                    <artifactId>camel-cxf</artifactId>

                                    <version>${camel-version}</version>

                          </dependency>

                          <dependency>

                                    <groupId>org.apache.activemq</groupId>

                                    <artifactId>activemq-camel</artifactId>

                                    <version>${activemq-version}</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>log4j</groupId>

                                    <artifactId>log4j</artifactId>

                                    <version>1.2.17</version>

                          </dependency>

       

       

                          <!-- testing -->

                          <dependency>

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

                                    <artifactId>camel-test-spring</artifactId>

                                    <version>${camel-version}</version>

                                    <scope>test</scope>

                          </dependency>

                </dependencies>

       

       

                <build>

                          <defaultGoal>install</defaultGoal>

                          <plugins>

                                    <plugin>

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

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

                                              <version>3.1</version>

                                              <configuration>

                                                        <source>1.6</source>

                                                        <target>1.6</target>

                                              </configuration>

                                    </plugin>

                          </plugins>

                </build>

       

       

      </project>