Salut,
techi_amol wrote:
> Hi All,
>
> faced a new issue. I am able to run grizzly-servlet-webserver-1.8.1.jar as
> an osgi bundle, after adding a BundleActivator to it with equinox osgi 3.2.1
> (org.eclipse.osgi_3.2.1.R32x_v20060919.jar) however, if i try to run the
> same bundle on equinox osgi 3.3.0 (org.eclipse.osgi_3.3.0.200704022148.jar)
> we get a class not found exception
Hum....that class is from the JDK. Do you know if some rules have
changed so our bundle now needs to add the javax.* classes? I'm
attaching a nre generated bundle that explicitly list javax.*. Can you
try it?
Better, can you share your code? I'm sure the community will like to use
and maintains it :-)
A+
-- Jeanfrancois
>
> Caused by: java.lang.NoClassDefFoundError:
> javax/management/MBeanRegistration
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:161)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:501)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:471)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:430)
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:413)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:189)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:340)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:408)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> at
> mlb.osgi.grizzly.activator.GrizzlyServletLauncherActivator.start(GrizzlyServletLauncherActivator.java:19)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)