im having a problem when i start my service mix 5.0.0 and i have a jar
configuration on deploy folder ,this is my  camel context code:

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


<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:camel="http://camel.apache.org/schema/spring";
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
       http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd";>
  <bean id="billingFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
    <property name="brokerURL"
value="failover:(tcp://http://10.100.1.52:8168)" />
    <property name="userName" value="vassadmin" />
    <property name="password" value="c+?gu0=35^!1I3qm" />
  </bean>
  <bean id="billingPool"
class="org.apache.activemq.pool.PooledConnectionFactory" init-method="start"
destroy-method="stop">
    <property name="maxConnections" value="10" />
    <property name="maximumActiveSessionPerConnection" value="10" />
    <property name="connectionFactory" ref="billingFactory" />
    <property name="idleTimeout" value="60" />
  </bean>
  <bean id="billingConf"
class="org.apache.camel.component.jms.JmsConfiguration">
    <property name="connectionFactory" ref="billingPool" />
    <property name="deliveryPersistent" value="true" />
    <property name="requestTimeout" value="10000" />
    <property name="preserveMessageQos" value="true" />
  </bean>
  <bean id="billingamq"
class="org.apache.activemq.camel.component.ActiveMQComponent">
    <property name="configuration" ref="billingConf" />
  </bean>


<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
                <property name="environment">
                        <props>
                                <prop
key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
                                <prop 
key="java.naming.provider.url">t3://localhost:7001
                                </prop>
                                <prop 
key="java.naming.security.principal">weblogic</prop>
                                <prop 
key="java.naming.security.credentials">weblogic123</prop>
                        </props>
                </property>
        </bean>
        <bean id="jndiFactoryBean"
class="org.springframework.jndi.JndiObjectFactoryBean">
                <property name="jndiName" value="jms.vass.ConnectionFactory" />
                <property name="jndiTemplate" ref="jndiTemplate" />
        </bean>
        <bean id="jndiDestinationResolver"
        
class="org.springframework.jms.support.destination.JndiDestinationResolver">
                <property name="jndiTemplate" ref="jndiTemplate" />
        </bean>
        <bean id="jmsConfiguration"
class="org.apache.camel.component.jms.JmsConfiguration">
                <property name="connectionFactory" ref="jndiFactoryBean" />
                <property name="destinationResolver" 
ref="jndiDestinationResolver" />
                <property name="concurrentConsumers" value="10" />
            <property name="transacted" value="true" />
            <property name="deliveryPersistent" value="true" />
            <property name="requestTimeout" value="10000" />
            <property name="cacheLevelName" value="CACHE_CONSUMER" />
        </bean>
        <bean id="mainamq" class="org.apache.camel.component.jms.JmsComponent">
                <property name="configuration" ref="jmsConfiguration" />
        </bean>

  <camel:camelContext xmlns="http://camel.apache.org/schema/spring";>
    <camel:route>
        <camel:from uri="mainamq:queue:jms.vass.billing.pr.claro.5121006" />
        <camel:log message="Sent message jms.vass.billing.pr.claro.5121006."
/>
        <camel:to uri="billingamq:queue:jms.vass.billing.pr.claro.5121006"
/>
    </camel:route>
    <camel:route>
        <camel:from uri="mainamq:queue:jms.vass.billing.pr.claro.5121009" />
        <camel:log message="Sent message jms.vass.billing.pr.claro.5121009."
/>
        <camel:to uri="billingamq:queue:jms.vass.billing.pr.claro.5121009"
/>
    </camel:route>
    <camel:route>
        <camel:from uri="mainamq:queue:jms.vass.billing.pr.claro.5121007" />
        <camel:log message="Sent message jms.vass.billing.pr.claro.5121007."
/>
        <camel:to uri="billingamq:queue:jms.vass.billing.pr.claro.5121007"
/>
    </camel:route>
  </camel:camelContext>

</beans>




and my POM



<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/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.cm</groupId>
  <artifactId>billing.pr.claro.wl</artifactId>
  <version>1.0</version>
  <packaging>bundle</packaging>
  
  <name>Billing Peru Claro</name>
  <url>http://www.conceptomovil.com</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  </properties>
  
        <dependencies>
                <dependency>
                        <groupId>org.apache.camel</groupId>
                        <artifactId>camel-core</artifactId>
                        <version>2.12.3</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.camel</groupId>
                        <artifactId>camel-spring</artifactId>
                        <version>2.12.3</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.camel</groupId>
                        <artifactId>camel-jms</artifactId>
                        <version>2.12.3</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.activemq</groupId>
                        <artifactId>activemq-core</artifactId>
                        <version>5.7.0</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.activemq</groupId>
                        <artifactId>activemq-camel</artifactId>
                        <version>5.7.0</version>
                </dependency>

                <dependency>
                        <groupId>com.oracle</groupId>
                        <artifactId>wlclient</artifactId>
                        <version>12.1.2.0</version>
                </dependency>
        </dependencies>
  
  
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
        <version>2.4.0</version>
        <configuration>
          <instructions>
            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
            <Private-Package>com.cm.vass.routes.*</Private-Package>
            <DynamicImport-Package>*</DynamicImport-Package>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>




message:



ERROR: Bundle billing.pr.claro.wl [192] Error starting
file:/Users/marcoisaaclaurrabaquio/Downloads/apache-servicemix-5.0.0/deploy/billing.pr.claro.wl-1.0.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle
billing.pr.claro.wl [192]: Unable to resolve 192.0: missing requirement
[192.0] osgi.wiring.package;
(&(osgi.wiring.package=org.apache.camel.component.jms)(version>=2.12.0)(!(version>=3.0.0))))
org.osgi.framework.BundleException: Unresolved constraint in bundle
billing.pr.claro.wl [192]: Unable to resolve 192.0: missing requirement
[192.0] osgi.wiring.package;
(&(osgi.wiring.package=org.apache.camel.component.jms)(version>=2.12.0)(!(version>=3.0.0)))
        at 
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
        at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
        at java.lang.Thread.run(Thread.java:744)





--
View this message in context: 
http://camel.465427.n5.nabble.com/Unable-to-resolve-192-0-missing-requirement-192-0-osgi-wiring-package-osgi-wiring-package-org-apache-tp5766392.html
Sent from the Camel Development mailing list archive at Nabble.com.

Reply via email to