Hi Charles,

Yes, this solves my problem. Thank you very much.
I could install those bundles you've listed by running these commands:

features:install spring
features:install spring-dm
features:install http
features:install war
features:addUrl mvn:org.apache.camel.karaf/apache-camel/2.2.0/xml/features
features:install camel
features:install camel-ftp

As I mentioned in one of my previous posts, I couldn't run this command
before:
>features:install camel-ftp 
I get: 
ERROR CommandLineExecutionFailed:
org.apache.geronimo.gshell.command.CommandException: java.lang.Exception: No
feature named 'camel-ftp' with version '0.0.0' available 

Which is why I didn't run:
>features:addUrl mvn:org.apache.camel.karaf/apache-camel/2.2.0/xml/features

Now my bundle is running without problem.

Best regards
Ilker


cmoulliard wrote:
> 
> I have been able to make a test using apache felix karaf 1.4.0 and Camel
> 2.2
> 
> Here is the list of the bundles deployed :
> 
> ka...@root> list
> START LEVEL 100
>    ID   State         Blueprint      Spring    Level  Name
> [   0] [Active     ] [            ] [       ] [    0] System Bundle
> (2.0.4)
> [   1] [Active     ] [            ] [       ] [    5] OPS4J Pax Url - mvn:
> (1.1.2)
> [   2] [Active     ] [            ] [       ] [    5] OPS4J Pax Url -
> wrap: (1.1.2)
> [   3] [Active     ] [            ] [       ] [    8] OPS4J Pax Logging -
> API (1.4)
> [   4] [Active     ] [            ] [       ] [    8] OPS4J Pax Logging -
> Service (1.4)
> [   5] [Active     ] [            ] [       ] [   10] Apache Felix
> Configuration Admin Service (1.2.4)
> [   6] [Active     ] [            ] [       ] [   10] Apache Felix
> Preferences Service (1.0.4)
> [   7] [Active     ] [            ] [       ] [   11] Apache Felix File
> Install (2.0.8)
> [   8] [Active     ] [Created     ] [       ] [   20] Apache Geronimo
> Blueprint Bundle (1.0.0)
> [   9] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Features Management (1.4.0)
> [  10] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Spring Deployer (1.4.0)
> [  11] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Features Deployer (1.4.0)
> [  12] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Shell Various Commands (1.4.0)
> [  13] [Active     ] [            ] [       ] [   30] Apache Mina SSHD ::
> Core (0.3.0)
> [  14] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Shell Development Commands (1.4.0)
> [  15] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Features Core (1.4.0)
> [  16] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Shell ConfigAdmin Commands (1.4.0)
> [  17] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Shell PackageAdmin Commands (1.4.0)
> [  18] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Blueprint Deployer (1.4.0)
> [  19] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: JAAS Modules (1.4.0)
> [  20] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Admin Management (1.4.0)
> [  21] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Shell OSGi Commands (1.4.0)
> [  22] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: JAAS Config (1.4.0)
> [  23] [Active     ] [            ] [       ] [   30]
> org.osgi.impl.bundle.jmx (4.2.0.200907080519)
> [  24] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Features Command (1.4.0)
> [  25] [Active     ] [            ] [       ] [   30] Apache Felix Gogo
> Shell Runtime (0.2.2)
> [  26] [Active     ] [            ] [       ] [   30] Apache MINA Core
> (2.0.0.RC1)
> [  27] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Shell Console (1.4.0)
> [  28] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Admin Core (1.4.0)
> [  29] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Management (1.4.0)
> [  30] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Admin Command (1.4.0)
> [  31] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Shell Log Commands (1.4.0)
> [  32] [Active     ] [Created     ] [       ] [   30] Apache Felix Karaf
> :: Shell SSH (1.4.0)
> [  33] [Active     ] [            ] [       ] [   60] Apache ServiceMix
> Bundles: aopalliance-1.0 (1.0.0.3)
> [  34] [Active     ] [            ] [       ] [   60] Spring Core
> (2.5.6.SEC01)
> [  35] [Active     ] [            ] [       ] [   60] Spring Beans
> (2.5.6.SEC01)
> [  36] [Active     ] [            ] [       ] [   60] Spring AOP
> (2.5.6.SEC01)
> [  37] [Active     ] [            ] [       ] [   60] Spring Context
> (2.5.6.SEC01)
> [  38] [Active     ] [            ] [       ] [   60] Spring Context
> Support (2.5.6.SEC01)
> [  39] [Active     ] [            ] [       ] [   60] Apache ServiceMix
> Bundles: cglib-2.1_3 (2.1.0.3_4)
> [  40] [Active     ] [            ] [       ] [   60] spring-osgi-io
> (1.2.0)
> [  41] [Active     ] [            ] [       ] [   60] spring-osgi-core
> (1.2.0)
> [  42] [Active     ] [            ] [       ] [   60] spring-osgi-extender
> (1.2.0)
> [  43] [Active     ] [            ] [       ] [   60]
> spring-osgi-annotation (1.2.0)
> [  44] [Active     ] [            ] [       ] [   60]
> geronimo-servlet_2.5_spec (1.1.2)
> [  45] [Active     ] [            ] [       ] [   60] Apache ServiceMix
> Bundles: jetty-6.1.22 (6.1.22.1)
> [  46] [Active     ] [            ] [       ] [   60] OPS4J Pax Web - API
> (0.7.2)
> [  47] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
> Service SPI (0.7.2)
> [  48] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
> Runtime (0.7.2)
> [  49] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
> Jetty (0.7.2)
> [  50] [Active     ] [            ] [       ] [   60] OPS4J Pax Web - Jsp
> Support (0.7.2)
> [  51] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
> Extender - WAR (0.7.2)
> [  52] [Active     ] [            ] [       ] [   60] OPS4J Pax Web -
> Extender - Whiteboard (0.7.2)
> [  53] [Active     ] [            ] [       ] [   60] OPS4J Pax Url -
> war:, war-i: (1.1.2)
> [  54] [Active     ] [Created     ] [       ] [   60] Apache Felix Karaf
> :: WAR Deployer (1.4.0)
> [  55] [Active     ] [            ] [       ] [   60] Apache ServiceMix
> Specs :: ACTIVATION API 1.4 (1.4.0)
> [  56] [Active     ] [            ] [       ] [   60] Apache ServiceMix
> Specs :: JAXB API 2.1 (1.4.0)
> [  57] [Active     ] [            ] [       ] [   60] Apache ServiceMix
> Specs :: STAX API 1.0 (1.4.0)
> [  58] [Active     ] [            ] [       ] [   60] Apache ServiceMix
> Bundles: jaxb-impl-2.1.12 (2.1.12.1)
> [  59] [Active     ] [            ] [       ] [   60] Commons Management
> (1.0)
> [  60] [Active     ] [            ] [       ] [   60] camel-core (2.2.0)
> [  61] [Active     ] [Created     ] [       ] [   60] Apache Felix Karaf
> :: Spring Deployer (1.2.0)
> [  62] [Active     ] [            ] [       ] [   60]
> geronimo-jta_1.1_spec (1.1.1)
> [  63] [Active     ] [            ] [       ] [   60] Spring Transaction
> (2.5.6.SEC01)
> [  64] [Active     ] [            ] [       ] [   60] camel-spring-osgi
> (2.2.0)
> [  65] [Active     ] [            ] [       ] [   60] Commons Pool (1.5.4)
> [  66] [Active     ] [            ] [       ] [   60]
> geronimo-jms_1.1_spec (1.1.1)
> [  67] [Active     ] [            ] [       ] [   60] Spring JMS
> (2.5.6.SEC01)
> [  68] [Active     ] [            ] [       ] [   60] camel-jms (2.2.0)
> [  70] [Active     ] [            ] [       ] [   60] Commons Net (2.0)
> [  71] [Active     ] [            ] [       ] [   60] Apache ServiceMix
> Bundles: jsch-0.1.31 (0.1.31.3)
> [  72] [Active     ] [            ] [       ] [   60] camel-ftp (2.2.0)
> [  73] [Active     ] [            ] [Started] [   60] camel-context.xml
> (0.0.0)
> 
> The camel route 
> 
> <beans xmlns="http://www.springframework.org/schema/beans";
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>       xmlns:context="http://www.springframework.org/schema/context";
>       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://www.springframework.org/schema/context
>         http://www.springframework.org/schema/context/spring-context.xsd
>               http://camel.apache.org/schema/osgi
>               http://camel.apache.org/schema/osgi/camel-osgi.xsd
>               http://camel.apache.org/schema/spring
>               http://camel.apache.org/schema/spring/camel-spring.xsd";>
>               
> 
>       <camel:camelContext trace="true"
> xmlns="http://camel.apache.org/schema/osgi";>
> 
>               <camel:route>
>                       <camel:from uri="file://d:/temp/data/reportincident/"/>
>                       <camel:to
> uri="ftp://[email protected]/public/upload/images/holiday2008?password=secret&amp;binary=true";
> />
>               </camel:route>
> 
>       </camel:camelContext>
>               
> </beans>
> 
> And the log
> 
> 180 >>> (route1) from(file://d:/temp/data/reportincident/) -->
> ftp://[email protected]/public/upload/images/holiday2008?binary=true&password=s
> ecret <<< Pattern:InOnly, Headers:{CamelFileLastModified=Wed Apr 14
> 11:26:59 CEST 2010, CamelFileAbsolute=true, CamelFileName=test.txt,
> CamelFileParen
> t=d:\temp\data\reportincident,
> CamelFileAbsolutePath=d:\temp\data\reportincident\test.txt,
> CamelFileRelativePath=d:\temp\data\reportincident\test.txt,
>  CamelFileNameOnly=test.txt,
> CamelFilePath=d:\temp\data\reportincident\test.txt},
> BodyType:org.apache.camel.component.file.GenericFile, Body:
> 11:27:48,225 | WARN  | 0: FileComponent | RemoteFileProducer              
> | t.file.remote.RemoteFileProducer   73 | Writing file failed with: File
> op
> eration failed: null someftpserver.com. Code: 0
> 11:27:48,225 | ERROR | 0: FileComponent | DefaultErrorHandler             
> | rg.apache.camel.processor.Logger  248 | Failed delivery for exchangeId:
> c
> 9ccf786-4677-495e-9f2d-035cd489d180. Exhausted after delivery attempt: 1
> caught:
> org.apache.camel.component.file.GenericFileOperationFailedException:
> File operation failed: null someftpserver.com. Code: 0
> org.apache.camel.component.file.GenericFileOperationFailedException: File
> operation failed: null someftpserver.com. Code: 0
> 
> The FTP server is a virtual one so the connection cannot be established.
> 
> Kind regards,
> 
> Charles
> 
> 
> cmoulliard wrote:
>> 
>> Those packages are present in the JDK 6 and should be loaded
>> automatically
>> by karaf (felix) at the startup.
>> 
>> Can you send me in a separate email (using my gmail address) your camel
>> route to allow me to make a test with the components that you would like
>> to
>> test (camel-ftp, ...)
>> 
>> Kind regards,
>> 
>> Charles Moulliard
>> 
>> Senior Enterprise Architect (J2EE, .NET, SOA)
>> Apache Camel Committer
>> 
>> *******************************************************************
>> - Blog : http://cmoulliard.blogspot.com
>> - Twitter : http://twitter.com/cmoulliard
>> - Linkedlin : http://www.linkedin.com/in/charlesmoulliard
>> 
>> 
>> On Wed, Apr 14, 2010 at 10:52 AM, olamalam
>> <[email protected]>wrote:
>> 
>>>
>>> OK, I'll remove those lines but should I install those features included
>>> in
>>> JDK 6 (like javax.xml.bind or javax.jms) to karaf?
>>> I think there is something wrong with it.
>>> Thanks
>>>
>>>
>>> cmoulliard wrote:
>>> >
>>> > Hi
>>> >
>>> > You are right. Those lines have been removed from config.properties of
>>> > Karaf
>>> > but not from Servicemix version.
>>> >
>>> > So remove them,
>>> >
>>> > Kind regards,
>>> >
>>> > Charles Moulliard
>>> >
>>> > Senior Enterprise Architect (J2EE, .NET, SOA)
>>> > Expert : ServiceMix, CXF, ActiveMq, Fuse, ESB, EAI, Spring, Struts,
>>> > Wicket,
>>> > Jquery, JPA, Hibernate
>>> > Apache Camel Committer
>>> >
>>> > *******************************************************************
>>> > - Blog : http://cmoulliard.blogspot.com
>>> > - Twitter : http://twitter.com/cmoulliard
>>> > - Linkedlin : http://www.linkedin.com/in/charlesmoulliard
>>> >
>>> >
>>> > On Wed, Apr 14, 2010 at 10:42 AM, olamalam
>>> > <[email protected]>wrote:
>>> >
>>> >>
>>> >> Hi Charles,
>>> >>
>>> >> I'm using JDK 6 but I couldn't see those lines you mentioned in
>>> >> etc/config.properties
>>> >> I've updated that file and added javax.xml.bind... lines but this
>>> time
>>> >> I'm
>>> >> getting this exception at startup:
>>> >> ERROR: Error parsing system bundle export statement: ...
>>> >> org.apache.felix.karaf.version; version=1.4.0
>>> >> (java.lang.IllegalArgumentException: No paths specified in header: )
>>> >> java.lang.IllegalArgumentException: No paths specified in header:....
>>> >>
>>> >> ps. When I try to install activemq-camel component by:
>>> >> osgi:install -s mvn:org.apache.activemq/activemq-camel/5.2.0
>>> >>
>>> >> I get another unresolved constraint exception for package javax.jms
>>> which
>>> >> is
>>> >> not included in etc/config.properties either.
>>> >>
>>> >> Sorry for bothering too much, best regards
>>> >> Ilker
>>> >>
>>> >>
>>> >> cmoulliard wrote:
>>> >> >
>>> >> > Which version of Java are you using (5 or 6) ? If you use JDK 6,
>>> those
>>> >> > classes are provided by the jdk
>>> >> >
>>> >> > To allow the osgi server (felix) to load at the startup the
>>> >> javax.xml.bind
>>> >> > classes, you must uncomment the following line under the file
>>> >> > etc/config.properties
>>> >> >
>>> >> > # javax.xml.bind, \
>>> >> > # javax.xml.bind.annotation, \
>>> >> > # javax.xml.bind.annotation.adapters, \
>>> >> > # javax.xml.bind.attachment, \
>>> >> > # javax.xml.bind.helpers, \
>>> >> > # javax.xml.bind.util, \
>>> >> >
>>> >> > Kind regards,
>>> >> >
>>> >> > Charles Moulliard
>>> >> > Senior Enterprise Architect
>>> >> > Apache Camel Committer
>>> >> >
>>> >> > *****************************
>>> >> > blog : http://cmoulliard.blogspot.com
>>> >> > twitter : http://twitter.com/cmoulliard
>>> >> > Linkedlin : http://www.linkedin.com/in/charlesmoulliard
>>> >> >
>>> >> > Apache Camel Group :
>>> >> > http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm
>>> >> >
>>> >> >
>>> >> > On Tue, Apr 13, 2010 at 5:29 PM, olamalam
>>> >> > <[email protected]>wrote:
>>> >> >
>>> >> >>
>>> >> >> Hello again Willem,
>>> >> >>
>>> >> >> I tried to install camel-ftp in Felix Karaf 1.4.0 too but it is
>>> >> >> requesting
>>> >> >> some libraries (for ex: javax.xml.bind) included in Java sdk.
>>> Should
>>> I
>>> >> >> also
>>> >> >> install those bundles too?
>>> >> >>
>>> >> >> Please note that I run this command:
>>> >> >> >osgi:install -s mvn:org.apache.camel/camel-ftp/2.2.0
>>> >> >>
>>> >> >> Thanks
>>> >> >>
>>> >> >>
>>> >> >> willem.jiang wrote:
>>> >> >> >
>>> >> >> > Can you also try Felix Karaf 1.4.0 which is latest release
>>> version
>>> >> of
>>> >> >> > ServiceMix kernel ?
>>> >> >> > And using feature:install camel-ftp to install the bundle for
>>> >> >> camel-ftp.
>>> >> >> >
>>> >> >> > Willem
>>> >> >> >
>>> >> >> > olamalam wrote:
>>> >> >> >> Hi willem,
>>> >> >> >>
>>> >> >> >> I uninstalled camel-spring & camel-osgi and installed
>>> >> >> camel-spring-osgi.
>>> >> >> >> but I'm still getting the same exception.
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> willem.jiang wrote:
>>> >> >> >>> Hi,
>>> >> >> >>>
>>> >> >> >>> Please make sure you didn't install camel-spring-osgi and
>>> >> >> camel-spring
>>> >> >> >>> bundle at the same time.
>>> >> >> >>> We merged the camel-sping and camel-osgi bundle into
>>> >> >> camel-spring-osgi
>>> >> >> >>> in Camel 2.2, so you just need to install camel-spring-osgi
>>> bundle
>>> >> >> >>> instead of camel-spring and camel-osgi.
>>> >> >> >>>
>>> >> >> >>> Willem
>>> >> >> >>>
>>> >> >> >>> olamalam wrote:
>>> >> >> >>>> Hi to all,
>>> >> >> >>>>
>>> >> >> >>>> I'm trying to develop a hello world bundle for serviceMix
>>> kernel
>>> >> >> (1.1)
>>> >> >> >>>> which
>>> >> >> >>>> uses camel-ftp component.
>>> >> >> >>>> My aim is to run this route:
>>> >> >> >>>> from("file://../data?noop=true").to("ftp://test@
>>> >> >> 127.0.0.1:21/?password=test");
>>> >> >> >>>> Although this route runs without problem in a stand alone
>>> >> >> application,
>>> >> >> >>>> when
>>> >> >> >>>> i deploy it in serviceMix kernel
>>> >> >> >>>> I get FailedToCreateRouteException due to "No component found
>>> >> with
>>> >> >> >>>> scheme:
>>> >> >> >>>> ftp".
>>> >> >> >>>>
>>> >> >> >>>> To solve the problem what i did so far are:
>>> >> >> >>>> 1- deployed camel-ftp 2.2 bundle to serviceMix.
>>> >> >> >>>> 2- added camel-ftp package
>>> >> (org.apache.camel.component.file.remote)
>>> >> >> to
>>> >> >> >>>> import-packages.
>>> >> >> >>>> now when I run "headers bundle#" in serviceMix I can see this
>>> >> >> imported
>>> >> >> >>>> package.
>>> >> >> >>>>
>>> >> >> >>>> What else I can do?
>>> >> >> >>>> Thanks in advance
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >>
>>> >> >> --
>>> >> >> View this message in context:
>>> >> >>
>>> >>
>>> http://old.nabble.com/Camel-ftp-component-problem-tp28218210p28231893.html
>>> >> >> Sent from the Camel - Users mailing list archive at Nabble.com.
>>> >> >>
>>> >> >>
>>> >> >
>>> >> >
>>> >> > -----
>>> >> > Charles Moulliard
>>> >> > SOA Architect
>>> >> >
>>> >> > My Blog : http://cmoulliard.blogspot.com/
>>> >> >
>>> >>
>>> >> --
>>> >> View this message in context:
>>> >>
>>> http://old.nabble.com/Camel-ftp-component-problem-tp28218210p28239946.html
>>> >> Sent from the Camel - Users mailing list archive at Nabble.com.
>>> >>
>>> >>
>>> >
>>> >
>>> > -----
>>> > Charles Moulliard
>>> > SOA Architect
>>> >
>>> > My Blog : http://cmoulliard.blogspot.com/
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Camel-ftp-component-problem-tp28218210p28240026.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>
>>>
>> 
>> 
>> -----
>> Charles Moulliard
>> SOA Architect
>> 
>> My Blog : http://cmoulliard.blogspot.com/  
>> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Camel-ftp-component-problem-tp28218210p28242162.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to