You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by lyonn <cr...@gmail.com> on 2014/04/24 03:18:13 UTC

problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError

Hello 

I am newbie with ServiceMix. I am trying to configure some routes for
passing messages between activemq 5.9.0 brokers. 



Output:

20:11:31,577 | ERROR | ExtenderThread-2 | ContextLoaderListener            |
82 - org.springframework.osgi.extender - 1.2.1 | Application context refresh
failed (OsgiBundleXmlApplicationContext(bundle=endpoint-route,
config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.CannotLoadBeanClassException: Error
loading class [org.apache.activemq.camel.component.ActiveMQComponent] for
bean with name 'mainamq' defined in URL
[bundle://200.0:0/META-INF/spring/camel-context.xml]: problem with class
file or dependent class; nested exception is java.lang.NoClassDefFoundError:
org.apache.activemq.camel.component.ActiveMQComponent not found from bundle
[Enpoint Routing Rules (endpoint-route)]
	at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1264)[71:org.springframework.beans:3.0.7.RELEASE]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575)[71:org.springframework.beans:3.0.7.RELEASE]
	at
org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1330)[71:org.springframework.beans:3.0.7.RELEASE]
	at
org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:896)[71:org.springframework.beans:3.0.7.RELEASE]
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:566)[71:org.springframework.beans:3.0.7.RELEASE]
	at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)[73:org.springframework.context:3.0.7.RELEASE]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[79:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[79:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[79:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[79:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[82:org.springframework.osgi.extender:1.2.1]
	at java.lang.Thread.run(Thread.java:662)[:1.6.0_45]
Caused by: java.lang.NoClassDefFoundError:
org.apache.activemq.camel.component.ActiveMQComponent not found from bundle
[Enpoint Routing Rules (endpoint-route)]
	at
org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:112)
	at
org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_45]
	at
org.springframework.util.ClassUtils.forName(ClassUtils.java:257)[77:org.springframework.core:3.0.7.RELEASE]
	at
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408)[71:org.springframework.beans:3.0.7.RELEASE]
	at
org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1282)[71:org.springframework.beans:3.0.7.RELEASE]
	at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1253)[71:org.springframework.beans:3.0.7.RELEASE]
	... 11 more
Caused by: java.lang.NoClassDefFoundError:
org/apache/camel/spi/EndpointCompleter
	at java.lang.ClassLoader.defineClass1(Native Method)[:1.6.0_45]
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)[:1.6.0_45]
	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)[:1.6.0_45]
	at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1947)
	at
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:752)
	at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:72)
	at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1807)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_45]
	at
org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:670)
	at org.apache.felix.framework.resolver.WireImpl.getClass(WireImpl.java:102)
	at
org.apache.felix.framework.ModuleImpl.searchImports(ModuleImpl.java:1426)
	at
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:747)
	at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:72)
	at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1807)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_45]
	at
org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:670)
	at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1654)
	at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:909)
	at
org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
	... 17 more
Caused by: java.lang.ClassNotFoundException:
org.apache.camel.spi.EndpointCompleter not found by
org.apache.activemq.activemq-camel [202]
	at
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:812)[org.apache.felix.framework-3.2.2.jar:]
	at
org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:72)[org.apache.felix.framework-3.2.2.jar:]
	at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1807)[org.apache.felix.framework-3.2.2.jar:]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_45]
	... 36 more
20:11:38,026 | WARN  | rint Extender: 3 | LocalFeaturesListener            |
186 - org.apache.karaf.cellar.features - 2.2.4 | CELLAR FEATURES: feature
cellar is marked as BLOCKED OUTBOUND
20:11:39,358 | WARN  | rint Extender: 3 | FeaturesSynchronizer             |
186 - org.apache.karaf.cellar.features - 2.2.4 | CELLAR FEATURES: feature
cellar is marked as BLOCKED INBOUND
20:11:39,474 | WARN  | rint Extender: 3 | FeaturesSynchronizer             |
186 - org.apache.karaf.cellar.features - 2.2.4 | CELLAR FEATURES: feature
cellar is marked as BLOCKED INBOUND
20:11:39,493 | INFO  | rint Extender: 3 | FeaturesSynchronizer             |
186 - org.apache.karaf.cellar.features - 2.2.4 | CELLAR FEATURES: Pulling
features from group default.
20:11:40,086 | WARN  | rint Extender: 3 | FeaturesSupport                  |
186 - org.apache.karaf.cellar.features - 2.2.4 | CELLAR FEATURES: feature
cellar is marked as BLOCKED OUTBOUND
20:11:40,087 | WARN  | rint Extender: 3 | FeaturesSupport                  |
186 - org.apache.karaf.cellar.features - 2.2.4 | CELLAR FEATURES: feature
cellar is marked as BLOCKED OUTBOUND

