You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

How to Run the Petclinic sample application without eclipse (in windows)

  1. Set your JAVA_HOME variable
    1. Make sure it is set to a 1.5 JDK (not JRE) java installation directory
    2. for example: C:\Program Files\Java\jdk1.5.0_09
  2. Create a workspace directory
    1. for example: C:\workspace
  3. Using Tortoise SVN checkout of the MIT framework repository into your WORKSPACE
    1. WORKSPACE\tools\apache-tomcat-5.5.23
    2. WORKSPACE\sample\springframework
  4. Build the petclinic war file
    1. WORKSPACE\sample\springframework\samples\petclinic\all.cmd
    2. Notes:
      1. The ALL target cleans, builds and creaets the war file in the dist directory
      2. It also initializes the HSQLDB in the hsqldb directory.
      3. The clean deletes the war\WEB-INF\lib directory which is part of the SVN distribution. Not sure if this causes problems because what the build puts back into the lib directory is NOT exaxtly the same as what had been there before the clean erased the directory. TODO: worry about this.
  5. Startup HSQLDB
    1. WORKSPACE\sample\springframework\samples\petclinic\db\hsqldb\server.bat
  6. Startup Tomcat by double clicking on
    1. WORKSPACE\tools\apache-tomcat-5.5.23\bin\startup.bat
    2. Note: to shutdown click on shutdown.bat
    3. Test regular port http://localhost:8080/
    4. Test the SSL port: https://localhost:8443/
      1. Note: You should be prompted to accept the server certificate
  7. Deploy the WAR file using the Tomcat Manager https://localhost:8443/manager/html
    1. The Tomcat manager user name and password are "admin" and "admin"
    2. Select WAR file to upload by clicking on the BROWSE button
    3. Navigate to WORKSPACE\sample\springframework\petclinic\dist
    4. and choose petclinic.war
    5. Hit the DEPLOY button
      1. When deployed you should see /petclinic | Spring PetClinic in the list of applications.
      2. Click on Start to start it up
  • No labels