camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Graf" <Benjamin.G...@gmx.net>
Subject Re: Dependencies of camel-spring
Date Tue, 09 Oct 2012 08:28:38 GMT
Well, look at that exception if using camel-spring without spring-osgi installed!

10:24:16,572 WARN  [org.jboss.modules] (ClassLoader Thread) Failed to define class org.apache.camel.osgi.CamelContextFactoryBean
in Module "deployment.org.apache.camel.camel-spring:2.10.0" from Service Module Loader: java.lang.LinkageError:
Failed to link org/apache/camel/osgi/CamelContextFactoryBean (Module "deployment.org.apache.camel.camel-spring:2.10.0"
from Service Module Loader)
        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396)
        at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)
        at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)
        at org.jboss.modules.FilteredLocalLoader.loadClassLocal(FilteredLocalLoader.java:46)
        at org.jboss.modules.Module.loadModuleClass(Module.java:517)
        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
        at org.jboss.modules.ConcurrentClassLoader.access$400(ConcurrentClassLoader.java:52)
        at org.jboss.modules.ConcurrentClassLoader$LoaderThread.run(ConcurrentClassLoader.java:627)
Caused by: java.lang.NoClassDefFoundError: org/springframework/osgi/context/BundleContextAware
        at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_04]
        at java.lang.ClassLoader.defineClass(ClassLoader.java:791) [rt.jar:1.7.0_04]
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [rt.jar:1.7.0_04]
        at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)
        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)
        ... 9 more
Caused by: java.lang.ClassNotFoundException: org.springframework.osgi.context.BundleContextAware
from [Module "deployment.org.apache.camel.camel-spring:2.10.0" from Service Module Loader]
        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
        ... 14 more

-------- Original-Nachricht --------
> Datum: Tue, 9 Oct 2012 10:13:04 +0200
> Von: Claus Ibsen <claus.ibsen@gmail.com>
> An: dev@camel.apache.org
> Betreff: Re: Dependencies of camel-spring

> On Tue, Oct 9, 2012 at 10:08 AM, Benjamin Graf <Benjamin.Graf@gmx.net>
> wrote:
> > Hi,
> >
> > does anybody knows why camel-spring still depends on spring-osgi? This
> bundle is gemini-blueprint since 2009 and won't be developed anymore. This
> fact forces to use an old unsupported bundle if you like camel with spring
> and OSGi. :-( I think it should change whether to create a new
> camel-gemini-bluepint component.
> >
> 
> The osgi stuff is optional. So you dont need to use them if not using
> spring-dm.
> 
> 
> > Regards,
> > Benjamin
> 
> 
> 
> -- 
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Email: cibsen@redhat.com
> Web: http://fusesource.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message