You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 15
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
- Using Tortoise SVN checkout of the MIT framework repository into your WORKSPACE
- 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 init the database
- Build the petclinic war file
- WORKSPACE\sample\springframework\samples\petclinic\all.cmd
- Notes:
- The ALL target cleans, builds and creaets the war file in the dist directory
- It also initializes the HSQLDB in the 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 "admin" and "admin"
- Select WAR file to upload by clicking on the BROWSE button
- Navigate to WORKSPACE\sample\springframework\petclinic\dist
- and 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 administrator or go to https://localhost:8443/petclinic