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:
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.