Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » javax.management error in virgo(dependency from de.schlichtherle.truezip)
javax.management error in virgo [message #1151729] Wed, 23 October 2013 15:02 Go to next message
Murthy Bhat is currently offline Murthy BhatFriend
Messages: 159
Registered: July 2009
Senior Member
Hello,

I am using Virgo server for my OSGi based web application. One of my bundle uses the de.schlichtherle.truezip library which needs javax.management.MBeanServerConnection. I understood that javax related packages should be be provided by rt.jar. However when I try to invoke the bundle, I get the below error.

Could someone please help me out ?

de.schlichtherle.truezip.fs.spi.FsManagerDecorator: Provider de.schlichtherle.truezip.extension.pace.PaceManagerFactory could not be instantiated: java.lang.NoClassDefFoundError: javax/management/MBeanServerConnection] with root cause java.lang.ClassNotFoundException: javax.management.MBeanServerConnection


I tried out adding javax.management in config.ini of virgo though I found that it is already added in the java6-server.profile of virgo.

Thanks,
Murthy
Re: javax.management error in virgo [message #1151801 is a reply to message #1151729] Wed, 23 October 2013 16:09 Go to previous messageGo to next message
GianMaria Romanato is currently offline GianMaria RomanatoFriend
Messages: 72
Registered: July 2009
Member
My guess is that you just miss an import-package.

In OSGi the Java.* packages are always automatically imported, but the Javax. * ones must be imported explicitly by your bundle, even if they are included in the RT.Jar.



Developing for Virgo using PDE: http://bit.ly/1w0tTit
Global JNDI in Virgo: http://bit.ly/1to42mn
Hyperic to monitor Virgo: http://bit.ly/W1Fst9
Profile Virgo with JProfiler http://bit.ly/1FBLGCw
Re: javax.management error in virgo [message #1151807 is a reply to message #1151801] Wed, 23 October 2013 16:13 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
Also you may want to check that http://wiki.eclipse.org/Virgo/FAQ#How_can_I_diagnose_class_loading_problems.3F
Re: javax.management error in virgo [message #1152840 is a reply to message #1151807] Thu, 24 October 2013 07:53 Go to previous message
Murthy Bhat is currently offline Murthy BhatFriend
Messages: 159
Registered: July 2009
Senior Member
Thank you. The solution worked !
Previous Topic:Virgo OSGi with custom Vaadin component IncompatibleClassChangeError
Next Topic:Deployment of Virgo runtime dependencies: Maven-based builds without Eclipse IDE
Goto Forum:
  


Current Time: Fri Mar 29 10:16:18 GMT 2024

Powered by FUDForum. Page generated in 0.02849 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top