My Notepad

  • My Linux Notes
  • My Grid Notes
  • To do List
  • Tuesday, January 24, 2006

     
    Simple Java Test project for a post

    Problems encountered so far:
    1, applet couldn't throw exception even the URLconnection name is not same
    with the true URL of servlet, which is defined in web.xml
    It's wield that the java.io.classNotFoundException won't be thown unless
    we defined both the action to receive request and the action to get back
    response in doPost(...) methos, and try to get the response from the applet side.

    2, although I can sucessfully pass the testing code for DataAccessor in eclipse,
    I failed in servlet.Because the servlet is run by webserver. The jdbc dynamic Link Library files are necessary if database access is involved in servlet.
    How can I solve it?

    It turns out to be easy, what we need to do is copy mysql-jdbc-bin.jar to
    ~/tomcat5/common/lib, and restart tomcat service, that's it.

    3, always remeber to restart tomcat after you make any modification in the
    servlet.The servlet classes will only be loaded during the startup of tomcat(?)

    4, Always remeber to send the response back to applet from servlet, because
    the applet always expect to hear something from you, even if the application
    may not really need result. If you don't, the applet will freeze for long!

    Comments: Post a Comment



    << Home

    Archives

    December 2005   January 2006   February 2006   April 2006   May 2006   June 2006   July 2006   November 2006   February 2007   May 2007   June 2007   November 2007   February 2008   March 2008   April 2008   August 2008   December 2008   March 2009   April 2009   May 2009   June 2009   October 2009   November 2009   December 2009   May 2013  

    This page is powered by Blogger. Isn't yours?