Updates
Latest Tweet
What's New?
Check out for latest innovation, a computer based training video collection
Like this Page
Agile Java Development with Spring, Hibernate and Eclipse Review by DuBois
Steps for getting sample code to work
I entered a rating of 4 because I just got the book and have just started reading the first chapter. However, I had no problem getting the sample code to run right off the bat. Since there were complaints about that, I thought I'd revisit the steps here.
First note that you can download the code without registering by going to the author's web site [...]
You'll have to install Tomcat and Ant before you can run the sample code. After these are installed, unzip the downloaded author's code. Go to the timex subdirectory. Edit local.properties, changing the first line to your deployment directory [...]. On a command line in the same directory, execute "ant deploy". You now have to start the database server. To do this, execute: ant -f timexhsqldb.xml hsqldm
Finally you have to start the web application server if you haven't already done so. You'll need to open another command line window because the window in which the database server is running is occuppied until you decide to shut this server down. Given where I installed Tomcat, for me this was as simple as executing: /usr/local/tomcat/bin/startup.sh. But no matter where you installed it, just go to Tomcat's bin directory and execute either startup.sh (for UNIX) or startup.bat (for Windows). When you are done running the author's web application, entering CTRL-C from the command line where the database server is running will stop it. To stop Tomcat, go to its bin directory and execute the shutdown command.