I've only started to worry about some of the more esoteric ClassLoader
issues recently; I ran into several while writing the "enterprise
application" parts of the Jess book, and am making some Jess
modifications in response.
The problem you're seeing would arise in 6.1a3 if the class loader
that loads the "application object" can't also see the jess
classes. In the next release, late this week, this restriction will be
lifted, and your problem should go away.
I think Igor Gorbunov wrote:
> Thank you very much for your reply, Ernest! I didn't
> expect to get it on Saturday :). Thanks!
>
> In real code I use my object, not String instance, as
> an argument, but the error is the same.
>
> As I have mentioned, my goal is to load .clp files
> with (batch) command from a .jar file.
>
> Do I understand it correctly that this feature doesn't
> not work in 6.1a3? (which makes me really eager to get
> 6.1b1 next week :) - I'm relying on that functionality
> for my demo on 9/4)...
>
> Best regards,
> Igor
>
> --- [EMAIL PROTECTED] wrote:
> > I think Igor Gorbunov wrote:
> > > Hi!
> > >
> > > When I try to create Rete object and pass a Srting
> > as
> > > a parameter to Rete constructor, I'm getting the
> >
> > The argument to the Rete constructor is intended to
> > suggest a
> > ClassLoader for Jess to use. By passing a String,
> > you're telling Jess
> > to use the boot class loader (java.lang.String is
> > loaded by it); it's
> > not clear to me that this is ever an appropriate
> > thing to do. Why do
> > you want to do this? Just using the default
> > constructor, Jess will be
> > able to find all the classes loadable by the boot
> > class loader,
> > anyway.
> >
> > Anyway, I'll be releasing 6.1b1 next week, and the
> > error you're
> > getting here won't occur with that version; this is
> > the same change
> > that lets Jess be installed as a standard extension,
> > if you wish.
> >
> >
> >
> > > following exception:
> > >
> > > Jess reported an error in routine batch.
> > > Message: Cannot open file.
> > > at jess.Batch.batch(Unknown Source)
> > > at jess.Rete.if(Unknown Source)
> > > at jess.Rete.<init>(Unknown Source)
> > > at
> > >
> >
> com.x.broadcaster.igor.test.TestStarter1.main(Unknown
> > > Source)
> > >
> > > Here's the code I use:
> > >
> > > public static void main(String[] args) throws
> > > Exception
> > > {
> > > new Rete("123");
> > > }
> > >
> > > Could you please let me know how can I fix this? I
> > > really need to use this feature to load CLP files
> > from
> > > a JAR file...
> > >
> > > Thank you in advance!
> > >
> > > Igor Gorbunov
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Finance - Get real-time stock quotes
> > > http://finance.yahoo.com
> > >
> > >
> >
> --------------------------------------------------------------------
> > > 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]
> >
> --------------------------------------------------------------------
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
>
> --------------------------------------------------------------------
> 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]
--------------------------------------------------------------------