I wanted to profile my applcation running under dm-server with JProfiler.
But the server startup failed reporting the following exception
Code:[2009-11-18 03:39:18.056] main <SPKB0002E> Start failed: org.osgi.framework.BundleException: The activator org.springframework.osgi.extender.internal.activator.ContextLoaderListener for bundle org.springframework.osgi.extender is invalid at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:146) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:980) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257) at com.springsource.server.kernel.bootstrap.KernelBootstrap.start(KernelBootstrap.java:76) at com.springsource.server.kernel.bootstrap.Bootstrap.main(Bootstrap.java:73) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.springsource.server.bootstrap.harness.BootHarness.main(BootHarness.java:63) Caused by: java.lang.NoClassDefFoundError: com/jprofiler/agent/InstrumentationCallee at org.springframework.util.ClassUtils.<clinit>(ClassUtils.java:95) at org.springframework.core.CollectionFactory.<clinit>(CollectionFactory.java:67) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.<init>(ContextLoaderListener.java:335) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:141) ... 11 more Caused by: com.springsource.server.osgi.framework.ServerClassNotFoundException: com.jprofiler.agent.InstrumentationCallee in ServerBundleClassLoader: [bundle=org.springframework.core.instrumented_2.5.6.A] at com.springsource.server.osgi.framework.equinox.ServerBundleClassLoader.loadClass(ServerBundleClassLoader.java:136) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) ... 21 more Caused by: java.lang.ClassNotFoundException: com.jprofiler.agent.InstrumentationCallee at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87) at com.springsource.server.osgi.framework.equinox.ServerBundleClassLoader.loadClass(ServerBundleClassLoader.java:134) ... 23 more


