[rules-users] Drools Eclipse Plugin Problem

Seema Richard Seema.Richard at ust-global.com
Wed Apr 2 08:12:27 EDT 2008


Hi all,


I have added the Drools 4.0.6 plugin in my Eclipse v 3.2.2.
I have the plugin jar containing all the required classes in the
org.drools.eclipse_4.0.6.jar which is added to the plugins folder of
Eclipse. But I'm getting this error when I attempt to open a .drl file.

java.lang.ClassNotFoundException:
org.drools.eclipse.editors.DRLRuleEditor2
	at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLo
ader.java:402)

If I click on the 'Drools Preferences' page in Eclipse preferences, I
get
this error.
Plug-in org.drools.eclipse was unable to load class
org.drools.eclipse.preferences.DroolsPreferencePage.

I looked at the console log of Eclipse and saw the following errors when
Eclipse started loading.

        Cannot throw the type DroolsParserException
        compiledRules cannot be resolved
        parsedRules cannot be resolved
        Cannot throw the type DroolsParserException
        compiledRules cannot be resolved
        parsedRules cannot be resolved
        The type java.lang.Class cannot be resolved. It is indirectly
referenced
 from required .class files
        The method getContent() is undefined for the type
AbstractRuleEditor
        The method getContent() is undefined for the type
AbstractRuleEditor
        String cannot be resolved to a type
        Cannot throw the type DroolsParserException
        compiledRules cannot be resolved
        String cannot be resolved to a type
        Cannot throw the type DroolsParserException
        compiledRules cannot be resolved
        compiledRules cannot be resolved
        ruleInfoByClassNameMap cannot be resolved
        The method getClassName() is undefined for the type
DRLInfo.RuleInfo
        functionInfoByClassNameMap cannot be resolved
        The method getClassName() is undefined for the type
DRLInfo.FunctionInfo

        parsedRules cannot be resolved
        Cannot throw the type DroolsParserException
        String cannot be resolved to a type
        Cannot throw the type DroolsParserException
        The type java.lang.Thread cannot be resolved. It is indirectly
reference
d from required .class files
        The type java.io.File cannot be resolved. It is indirectly
referenced fr
om required .class files
        The type java.net.URL cannot be resolved. It is indirectly
referenced fr
om required .class files
        String cannot be resolved to a type
        String cannot be resolved to a type
        The hierarchy of the type MyResourceVisitor is inconsistent
        Implicit super constructor Object() is undefined for default
constructor
. Must define an explicit constructor
        Cannot throw the type CoreException

        at org.drools.eclipse.DroolsEclipsePlugin.<init>(Unknown Source)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleAct
ivator(AbstractBundle.java:136)
        ... 72 more
Root exception:
java.lang.Error: Unresolved compilation problems:
        The type java.io.InputStream cannot be resolved. It is
indirectly
refere
nced from required .class files
        The type java.lang.ClassLoader cannot be resolved. It is
indirectly
refe
renced from required .class files
        The type java.io.IOException cannot be resolved. It is
indirectly
refere
nced from required .class files
        The type java.io.Reader cannot be resolved. It is indirectly
referenced
from required .class files
        The type java.lang.Exception cannot be resolved. It is
indirectly
refere
nced from required .class files
        The import java.io.Reader cannot be resolved
        The import java.util.HashMap cannot be resolved
        The import java.util.Iterator cannot be resolved
        The import java.util.List cannot be resolved
        The import java.util.Map cannot be resolved
        The import java.util.MissingResourceException cannot be resolved
        The import java.util.ResourceBundle cannot be resolved
        The hierarchy of the type DroolsEclipsePlugin is inconsistent
        String cannot be resolved to a type
        String cannot be resolved to a type
        String cannot be resolved to a type
        ResourceBundle cannot be resolved to a type
        Map cannot be resolved to a type
        HashMap cannot be resolved to a type
        Map cannot be resolved to a type
        HashMap cannot be resolved to a type
        Map cannot be resolved to a type
        HashMap cannot be resolved to a type
        Map cannot be resolved to a type
        HashMap cannot be resolved to a type
        Map cannot be resolved to a type
        HashMap cannot be resolved to a type
        Exception cannot be resolved to a type
        IDroolsConstants.CACHE_PARSED_RULES cannot be resolved
        The constructor Object() is undefined
        IDroolsConstants.CACHE_PARSED_RULES cannot be resolved
        The type java.lang.Boolean cannot be resolved. It is indirectly
referenc
ed from required .class files
        java.lang.Boolean cannot be resolved
        parsedRules cannot be resolved
        compiledRules cannot be resolved
        ruleInfoByClassNameMap cannot be resolved
        functionInfoByClassNameMap cannot be resolved
        Exception cannot be resolved to a type
        resourceBundle cannot be resolved
        parsedRules cannot be resolved
        compiledRules cannot be resolved
        Iterator cannot be resolved to a type
        colors cannot be resolved
        String cannot be resolved to a type
        String cannot be resolved to a type
        ResourceBundle cannot be resolved to a type
        The method getResourceBundle() is undefined for the type
DroolsEclipsePl
ugin
        MissingResourceException cannot be resolved to a type
        ResourceBundle cannot be resolved to a type
        resourceBundle cannot be resolved
        resourceBundle cannot be resolved
        ResourceBundle cannot be resolved
        MissingResourceException cannot be resolved to a type
        resourceBundle cannot be resolved
        resourceBundle cannot be resolved
        String cannot be resolved to a type
        String cannot be resolved to a type
        PLUGIN_ID cannot be resolved
        Throwable cannot be resolved to a type
        Throwable cannot be resolved to a type
        The method getUniqueIdentifier() is undefined for the type
