Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problem of Classloader in Eclipse Plugin Developemt.
Problem of Classloader in Eclipse Plugin Developemt. [message #331579] Fri, 12 September 2008 06:59 Go to next message
Ashish Naidu is currently offline Ashish NaiduFriend
Messages: 6
Registered: July 2009
Junior Member
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
Re: Problem of Classloader in Eclipse Plugin Developemt. [message #331631 is a reply to message #331579] Mon, 15 September 2008 05:16 Go to previous messageGo to next message
Walter Harley is currently offline Walter HarleyFriend
Messages: 847
Registered: July 2009
Senior Member
"Ashish Naidu" <ashish.naidu15@gmail.com> wrote in message
news:bc22d4e17acabe461c50d3781938bd04$1@www.eclipse.org...
>I am trying to use Tomcat 5.5.7 in Eclipse 3.0 plugin development
>environment.

I think you may have problems getting much support for Eclipse 3.0, which
came out in 2004. Honestly I doubt at this point many folks still remember
what issues or limitations may have existed. Eclipse 3.4 shipped this June,
and we are hard at work on 3.5... there have been a lot of changes and
improvements.

Is there a reason you're limited to using 3.0? (E.g., maybe you are
restricted to using a very old VM version, which in turn is missing some
libraries?) That will probably be important information for anyone to help
you.

Have you tried searching Bugzilla to see if this is a known (and by now
perhaps fixed) bug?
Re: Problem of Classloader in Eclipse Plugin Developemt. [message #331638 is a reply to message #331631] Mon, 15 September 2008 12:08 Go to previous message
Ashish Naidu is currently offline Ashish NaiduFriend
Messages: 6
Registered: July 2009
Junior Member
Hi Walter,

Thanks for the reply.I got solution for this.

I added bootstrap.jar and commons-logging-api.jar to the classpath which
was missing.

Thanks,
Ashish Naidu
Previous Topic:Tool to edit "solo" fragment in PDE ?
Next Topic:org.eclipse.core.contenttype.contentTypes vs. org.eclipse.core.runtime.contentTypes
Goto Forum:
  


Current Time: Thu Nov 21 12:15:54 GMT 2024

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

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

Back to the top