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]
--------------------------------------------------------------------

Reply via email to