Hi,
I solved the problem by upgrading my tomcat version. I got the error only on 
Tomcat 7.0.53 on Linux but not on 8.0.24 on Linux and not on 7.0.47 on Windows.

Best regards,
David

-----Original Message-----
From: David Latorre [mailto:dvl...@gmail.com] 
Sent: Donnerstag, 9. Juli 2015 00:14
To: ftpserver-users@mina.apache.org
Subject: Re: Problem with FTPServer / MINA on Tomcat

Try removing the Mina-core dependency.  It doesn't specify the version number 
and it is probably being included as a transitive dependency of Mina ftpserver 
anyway.
In case mina-core didn't get included,  specify the correct version (2.0.4 I 
think) for the library El 08/07/2015 12:33, "David Weisgerber" 
<david.weisger...@ms-gmbh.de>
escribió:

> Hi there,
> for some days I am struggling to get the FTPServer running on my 
> Tomcat instance. I have my implementatio for the FTPServer, as I need 
> it, running in a jUnit-test environment but as soon as I deploy it to 
> tomcat I get the following Error (not Exception(!)) as soon as a 
> client connects to the
> FTPServer:
> Exception in thread "pool-1-thread-1"
> java.lang.IncompatibleClassChangeError
>         at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.register(DefaultIoFilterChain.java:277)
>         at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.addLast(DefaultIoFilterChain.java:174)
>         at
> org.apache.mina.core.filterchain.DefaultIoFilterChainBuilder.buildFilterChain(DefaultIoFilterChainBuilder.java:452)
>         at
> org.apache.mina.core.polling.AbstractPollingIoProcessor.addNow(AbstractPollingIoProcessor.java:530)
>         at
> org.apache.mina.core.polling.AbstractPollingIoProcessor.handleNewSessions(AbstractPollingIoProcessor.java:503)
>         at
> org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:68)
>         at
> org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1133)
>         at
> org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
>
> I am totally unsure which component is in conflict and causes this error.
> I think that SLF4J and Mina-core should be in the correct version. Can 
> this error come because of some weird problem with AOP components 
> coming with Spring?
> This is how I add the dependencies to Spring:
>                 <dependency>
>                         <groupId>org.apache.ftpserver</groupId>
>                         <artifactId>ftpserver-core</artifactId>
>                         <version>1.0.6</version>
>                         <exclusions>
>                                 <exclusion>
>
> <groupId>org.springframework</groupId>
>
> <artifactId>spring-context</artifactId>
>                                 </exclusion>
>                         </exclusions>
>                 </dependency>
>                 <dependency>
>                         <groupId>org.apache.mina</groupId>
>                         <artifactId>mina-core</artifactId>
>                 </dependency>
>
>
> Thanks for help,
>
> Mit freundlichen Grüßen,
> David Weisgerber
>
> ---
> David Weisgerber
> Software Entwickler
> M&S GmbH
> Leibnizstraße 7
> 85521 Ottobrunn

Reply via email to