DroolsEclipse
Plugin
        String cannot be resolved to a type
        colors cannot be resolved
        String cannot be resolved to a type
        colors cannot be resolved
        IDroolsConstants.BUILD_ALL cannot be resolved
        IDroolsConstants.EDITOR_FOLDING cannot be resolved
        IDroolsConstants.CACHE_PARSED_RULES cannot be resolved
        Cannot throw the type DroolsParserException
        compiledRules cannot be resolved
        parsedRules cannot be resolved
        Cannot throw the type DroolsParserException
        compiledRules cannot be resolved
        parsedRules cannot be resolved
        The type java.lang.Class cannot be resolved. It is indirectly
referenced
 from required .class files
        The method getContent() is undefined for the type
AbstractRuleEditor
        The method getContent() is undefined for the type
AbstractRuleEditor
        String cannot be resolved to a type
        Cannot throw the type DroolsParserException
        compiledRules cannot be resolved
        String cannot be resolved to a type
        Cannot throw the type DroolsParserException
        compiledRules cannot be resolved
        compiledRules cannot be resolved
        ruleInfoByClassNameMap cannot be resolved
        The method getClassName() is undefined for the type
DRLInfo.RuleInfo
        functionInfoByClassNameMap cannot be resolved
        The method getClassName() is undefined for the type
DRLInfo.FunctionInfo

        parsedRules cannot be resolved
        Cannot throw the type DroolsParserException
        String cannot be resolved to a type
        Cannot throw the type DroolsParserException
        The type java.lang.Thread cannot be resolved. It is indirectly
reference
d from required .class files
        The type java.io.File cannot be resolved. It is indirectly
referenced fr
om required .class files
        The type java.net.URL cannot be resolved. It is indirectly
referenced fr
om required .class files
        String cannot be resolved to a type
        String cannot be resolved to a type
        The hierarchy of the type MyResourceVisitor is inconsistent
        Implicit super constructor Object() is undefined for default
constructor
. Must define an explicit constructor
        Cannot throw the type CoreException

        at org.drools.eclipse.DroolsEclipsePlugin.<init>(Unknown Source)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleAct
ivator(AbstractBundle.java:136)
        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
leContextImpl.java:962)
        at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
eHost.java:317)
        at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(Abstrac
tBundle.java:256)
        at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:
342)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.preFindL
ocalClass(EclipseLazyStarter.java:88)
        at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(C
lasspathManager.java:412)
        at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalCla
ss(DefaultClassLoader.java:189)
        at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(
BundleLoader.java:334)
        at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundl
eLoader.java:386)
        at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(Bundl
eLoader.java:347)
        at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De
faultClassLoader.java:83)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(Bundl
eLoader.java:278)
        at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleH
ost.java:227)
        at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(Abs
tractBundle.java:1245)
        at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createEx
ecutableExtension(RegistryStrategyOSGI.java:147)
        at
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutable
Extension(ExtensionRegistry.java:759)
        at
org.eclipse.core.internal.registry.ConfigurationElement.createExecuta
bleExtension(ConfigurationElement.java:243)
        at
org.eclipse.core.internal.registry.ConfigurationElementHandle.createE
xecutableExtension(ConfigurationElementHandle.java:51)
        at
org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:24
2)
        at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)

        at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlug
in.java:238)
        at
org.eclipse.ui.internal.dialogs.WorkbenchPreferenceNode.createPage(Wo
rkbenchPreferenceNode.java:46)
        at
org.eclipse.jface.preference.PreferenceDialog.createPage(PreferenceDi
alog.java:1241)
        at
org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.createPage(F
ilteredPreferenceDialog.java:315)
        at
org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDial
og.java:1134)
        at
org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(Fil
teredPreferenceDialog.java:438)
        at
org.eclipse.jface.preference.PreferenceDialog$8.selectionChanged(Pref
erenceDialog.java:661)
        at
org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.jav
a:839)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
        at org.eclipse.core.runtime.Platform.run(Platform.java:843)
        at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
        at
org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
        at
org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(S
tructuredViewer.java:837)
        at
org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(Structure
dViewer.java:1143)
        at
org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(Structure
dViewer.java:1163)
        at
org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrate
gy.java:236)
        at
org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:230)
        at
org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:404)
        at
org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.ja
va:123)
        at
org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3325)
        at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
        at org.eclipse.jface.window.Window.open(Window.java:796)
        at
org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesActi
on.java:65)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
        at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:539)
        at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContri
butionItem.java:488)
        at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionC
ontributionItem.java:400)
        at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
        at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
        at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
        at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
        at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.jav
a:422)
        at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95
)
        at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformAct
ivator.java:78)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli
cation(EclipseAppLauncher.java:92)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec
lipseAppLauncher.java:68)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:400)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
        at org.eclipse.core.launcher.Main.run(Main.java:977)
        at org.eclipse.core.launcher.Main.main(Main.java:952)

-- 
View this message in context:
http://www.nabble.com/Drools-Eclipse-Plugin-Problem-tp16446887p16446887.
html
Sent from the drools - user mailing list archive at Nabble.com.






More information about the rules-users mailing list