Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » hi,a error of SpringAMQP in Virgo(spring amqp deployed in vrigo server)
icon5.gif  hi,a error of SpringAMQP in Virgo [message #916527] Wed, 19 September 2012 01:53 Go to next message
Amos Ping is currently offline Amos Ping
Messages: 3
Registered: September 2012
Junior Member
I try to use the spring-amqp in Virgo. I had installed all the jar for spring amqp. But when I using @Configuration , I met this error.

Caused by: org.eclipse.virgo.kernel.osgi.framework.ExtendedClassNotFoundException: org.springframework.jmx.support.MetricType in KernelBundleClassLoader: [bundle=org.springframewor
k.amqp.rabbit_1.1.2.RELEASE]
at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:139)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:95)
... 29 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.springframework.jmx.support.MetricType
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:135)
... 33 common frames omitted

----
I check the bundle list in my virgo server. I can find the org.springframework.jmx.support.MetricType in spring-context (3.0.5) , I check the bundle status is right, but how to fix the error ?


P.S: Glyn Normington give me a suggestion for check the package org.springframework.jmx.support. I check it in console.
Result as below:
osgi> vsh:packages examine org.springframework.jmx.support 3.0.5.RELEASE

Exporter: org.springframework.context 3.0.5.RELEASE [59]

Attributes:
None

Directives:
uses:
javax.management, javax.management.remote,
org.springframework.aop.target, org.springframework.beans.factory,
org.springframework.jmx
x-equinox-ee:
-1
x-internal:
false

Importer(s):
None


Exporter: org.springframework.context 3.0.5.RELEASE [106]

Attributes:
None

Directives:
uses:
javax.management, javax.management.remote,
org.springframework.aop.target, org.springframework.beans.factory,
org.springframework.jmx
x-equinox-ee:
-1
x-internal:
false

Importer(s):
com.focustech.sem.message.center 1.0.0 [157]
Import-Package attributes:
bundle-symbolic-name:
org.springframework.context
bundle-version:
[3.0.5.RELEASE,3.0.5.RELEASE]
version:
0.0.0
Import-Package directives:
resolution:
static



Re: hi,a error of SpringAMQP in Virgo [message #916572 is a reply to message #916527] Wed, 19 September 2012 03:28 Go to previous messageGo to next message
Amos Ping is currently offline Amos Ping
Messages: 3
Registered: September 2012
Junior Member
I checked the problem again. finally I find this error because I use <listener-container> in appContext.xml ( appContext.xml in the bundle meta-inf/spring/),but I need to use the listener . How to use it ? I try to use it with annotaion @bean Listener in @Configuration Class directly. but same error:
Caused by: java.lang.ClassNotFoundException: org.springframework.jmx.support.MetricType
who can help me ?
Re: hi,a error of SpringAMQP in Virgo [message #917299 is a reply to message #916572] Wed, 19 September 2012 21:19 Go to previous message
Amos Ping is currently offline Amos Ping
Messages: 3
Registered: September 2012
Junior Member
OK, I resolved it by myself. The reason:if you want use the spring-rabbit.jar in OSGi container. you will find the manifest.mf has error , it needs import "org.springframework.jmx.support;version="xxxx" . but now it has not the package import . I hope somebody can add this package in the manifest.mf. I cost two hours to fix the error!
I commited a bug for this : jira.springsource.org/browse/AMQP-270
I hope this message will help someone in the furture
Previous Topic:@Administrator/Moderator: Cleanup
Next Topic:VTS not finding resource file
Goto Forum:
  


Current Time: Tue Jul 29 10:59:18 EDT 2014

Powered by FUDForum. Page generated in 0.01672 seconds