]
Vincenzo D'Amore commented on DROOLS-1388:
------------------------------------------
Looking around I see this bug should be [already resolved
|https://issues.jboss.org/browse/DROOLS-1250]
Drools Sample.drl broken with Eclipse Neon
------------------------------------------
Key: DROOLS-1388
URL:
https://issues.jboss.org/browse/DROOLS-1388
Project: Drools
Issue Type: Bug
Components: eclipse plugin
Affects Versions: 6.5.0.Final
Reporter: Vincenzo D'Amore
Assignee: Robert (Bob) Brodt
Unable to complete the example presented in the documentation "[Installing Drools
Tooling|https://nheron.gitbooks.io/droolsonboarding/content/gettingStarted/installing_drools_tooling.html]"
Trying to run DroolsTest.java sample the console presents the these errors:
{code:java}
java.lang.RuntimeException: Error while creating KieBase[Message [id=1, level=ERROR,
path=Sample.drl, line=15, column=0
text=Rule Compilation error Only a type can be imported. com.sample.DroolsTest.Message
resolves to a package
Only a type can be imported. org.drools.core.spi.KnowledgeHelper resolves to a package
KnowledgeHelper cannot be resolved to a type
org.kie.api.runtime.rule.FactHandle cannot be resolved to a type
java.lang.Exception cannot be resolved to a type
org.kie.api.runtime.rule.RuleContext cannot be resolved to a type], Message [id=2,
level=ERROR, path=Sample.drl, line=5, column=0
text=Rule Compilation error Only a type can be imported. com.sample.DroolsTest.Message
resolves to a package
Only a type can be imported. org.drools.core.spi.KnowledgeHelper resolves to a package
KnowledgeHelper cannot be resolved to a type
com.sample.DroolsTest.Message cannot be resolved to a type
org.kie.api.runtime.rule.FactHandle cannot be resolved to a type
org.kie.api.runtime.rule.FactHandle cannot be resolved to a type
java.lang.Exception cannot be resolved to a type
org.kie.api.runtime.rule.RuleContext cannot be resolved to a type
Message.GOODBYE cannot be resolved to a type
org.drools.core.util.bitmask.AllSetBitMask cannot be resolved to a type
com.sample.DroolsTest.Message cannot be resolved to a type]]
at
org.drools.compiler.kie.builder.impl.KieContainerImpl.getKieBase(KieContainerImpl.java:450)
at
org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:604)
at
org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:575)
at com.sample.DroolsTest.main(DroolsTest.java:17)
{code}