Classmates.Com

This web application allows old students of a college ( or any institute) to share their information with other students. It enables a student to provide his/her information to others and also get information about other students.

Major Operations

The following are the major operations of this portal:

Technologies and Products used

The following table lists operations and associated objects and files.

Operation Files Associated Objects
Login login.jsp MemeberBean javabean
Registration of User register.html, register.jsp Member EJB
Forgot password forgotpassword.jsp JavaMail
Changing password changepassword.jsp MemberBean javabean
Home Page homepage.jsp, links.html MemberBean JavaBean
Search For Classmates searchclassmates.jsp MemberBean JavaBean,
Displaying details of a member memberdetails.jsp Database JavaBean
Adding details of family member addfamilymember.jsp MemberBean JavaBean, FamilyMember javabean
Updating family member editfamilymembers.jsp, updatefamilymember.jsp, updatefamilymemberfinal.jsp MemberBean JavaBean, FamilyMember javabean
Delete family member editfamilymembers.jsp, deletefamilymember.jsp MemberBean JavaBean
Send Message sendmessage.jsp MemberBean JavaBean, MessageBean javabean
Delete Message deletemessage.jsp MemberBean JavaBean, MessageBean javabean
Inbox homepage.jsp MemberBean JavaBean
Unregister Member unregistger.html, unregister.jsp Member EJB and unregisteruser stored procedure

The following are the steps to related to be taken to run the existing part of the application :

  1. Download classmates.zip and unzip it into webapps directory of Tomcat installation directory.
  2. Make sure you copy classes111.zip ( after renaming it to classes111.jar) or classes12.jar into WEB-INF/lib directory
  3. Copy mail.jar and activation.jar files into common\lib directory in Tomcat.
  4. Copy commons-fileupload.jar file into WEB-INF/lib directory in Tomcat. This is found in Struts blank application. This can be downloaded from jakarta.apache.org.
  5. Create account classmates with password classmates in Oracle.
  6. Create required tables in Oracle using TABLES.TXT file and also insert some sample data.
  7. Make sure Oracle and Tomcat are running.
  8. Copy classes111.jar (renamed classes111.zip) or classes12.jar into JBOSS_HOME\server\default\lib directory.
  9. Start JBOSS 4.x
  10. Build ejb in ejb directory of classmates directory using build.bat. Make necessary changes to build.bat before you run it.
  11. Make sure EJB is deployed sucessfully.
  12. Copy member.jar into WEB-INF/lib directory of classmates
  13. Copy jbossall-client.jar from JBOSS_HOME/client into common/lib directory of Tomcat.
  14. Copy oracle-ds.xml from JBOSS_HOME\docs\examples\jca into JBOSS_HOME\server\default\deploy directory.
  15. Add a new local-tx-datasource as follows under datasources tag as shown below. Change values according to your system settings.
      <local-tx-datasource>
          <jndi-name>ClassmatesDS</jndi-name>
          <connection-url>jdbc:oracle:thin:@localhost:1521:oracle8i</connection-url>
          <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
          <user-name>classmates</user-name>
          <password>classmates</password>
          <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
            <metadata>
               <type-mapping>Oracle8</type-mapping>
            </metadata>
      </local-tx-datasource>
    
  16. Start Tomcat
  17. Run the application using the following url:
       http://localhost:8080/mft/login.jsp
     
  18. You should see login page of the application.

Deploying Web Application In Tomcat of JBoss

The following procedure explains how to deploy a web application CLASSMATES, developed with Standalone Tomcat, into Tomcat that is embeded into JBoss. This eliminates the need to use two servers - JBOSS and TOMCAT. Instead by starting JBOSS, we can use Web applications and related EJBs.