<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Yes I made this mistake, sorry. It is already fixed in trunk, and will
be part of 4.0.1.<br>
<br>
The mistake happened when I added the shopping example. 4.0.1 also
includes a new RuleFlow example, based on the Number Guess program.<br>
<br>
Mark<br>
Shahad Ahmed wrote:
<blockquote
 cite="mid:1d2fdded0707310934t46e58669kc59d5a0a284b4b1f@mail.gmail.com"
 type="cite">
  <p>I get the following two errors reported by Eclipse when I import
the official 4.0 GA download version of the drools-examples-drl project:</p>
  <p>1. Unable to find unambiguously defined class 'Customer',
candidates are: [org.drools.examples.Customer,
org.drools.examples.TroubleTicketExample$Customer]
drools-examples-drl/src/main/rules/org/drools/examples in
TroubleTicket.drl</p>
  <p>2. Unable to find unambiguously defined class 'Customer',
candidates are:
[org.drools.examples.TroubleTicketExampleWithDSL$Customer,
org.drools.examples.Customer]
drools-examples-drl/src/main/rules/org/drools/examples in
TroubleTicketWithDSL.drl</p>
  <p>Is this a bug in 4.0GA , or is there further configuration
required after importing the examples project? I'm using the 4.0GA
release version of the drools Eclipse plug-in.</p>
  <div>I also noticed that I don't get this error from the latest
version of drools in the trunk (i.e. including post 4.0GA changes), so
maybe this has already been fixed since release 4.0GA?</div>
  <div>&nbsp;</div>
  <div>Here's the stack when you try and run the
TroubleTicketExample.java example:</div>
  <div>&nbsp;</div>
  <div>Exception in thread "main" java.lang.Error: Unable to find
unambiguously defined class 'Customer', candidates are:
[org.drools.examples.TroubleTicketExample$Customer,
org.drools.examples.Customer]<br>
&nbsp;at
org.drools.base.ClassTypeResolver.resolveType(ClassTypeResolver.java:178)<br>
&nbsp;at
org.drools.rule.builder.dialect.java.JavaFunctionBuilder.build(JavaFunctionBuilder.java:84)<br>
&nbsp;at org.drools.rule.builder.dialect.java.JavaDialect.addFunction
(JavaDialect.java:431)<br>
&nbsp;at
org.drools.compiler.PackageBuilder.addFunction(PackageBuilder.java:380)<br>
&nbsp;at
org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:278)<br>
&nbsp;at org.drools.compiler.PackageBuilder.addPackageFromDrl
(PackageBuilder.java:160)<br>
&nbsp;at
org.drools.examples.TroubleTicketExample.main(TroubleTicketExample.java:20)</div>
  <p>Shahad<br>
  </p>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>