camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Anstey (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-1146) camel-mina adds two versions of slf4j on the classpath
Date Wed, 10 Dec 2008 12:54:06 GMT

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

Jonathan Anstey commented on CAMEL-1146:
----------------------------------------

Hi Christopher,

The work-around I have been using is this:

{code}
<dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-mina</artifactId>
      <version>1.5.0</version>
        <exclusions>
          <exclusion>
            <groupId>org.apache.mina</groupId>
            <artifactId>mina-core</artifactId>
          </exclusion>
        </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.mina</groupId>
      <artifactId>mina-core</artifactId>
      <version>1.1.7</version>
      <exclusions>
        <exclusion>
          <groupId>org.slf4j</groupId>
          <artifactId>slf4j-simple</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.slf4j</groupId>
          <artifactId>slf4j-api</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
{code}

The different version of slf4j seems to have no affect on mina (all mina unit tests passed)
so all should be well. 


> camel-mina adds two versions of slf4j on the classpath
> ------------------------------------------------------
>
>                 Key: CAMEL-1146
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1146
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-mina
>    Affects Versions: 1.5.0
>            Reporter: Jonathan Anstey
>            Assignee: Jonathan Anstey
>             Fix For: 1.5.1, 2.0.0
>
>
> One version comes from camel-mina (version 1.5.5) and one from mina-core (version 1.4.3).
This causes problems as seen when trying to use camel-mina at runtime or in my case deploying
to ServiceMix. This is the error I get
> {code}
> org.apache.xbean.kernel.ServiceRegistrationException: java.lang.NoSuchFieldError: name
> 	at org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:424)
> 	at org.apache.xbean.kernel.standard.StandardKernel.registerService(StandardKernel.java:220)
> 	at org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.java:152)
> 	at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:83)
> 	at org.apache.servicemix.camel.CamelSpringDeployer.deploy(CamelSpringDeployer.java:83)
> 	at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
> 	at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
> 	at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
> 	at org.apache.servicemix.jbi.framework.AutoDeploymentService.checkPendingSAs(AutoDeploymentService.java:482)
> 	at org.apache.servicemix.jbi.framework.AutoDeploymentService.checkPendingComponents(AutoDeploymentService.java:535)
> 	at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateSharedLibrary(AutoDeploymentService.java:317)
> 	at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:254)
> 	at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:667)
> 	at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)
> 	at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:631)
> 	at java.util.TimerThread.mainLoop(Timer.java:512)
> 	at java.util.TimerThread.run(Timer.java:462)
> Caused by: java.lang.NoSuchFieldError: name
> 	at org.slf4j.impl.SimpleLogger.<init>(SimpleLogger.java:83)
> 	at org.slf4j.impl.SimpleLoggerFactory.getLogger(SimpleLoggerFactory.java:67)
> 	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:103)
> 	at org.apache.mina.util.NamePreservingRunnable.<init>(NamePreservingRunnable.java:32)
> 	at org.apache.mina.transport.socket.nio.SocketAcceptor.startupWorker(SocketAcceptor.java:165)
> 	at org.apache.mina.transport.socket.nio.SocketAcceptor.bind(SocketAcceptor.java:141)
> 	at org.apache.camel.component.mina.MinaConsumer.doStart(MinaConsumer.java:60)
> 	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
> 	at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:421)
> 	at org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelContext.java:659)
> 	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:632)
> 	at org.apache.camel.spring.SpringCamelContext.maybeDoStart(SpringCamelContext.java:167)
> 	at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:162)
> 	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
> 	at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:97)
> 	at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:116)
> 	at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
> 	at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
> 	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
> 	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:246)
> 	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:617)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:355)
> 	at org.apache.xbean.server.spring.configuration.SpringConfiguration.<init>(SpringConfiguration.java:63)
> 	at org.apache.xbean.server.spring.configuration.SpringConfigurationServiceFactory.createService(SpringConfigurationServiceFactory.java:106)
> 	at org.apache.xbean.kernel.standard.ServiceManager.start(ServiceManager.java:420)
> 	at org.apache.xbean.kernel.standard.ServiceManager.initialize(ServiceManager.java:200)
> 	at org.apache.xbean.kernel.standard.RegistryFutureTask$RegisterCallable.call(RegistryFutureTask.java:110)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> 	at org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:409)
> {code}
>  

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


Mime
View raw message