| 
| Problem of Classloader in Eclipse Plugin Developemt. [message #331579] | Fri, 12 September 2008 02:59  |  | 
| Eclipse User  |  |  |  |  | I am trying to use Tomcat 5.5.7 in Eclipse 3.0 plugin development environment.I created a plugins jar and put into plugins directory of
 Eclipse 3.0 and started the eclipse 3.0.
 when I clicked run button  it gives me this exception.But this class
 "LogFactory" is already present in commons-logging-api.jar.
 I guess at runtime classloader could not able to load this particular jar
 file.I tried with all scenarios by mentioning in Manifest.mf file as well
 as in plugin.xml under tag <runtime>.
 But it give the same exception.
 Please help me out and your solution will be appreciated.
 
 
 java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
 at
 org.apache.catalina.core.StandardService.<clinit>(StandardService.java:53)
 at
 com.selectica.mbeclipse.utils.StartTomcat.startTomcat(StartT omcat.java:52)
 at
 com.selectica.mbeclipse.utils.StartTomcat.getInstance(StartT omcat.java:22)
 at
 com.selectica.mbeclipse.actions.CxRunKBAction.startNewDefaul tGUI(CxRunKBAction.java:539)
 at
 com.selectica.mbeclipse.actions.CxRunKBAction.runKbHTMLDefau ltGui(CxRunKBAction.java:360)
 at
 com.selectica.mbeclipse.actions.CxRunKBAction.clickedOk(CxRu nKBAction.java:637)
 at
 com.selectica.mbeclipse.actions.CxRunKBAction.getDefGUIPrefs (CxRunKBAction.java:233)
 at
 com.selectica.mbeclipse.actions.CxRunKBAction.runInSameThrea d(CxRunKBAction.java:442)
 at
 com.selectica.mbeclipse.actions.CxRunKBAction.run(CxRunKBAct ion.java:173)
 at
 com.selectica.mbeclipse.actions.CxRunKBAction.run(CxRunKBAct ion.java:148)
 at
 org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:246)
 at
 org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPl uginAction.java:223)
 at
 org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
 at
 org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
 at
 org.eclipse.jface.action.ActionContributionItem$6.handleEven t(ActionContributionItem.java:441)
 at  org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled
 Code))
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
 at  org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
 at  org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
 at  org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
 at  org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
 at
 org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
 at  org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
 at  org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
 at
 org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
 at
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
 at
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:85)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:58)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:60)
 at java.lang.reflect.Method.invoke(Method.java:391)
 at  org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
 at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
 at org.eclipse.core.launcher.Main.run(Main.java:973)
 at org.eclipse.core.launcher.Main.main(Main.java:948)
 
 Thanks,
 Ashish.Naidu
 |  |  |  | 
|  | 
|  | 
Powered by 
FUDForum. Page generated in 0.03575 seconds