You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 17
Next »
How to Run the Petclinic sample application without eclipse (in windows)
- Set your JAVA_HOME variable
- Make sure it is set to a 1.5 JDK (not JRE) java installation directory
- for example: C:\Program Files\Java\jdk1.5.0_09
- Create a workspace directory
- for example: C:\workspace
- Note: This document uses WORKSPACE to refer to this directory
- Using Tortoise SVN checkout the MIT framework projects in the repository into your WORKSPACE
- The repository is svn+ssh://YOURNAME@svn.mit.edu/framework-dev
- You can check out everything in the repository but all you really need is:
- WORKSPACE\tools\apache-tomcat-5.5.23
- WORKSPACE\sample\springframework
- Startup HSQLDB
- WORKSPACE\sample\springframework\samples\petclinic\db\hsqldb\server.bat
- Note: I think this needs to be running to do the full build so it will initialize the database
- Build the petclinic war file
- WORKSPACE\sample\springframework\samples\petclinic\all.cmd
- Notes:
- The ALL target cleans, builds and creates the war file putting it in the dist directory
- It also initializes the database in the WORKSPACE\sample\springframework\samples\petclinic\db\hsqldb directory.
- 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.
- Startup Tomcat by double clicking on
- WORKSPACE\tools\apache-tomcat-5.5.23\bin\startup.bat
- Note: to shutdown click on shutdown.bat
- Test regular port http://localhost:8080/
- Test the SSL port: https://localhost:8443/
- Note: You should be prompted to accept the server certificate even though it does not match your machines IP Name.
- Deploy the WAR file using the Tomcat Manager https://localhost:8443/manager/html
- The Tomcat manager user name and password are "manager" and "manager"
- Select WAR file to upload by clicking on the BROWSE button
- Navigate to WORKSPACE\sample\springframework\petclinic\dist
- Choose petclinic.war
- Hit the DEPLOY button
- When deployed you should see /petclinic | Spring PetClinic in the list of applications.
- Click on the \petclinic link in the manager or go to https://localhost:8443/petclinic