You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by DanielArias <da...@koghi.com> on 2017/01/25 15:54:38 UTC

Deploy Service Mix

Hi, I'm trying to deploy my camel project created with eclipse with archetype
java-camel-spring-archetype version 2.2.149 

My ServiceMix version is: 6.1.3 

I use activemq in my proyect and a sql connection 

My pom looks like this: 

<modelVersion>4.0.0</modelVersion>
        <groupId>Integrabilia_Aloha_Camel</groupId>
        <artifactId>Obranza</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <packaging>jar</packaging>
        <name>Fabric8 :: Quickstarts :: Java :: Camel with Spring</name>
        <description>Camel route using Spring XML in a standalone Java
container</description>
        <properties>
               
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
                
                <camel.version>2.16.4</camel.version>
                <commons-lang3.version>3.4</commons-lang3.version>
                <commons-logging.version>1.2</commons-logging.version>
                <fabric8.version>2.2.168</fabric8.version>
                
               
<fabric8.maven.plugin.version>3.1.62</fabric8.maven.plugin.version>
               
<maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
               
<maven-surefire-plugin.version>2.18.1</maven-surefire-plugin.version>
                <exec-maven-plugin.version>1.5.0</exec-maven-plugin.version>
</properties>
        <dependencyManagement>
                
                <dependencies>
                        <dependency>
                                <groupId>org.apache.camel</groupId>
                                <artifactId>camel-stream</artifactId>
                                <version>2.18.0</version>
                        </dependency>

                        
                        <dependency>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>exec-maven-plugin</artifactId>
                                <version>1.5.0</version>
                        </dependency>

                        
                        <dependency>
                                <groupId>io.fabric8</groupId>
                               
<artifactId>fabric8-project-bom-with-platform-deps</artifactId>
                                <version>${fabric8.version}</version>
                                <type>pom</type>
                                <scope>import</scope>
                        </dependency>
                        <dependency>
                                <groupId>org.apache.camel</groupId>
                                <artifactId>camel-parent</artifactId>
                                <version>${camel.version}</version>
                                <type>pom</type>
                                <scope>import</scope>
                        </dependency>
                </dependencies>
        </dependencyManagement>

<plugin>
                                <groupId>org.apache.felix</groupId>
                                <artifactId>maven-bundle-plugin</artifactId>
                                <configuration>
                                        <instructions>
                                               
<Bundle-SymbolicName>${project.artifactId} 
                                                </Bundle-SymbolicName>
                                               
<Import-Package>*,org.apache.camel.osgi,             
org.apache.activemq</Import-Package>  
                                               
<Private-Package>org.apache.servicemix.obranza.activemq</Private-Package>
                                        </instructions>
                                </configuration>
                        </plugin>

but I still get this error: 

ERROR: Bundle Obranza [309] Error starting
wrap:file:/D:/apache-servicemix-6.1.3 
/deploy/Obranza-0.0.1-SNAPSHOT.jar$Bundle-SymbolicName=Obranza&Bundle-Version=0. 
0.1.SNAPSHOT (org.osgi.framework.BundleException: Uses constraint violation.
Una 
ble to resolve bundle revision Obranza [309.0] because it exports package
'org.s 
pringframework.util.comparator' and is also exposed to it from bundle
revision o 
rg.apache.servicemix.bundles.spring-core [101.0] via the following
dependency ch 
ain: 

  Obranza [309.0] 
    import: (osgi.wiring.package=org.springframework.osgi.context) 
     | 
    export: osgi.wiring.package=org.springframework.osgi.context;
uses:=org.spri 
ngframework.beans 
  org.springframework.osgi.core [109.0] 
    import:
(&(osgi.wiring.package=org.springframework.beans)(version>=2.5.6)(!( 
version>=4.0.0))) 
     | 
    export: osgi.wiring.package=org.springframework.beans;
uses:=org.springframe 
work.core.io.support 
  org.apache.servicemix.bundles.spring-beans [103.0] 
    import:
(&(osgi.wiring.package=org.springframework.core.io.support)(version> 
=3.2.17.RELEASE)(!(version>=3.3.0))) 
     | 
    export: osgi.wiring.package=org.springframework.core.io.support;
uses:=org.s 
pringframework.util.comparator 
    export: osgi.wiring.package=org.springframework.util.comparator 
  org.apache.servicemix.bundles.spring-core [101.0]) 
org.osgi.framework.BundleException: Uses constraint violation. Unable to
resolve 
 bundle revision Obranza [309.0] because it exports package
'org.springframework 
.util.comparator' and is also exposed to it from bundle revision
org.apache.serv 
icemix.bundles.spring-core [101.0] via the following dependency chain: 

  Obranza [309.0] 
    import: (osgi.wiring.package=org.springframework.osgi.context) 
     | 
    export: osgi.wiring.package=org.springframework.osgi.context;
uses:=org.spri 
ngframework.beans 
  org.springframework.osgi.core [109.0] 
    import:
(&(osgi.wiring.package=org.springframework.beans)(version>=2.5.6)(!( 
version>=4.0.0))) 
     | 
    export: osgi.wiring.package=org.springframework.beans;
uses:=org.springframe 
work.core.io.support 
  org.apache.servicemix.bundles.spring-beans [103.0] 
    import:
(&(osgi.wiring.package=org.springframework.core.io.support)(version> 
=3.2.17.RELEASE)(!(version>=3.3.0))) 
     | 
    export: osgi.wiring.package=org.springframework.core.io.support;
uses:=org.s 
pringframework.util.comparator 
    export: osgi.wiring.package=org.springframework.util.comparator 
  org.apache.servicemix.bundles.spring-core [101.0] 
        at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3980) 
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2037) 
        at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1291) 
        at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStart 
LevelImpl.java:304) 
        at java.lang.Thread.run(Thread.java:745) 


I just don't know what to change to get it running on serviceMix 

Thanks in advanced, 
I do really need help 




--
View this message in context: http://camel.465427.n5.nabble.com/Deploy-Service-Mix-tp5793053.html
Sent from the Camel - Users mailing list archive at Nabble.com.