Well, the error message says it's "Class not found" from new, so I
think it is indeed possible that some of the classes aren't in the
right place.

By default, Jess will use the ClassLoader that loaded jess.Rete to try
to find PARIHQueryPanel. If jess.jar is off in a library directory
someplace, its ClassLoader might not be able to see the RIH
classes. There are two things you can do:

1) Fiddle with the CLASSPATH or class locations. This is the "old"
solution. 

2) Make sure you're  using the newest vesion of Jess (6.1a4), and find
where the Rete object gets constructed in the RIH servlet. Pass the
servlet object itself as a constructor argument. This tells Jess to
use the servlet's ClassLoader -- and that should fix the problem.


I think Ron Day wrote:
> Another question:
> 
> In trying to run my reconstructed version of  Ralph Groves RIH, I get the
> following error when I try to run it. since Ralph used Jess 4.0 I am
> assuming that maybe the syntax he used has changed. If not maybe I have my
> classes in the wrong place (not so likely as they are in same directory as
> servlet).
> 
> Here is the error message:
> 
> *********************************
> 
> ReteControl: error in reset / run: Jess reported an error in routine new
>         while executing (new PARIHQueryPanel "Q: What type of legs does the
> anim
> al have?" 3 (create$ "no legs" "sna27.jpg" "(family snake)" "equal size"
> "eqleg.
> jpg" "(attr animal-has equal-size-legs)" "unequal size" "frg17.jpg" "(family
> fro
> g)") (fetch "ReteControl"))
>         while executing defrule MAIN::first-query.
>   Message: Class not found.
> 
> *********************************
> 
> The rule is written:
> 
> 
> (defrule first-query
>   (initial-fact)
> =>
>   (new PARIHQueryPanel "Q: What type of legs does the animal have?" 3
>     (create$
>       "no legs"      "sna27.jpg" "(family snake)"
>       "equal size"   "eqleg.jpg" "(attr animal-has equal-size-legs)"
>       "unequal size" "frg17.jpg" "(family frog)"
>     )
>     (fetch "ReteControl")
>   )
> )
> 
> Any ideas ???
> 
> ron
> 
> --------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the list
> (use your own address!) List problems? Notify [EMAIL PROTECTED]
> --------------------------------------------------------------------
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to