I'm writing a servlet to access data stored in a Yasmine Data Base. my code is: public void service( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException

{

    ServletOutputStream out = res.getOutputStream();

    res.setContentType( "text/html" );

    try{

    out.println( "<html><body>" );

    db=new jp.jasmine.japi.Database();

    db.startSession(); <----------------(Problem)

    db.startTransaction();

    //code.....

    db.endTransaction();

    db.endSession();

    }catch(Exception e){out.println("Error: " + e);}

    out.println( "</body></html>" );

}
 
 

The program start working and when a try to start a new Sessíon it hangs. My Servlet class is stored in the Servlet directory and I've put jp.jar and pj.zip files in the Servlet directory also. I hava added the files to the classpath too, even i have tried to unjar the files in the servlet subdirectory.

thanks,

Oscar Sanjuán.

Reply via email to