[ 
https://issues.apache.org/activemq/browse/CAMEL-1953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53838#action_53838
 ] 

Claus Ibsen commented on CAMEL-1953:
------------------------------------

You need all the dependent classes camel-ftp requires

If you use maven you get this for free. Here is the list
{code}
[INFO] The following files have been resolved:
[INFO]    aopalliance:aopalliance:jar:1.0:test
[INFO]    com.sun.xml.bind:jaxb-impl:jar:2.1.10:compile
[INFO]    commons-logging:commons-logging:jar:1.1.1:test
[INFO]    commons-logging:commons-logging-api:jar:1.1:compile
[INFO]    commons-net:commons-net:jar:2.0:compile
[INFO]    javax.activation:activation:jar:1.1:compile
[INFO]    javax.xml.bind:jaxb-api:jar:2.1:compile
[INFO]    javax.xml.stream:stax-api:jar:1.0-2:compile
[INFO]    jsch:jsch:jar:0.1.40:compile
[INFO]    junit:junit:jar:4.4:test
[INFO]    log4j:log4j:jar:1.2.14:test
[INFO]    org.apache.camel:camel-core:jar:2.1-SNAPSHOT:compile
[INFO]    org.apache.camel:camel-spring:jar:2.1-SNAPSHOT:test
[INFO]    org.apache.camel:camel-test:jar:2.1-SNAPSHOT:test
[INFO]    org.apache.ftpserver:ftplet-api:jar:1.0.0:test
[INFO]    org.apache.ftpserver:ftpserver-core:jar:1.0.0:test
[INFO]    org.apache.mina:mina-core:jar:2.0.0-M4:test
[INFO]    org.slf4j:slf4j-api:jar:1.5.6:test
[INFO]    org.slf4j:slf4j-log4j12:jar:1.5.6:test
[INFO]    org.springframework:spring-aop:jar:2.5.6:test
[INFO]    org.springframework:spring-beans:jar:2.5.6:test
[INFO]    org.springframework:spring-context:jar:2.5.6:test
[INFO]    org.springframework:spring-core:jar:2.5.6:test
[INFO]    org.springframework:spring-tx:jar:2.5.6:test
{code}

E.g. you need jsch jar on classpath for the SFTP part

> DefaultPackageScanClassResolver gives warning when matching anonymous inner 
> class SftpOperations$1.class
> --------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1953
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1953
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.0.0
>         Environment: N/A
>            Reporter: Alan Feng
>            Priority: Minor
>
> During a package scan in the DefaultPackageScanClassResolver class, it gives 
> warning:
> WARN  [DefaultPackageScanClassResolver] Could not find class 
> 'org/apache/camel/component/file/remote/SftpOperations$1.class' in any 
> classloaders: [sun.misc.launcher$appclassloa...@567c567c]
> However, the SftpOperations$1.class exists in the camel-ftp-2.0.0.jar file.
> To recreate this problem, use the following test class and make sure only 
> include commons-logging.jar, camel-core-2.0.0.jar, and camel-ftp-2.0.0.jar in 
> the classpath.
> import org.apache.camel.CamelContext;
> import org.apache.camel.builder.RouteBuilder;
> import org.apache.camel.impl.DefaultCamelContext;
> public class CamelTest {
>     public static void main(String[] args) throws Exception{
>         CamelContext context = new DefaultCamelContext();
>         context.start();
>         
>         context.addRoutes(new RouteBuilder() {
>             @Override
>             public void configure() throws Exception {
>                 from("direct:start").to("log:test?level=INFO");
>             }
>         });
>         context.createProducerTemplate().sendBody("direct:start", "test");
>     }
> }
> This bug can be reproduced with both IBM and Sun JDK.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to