this is my xml (extract):

<camel:route>
      <camel:from uri="endpointamq:queue:jms.endpoint.kannel.routing" />
      <camel:log message="Sent message: jms.endpoint.kannel.routing" />
      <camel:to uri="mainamq:queue:jms.vass.kannel.routing" />
    </camel:route>


Regards





--
View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-class-file-or-dependent-class-nested-exception-is-java-lang-NoClassDefFoundError-tp5720065.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError

Posted by lyonn <cr...@gmail.com>.
Hi

I have next output:

vasspre@root> packages:exports | grep org.apache.activemq.camel.component
   107 org.apache.activemq.camel.component; version=5.7.0
   202 org.apache.activemq.camel.component; version=5.9.0
   202 org.apache.activemq.camel.component.broker; version=5.9.0



--
View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-class-file-or-dependent-class-nested-exception-is-java-lang-NoClassDefFoundError-tp5720065p5720074.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError

Posted by lyonn <cr...@gmail.com>.
That's right. I have removed the reference from my pom. Im having troubles
with other things, but it was solved.

Thanks a lot!



--
View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-class-file-or-dependent-class-nested-exception-is-java-lang-NoClassDefFoundError-tp5720065p5720097.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

Somehow you Import-Package com.cm.vass.routes, is it in bundle  endpoint-route?
If so, you can specify it as Private-Package.
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat



On 2014-4-29, at 上午6:41, lyonn wrote:

> Im reduce the features into my XML, but now, Im getting the next trouble:
> 
> 
> org.osgi.framework.BundleException: Unresolved constraint in bundle
> endpoint-route [217]: Unable to resolve 217.2: missing requirement [217.2]
> package; (package=*com.cm.vass.routes*)
> 	at
> org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564)[org.apache.felix.framework-3.2.2.jar:]
> 	at
> org.apache.felix.framework.Felix.startBundle(Felix.java:1797)[org.apache.felix.framework-3.2.2.jar:]
> 	at
> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:927)[org.apache.felix.framework-3.2.2.jar:]
> 	at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1244)[7:org.apache.felix.fileinstall:3.2.4]
> 	at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1216)[7:org.apache.felix.fileinstall:3.2.4]
> 	at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:505)[7:org.apache.felix.fileinstall:3.2.4]
> 	at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)[7:org.apache.felix.fileinstall:3.2.4]
> 
> The package in bold are mine. Have I set osgi modules in order to recognize
> my packet?
> 
> 
> 
> 
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-class-file-or-dependent-class-nested-exception-is-java-lang-NoClassDefFoundError-tp5720065p5720092.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError

Posted by lyonn <cr...@gmail.com>.
Im reduce the features into my XML, but now, Im getting the next trouble:


org.osgi.framework.BundleException: Unresolved constraint in bundle
endpoint-route [217]: Unable to resolve 217.2: missing requirement [217.2]
package; (package=*com.cm.vass.routes*)
	at
org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564)[org.apache.felix.framework-3.2.2.jar:]
	at
org.apache.felix.framework.Felix.startBundle(Felix.java:1797)[org.apache.felix.framework-3.2.2.jar:]
	at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:927)[org.apache.felix.framework-3.2.2.jar:]
	at
org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1244)[7:org.apache.felix.fileinstall:3.2.4]
	at
org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1216)[7:org.apache.felix.fileinstall:3.2.4]
	at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:505)[7:org.apache.felix.fileinstall:3.2.4]
	at
org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)[7:org.apache.felix.fileinstall:3.2.4]

The package in bold are mine. Have I set osgi modules in order to recognize
my packet?




--
View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-class-file-or-dependent-class-nested-exception-is-java-lang-NoClassDefFoundError-tp5720065p5720092.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

Seems you messed up the Camel|Activemq version in SMX 4.5.3

SMX 4.5.3 ships Camel 2.10.7 and Activemq 5.7.0 by default. I'd say change to other camel/activemq version isn't that easy, you need adjust lots of dependency versions as well and verify they can work together,  and you are pretty much on your own in this case.

You can use SMX 5.0.0 if you need more recent Activemq and Camel versions.
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat



