Here are the errors from the server log. Please help
identify the problem.

2003-07-01 22:22:14,720 ERROR [STDERR] Jess reported
an error in routine batch.
  Message: Cannot open file.
2003-07-01 22:22:14,720 ERROR [STDERR]  at
jess.Batch.batch(Batch.java:38)
2003-07-01 22:22:14,720 ERROR [STDERR]  at
jess.Rete.loadScriptlib(Rete.java:1303)
2003-07-01 22:22:14,720 ERROR [STDERR]  at
jess.Rete.<init>(Rete.java:66)
2003-07-01 22:22:14,720 ERROR [STDERR]  at
jess.Rete.<init>(Rete.java:47)
2003-07-01 22:22:14,720 ERROR [STDERR]  at
test.session.SessionTestServlet.init(SessionTestServlet.java:41)


(SessionTestServlet.java:41)
Java line 41 is where I declare:

 Rete rete = new Rete();

--- [EMAIL PROTECTED] wrote:
> I think jenny chiang wrote:
> > Hi everyone,
> > 
> > I am trying to write an application using java and
> > jess.  The application will be deployed to J2EE
> > Application Server.  The J2EE version is
> > j2eesdk1.4_beta2 and Jess version is 6.0. 
> 
> Don't use 6.0 anymore; Please use 6.1.
> 
> > 
> > I create a servlet, which resides in \src
> directory. 
> > I then copied  \jess directory to \src. There were
> no
> > problems in compiling and deploying the servlet. 
> > However when I try to view the servlet through web
> > browser I got HTTP Status 500 error.
> > 
> 
> Well, does the error page include a traceback which
> gives some
> indication of the failure? I note that the code as
> given below
> wouldn't even compile. The method
> 
> > 
> >     public void doGet (HttpServletRequest request,
> >                        HttpServletResponse
> response)
> >     throws ServletException, IOException
> >     {
> >      String userinput =
> request.getParameter("userinput");
> >      if ( userinput != null && userinput.length()
> > 0 )
> >         
> rete.executeCommand("(assert("+userinput+"))");
> >          rete.run();
> >     }
> >  }
> 
> won't compile because executeCommand() and run()
> both throw
> JessException, which is not being caught here. 
> 
> You might want to back up and make sure you can
> write a "Hello, World"
> servlet from scratch and get that to run in your
> environment, before
> adding the complication of including Jess.
> 
> Then first, make sure that you know precisely what
> version of your
> Jess code you have installed, and then scrutinize
> the error message
> you're getting. Look at the server error logs, too.
> If you can find
> the actual error message you're getting, and you
> still don't know
> what's going wrong, you could try this list again.
> 
>
---------------------------------------------------------
> Ernest Friedman-Hill  
> Distributed Systems Research        Phone: (925)
> 294-2154
> Sandia National Labs                FAX:   (925)
> 294-2234
> PO Box 969, MS 9012                
> [EMAIL PROTECTED]
> Livermore, CA 94550        
> http://herzberg.ca.sandia.gov
> 
>
--------------------------------------------------------------------
> 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!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.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]
--------------------------------------------------------------------

Reply via email to