1 Reply Latest reply on Apr 27, 2011 11:18 AM by davsclaus

    jar-with-dependencies file transfer issue

    woggle23

      Afternoon team

       

      I'm having an issue moving files when attempting run an executable packaged as a jar file. I used the following route to illustrate the problem:

       

      from("file:c:
      mftest1").to("file:c:
      mftest2");

       

      Running this from my development area ran fine, transferring files as expected; i.e. using 'mvn camel:run'. However, I used maven to package the application into a "jar-with-dependencies", by adding the following entry in my pom.xml file:

       

       

       

      The executable launched as expected until I stimulated the route's input (by manually copying a file into the directory). The following exception was raised:

       

      org.apache.camel.component.file.GenericFileOperationFailedException: Cannot store file c:\mftest2\msg.txt

       

      Any ideas why this is happening? What's missing from my .jar file.

       

      Many thanks in advance for your help.

       

      Matt