On 2014-4-25, at 上午8:28, lyonn wrote:

> Now, I am getting:
> 
> Error while starting bundle:
> file:/opt/SERVICEMIX/apache-servicemix-4.5.3/deploy/endpoint-route-0.0.1-SNAPSHOT.jar
> org.osgi.framework.BundleException: Unresolved constraint in bundle
> endpoint-route [208]: Unable to resolve 208.0: missing requirement [208.0]
> package;
> (&(package=org.apache.camel.spi)(version>=2.12.0)(!(version>=3.0.0)))
> 	at
> org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564)[org.apache.felix.framework-3.2.2.jar:]
> 	at
> org.apache.felix.framework.Felix.startBundle(Felix.java:1797)[org.apache.felix.framework-3.2.2.jar:]
> 	at
> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:927)[org.apache.felix.framework-3.2.2.jar:]
> 	at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1244)[7:org.apache.felix.fileinstall:3.2.4]
> 	at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1216)[7:org.apache.felix.fileinstall:3.2.4]
> 	at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:505)[7:org.apache.felix.fileinstall:3.2.4]
> 	at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)[7:org.apache.felix.fileinstall:3.2.4]
> 
> 
> 
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-class-file-or-dependent-class-nested-exception-is-java-lang-NoClassDefFoundError-tp5720065p5720076.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError

Posted by lyonn <cr...@gmail.com>.
Now, I am getting:

 Error while starting bundle:
file:/opt/SERVICEMIX/apache-servicemix-4.5.3/deploy/endpoint-route-0.0.1-SNAPSHOT.jar
org.osgi.framework.BundleException: Unresolved constraint in bundle
endpoint-route [208]: Unable to resolve 208.0: missing requirement [208.0]
package;
(&(package=org.apache.camel.spi)(version>=2.12.0)(!(version>=3.0.0)))
	at
org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564)[org.apache.felix.framework-3.2.2.jar:]
	at
org.apache.felix.framework.Felix.startBundle(Felix.java:1797)[org.apache.felix.framework-3.2.2.jar:]
	at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:927)[org.apache.felix.framework-3.2.2.jar:]
	at
org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1244)[7:org.apache.felix.fileinstall:3.2.4]
	at
org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1216)[7:org.apache.felix.fileinstall:3.2.4]
	at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:505)[7:org.apache.felix.fileinstall:3.2.4]
	at
org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)[7:org.apache.felix.fileinstall:3.2.4]



--
View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-class-file-or-dependent-class-nested-exception-is-java-lang-NoClassDefFoundError-tp5720065p5720076.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError

Posted by lyonn <cr...@gmail.com>.
 ____                  _          __  __ _
