Share

Struts Applications

File Release Notes and Changelog

Release Name: appfuse 0.8

Notes:
To build this application - you must be using Ant 1.5.1 and have your 
$J2EE_HOME set to your J2EE SDK install directory.  You can also copy the
j2ee.jar file to lib/j2sdkee1.4/lib.  J2EE 1.4 is not required yet, so 
using a 1.3 lib is fine.  You can also pass in the parameter such as 
ant -Dj2ee.jar=/path/to/jar.  

You will also need to copy junit.jar into your $ANT_HOME/lib directory.

** IMPORTANT NOTE FOR TOMCAT 5 USERS **
You will need to copy Java Mail JAR (mail.jar, activation.jar) files into 
$CATALINA_HOME/common/lib to use Log4j's SMTPAppender to get e-mail 
notification of errors.  If you don't want to use this, remove the SMTPAppender 
stuff from log4j.properties in web/WEB-INF/classes.

To run this application, you will need to perform the following tasks:

1.  Copy build.properties.sample and database.properties.sample to 
    build.properties and database.properties.  See properties.xml for other
    options.
2.  Adjust the database.properties file to fit your system - the username
    and password for the database must have database/table create rights.
    It currently creates a mysql "appfuse" database using the user: root/admin.
    It also grants the user "test" (password: test) full rights to this 
    database.
3.  Run "ant setup-db".   
4.  Test that the db access code works with:
    ant test-ejb -Dtestcase=UserDAOTest
    ant test-web -Dtestcase=UserManagerTest
5.  Setup Tomcat running "ant setup-tomcat deploy".  This puts a mysql jdbc 
    driver in $CATALINA_HOME/common/lib, puts a appfuse.xml file in 
    $CATALINA_HOME/webapps/ and deploys the application.
6.  Start Tomcat and test the web login using:
    ant test-canoo -Dtestcase=login

Changes: Features/Changes in 0.8 ======================= - Added User Self Registration, complete with auto-login! - Added indicator to user list indicating which column/direction is sorted. - build.xml - changes to tests: - "test-common" runs utilities tests - "test-ejb" runs db-layer tests - "test-web" for running services tests or action tests when tomcat is running. - "test-canoo" runs canoo webtests when tomcat is running. - "test-cactus" runs "test-web" and starts/stops tomcat as part of the test. - "test-jsp" runs "test-canoo" and starts/stops tomcat. - "test-all" runs all tests and starts/stops tomcat as it needs to. - "test-all-running" runs all tests while tomcat is running (for anthill). - As always, you can run individual tests by using -Dtestcase=$testName - Removed leftover tables from struts-resume that were in metadata/sql/sample-data.xml. - Added "protocol" property to properties.xml so http:// could be overridden. - Upgraded to Hibernate 2.0 Final. - Upgraded to Struts 1.1 RC2. - Upgraded Canoo WebTest to Build 280. - Upgraded Struts Menu to CVS Snapshot with tabs (not used yet). - Moved "confirmPassword" property from UserFormEx.java to User.java so JavaScript validations would occur in the proper order. - In web/WEB-INF, changed validator-rules.xml to validator-rules-custom.xml. and only included the twoFields custom validator. - In web/pages/loginForm.jsp, moved "Remember Me" to ApplicationResources.properties and made it into a label. Also, added link for self-registration. - In BreadCrumbFilter.java, changed auto-login to route to LoginServlet ("/auth") rather than "j_security_check" - In Canoo WebTests (test/web/web-tests.xml), added ApplicationResources.properties as a property file to compare titles with, rather than hardcoding strings.