/ ___|  ___ _ ____   _(_) ___ ___|  \/  (_)_  __
\___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ /
 ___) |  __/ |   \ V /| | (_|  __/ |  | | |>  <
|____/ \___|_|    \_/ |_|\___\___|_|  |_|_/_/\_\

  Apache ServiceMix (4.5.3)



--
View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-class-file-or-dependent-class-nested-exception-is-java-lang-NoClassDefFoundError-tp5720065p5720075.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

What SMX version you are using?

What you get from 
packages:exports |grep org.apache.activemq.camel.component
?
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat



On 2014-4-24, at 上午9:48, lyonn wrote:

> Searching I found this:
> 
> 
> vasspre@root> osgi:list | grep activemq
> [  44] [Active     ] [Created     ] [       ] [   50] activemq-broker.xml
> (0.0.0)
> [  61] [Active     ] [            ] [       ] [   50] activemq-pool (5.7.0)
> [  62] [Active     ] [            ] [       ] [   50] activemq-console
> (5.7.0)
> [  63] [Active     ] [            ] [       ] [   50] activemq-ra (5.7.0)
> [  64] [Active     ] [Created     ] [       ] [   50] activemq-core (5.7.0)
> [  65] [Active     ] [Created     ] [       ] [   50] activemq-karaf (5.7.0)
> [  69] [Resolved   ] [            ] [       ] [   50] activemq-blueprint
> (5.7.0)
> [  85] [Active     ] [            ] [       ] [   50] activemq-spring
> (5.7.0)
> [ 107] [Active     ] [            ] [       ] [   50] activemq-camel (5.7.0)
> *[ 202] [Resolved   ] [            ] [       ] [   80] activemq-camel
> (5.9.0)*
> 
> does this it normal?
> 
> 
> 
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-class-file-or-dependent-class-nested-exception-is-java-lang-NoClassDefFoundError-tp5720065p5720069.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError

Posted by lyonn <cr...@gmail.com>.
Searching I found this:


vasspre@root> osgi:list | grep activemq
[  44] [Active     ] [Created     ] [       ] [   50] activemq-broker.xml
(0.0.0)
[  61] [Active     ] [            ] [       ] [   50] activemq-pool (5.7.0)
[  62] [Active     ] [            ] [       ] [   50] activemq-console
(5.7.0)
[  63] [Active     ] [            ] [       ] [   50] activemq-ra (5.7.0)
[  64] [Active     ] [Created     ] [       ] [   50] activemq-core (5.7.0)
[  65] [Active     ] [Created     ] [       ] [   50] activemq-karaf (5.7.0)
[  69] [Resolved   ] [            ] [       ] [   50] activemq-blueprint
(5.7.0)
[  85] [Active     ] [            ] [       ] [   50] activemq-spring
(5.7.0)
[ 107] [Active     ] [            ] [       ] [   50] activemq-camel (5.7.0)
*[ 202] [Resolved   ] [            ] [       ] [   80] activemq-camel
(5.9.0)*

does this it normal?



--
View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-class-file-or-dependent-class-nested-exception-is-java-lang-NoClassDefFoundError-tp5720065p5720069.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError

Posted by "Sobkowiak, Krzysztof" <kr...@gmail.com>.
Hi

Please look at the stacktrace

Caused by: java.lang.ClassNotFoundException:
org.apache.camel.spi.EndpointCompleter not found by
org.apache.activemq.activemq-camel [202]

You should also import  org.apache.camel.spi package

You don't need to install activemq-camel/5.9.0. You have already
installed activemq-camel/5.7.0

Regards
Krzysztof



On 24.04.2014 03:46, lyonn wrote:
> In my pom.xml I was imported like this:
>
>             <Import-Package>org.apache.activemq.xbean,
>                             org.apache.activemq.spring,
>                             org.apache.activemq.broker,
>                             org.apache.activemq.security,
>                             org.apache.activemq.jaas,
>                             org.apache.activemq.pool,
>                             org.apache.activemq.camel.component,
>                             org.apache.camel.component.jms,
>                             *</Import-Package>
>
>
> But it does not work yet.
>
>
>
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-class-file-or-dependent-class-nested-exception-is-java-lang-NoClassDefFoundError-tp5720065p5720068.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

-- 
Krzysztof Sobkowiak

JEE & OSS Architect | Technical Architect @ Capgemini
Capgemini <http://www.pl.capgemini.com/> | Software Solutions Center
<http://www.pl.capgemini-sdm.com/> | Wroclaw
e-mail: krzys.sobkowiak@gmail.com <ma...@gmail.com> |
Twitter: @KSobkowiak

Re: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError

Posted by lyonn <cr...@gmail.com>.
In my pom.xml I was imported like this:

            <Import-Package>org.apache.activemq.xbean,
                            org.apache.activemq.spring,
                            org.apache.activemq.broker,
                            org.apache.activemq.security,
                            org.apache.activemq.jaas,
                            org.apache.activemq.pool,
                            org.apache.activemq.camel.component,
                            org.apache.camel.component.jms,
                            *</Import-Package>


But it does not work yet.






--
View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-class-file-or-dependent-class-nested-exception-is-java-lang-NoClassDefFoundError-tp5720065p5720068.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

In your camel router bundle , you need Import-Package org.apache.activemq.camel.component
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat



On 2014-4-24, at 上午9:23, lyonn wrote:

> I have read tha I have to install a bundle:
> 
> vasspre@root> osgi:install mvn:org.apache.activemq/activemq-camel/5.9.0
> 
> Bundle ID: 202
> 
> It does not fix my problem.
> 
> 
> 
> 
> 
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-class-file-or-dependent-class-nested-exception-is-java-lang-NoClassDefFoundError-tp5720065p5720066.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError

Posted by lyonn <cr...@gmail.com>.
I have read tha I have to install a bundle:

vasspre@root> osgi:install mvn:org.apache.activemq/activemq-camel/5.9.0

Bundle ID: 202

It does not fix my problem.





--
View this message in context: http://servicemix.396122.n5.nabble.com/problem-with-class-file-or-dependent-class-nested-exception-is-java-lang-NoClassDefFoundError-tp5720065p5720066.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.