Readme BUS TICKET SYSTEM Project Summary: This is the Baseline Scenario for the express bus ticket system. Our system is a 3 tier system that uses Apache as webserver. The database is located on mahjongg, the CORBA skeleton is run through the go server and the client uses the clue server which is also where the webserver runs. For the baseline scenario, you can see bus ticket schedule and buy it using a credit card system. You may also cancel the a previously purchased ticket. We assume that our database cannot be corrupted and will be used for the baseline scenario. Therefore it does not need to be set up because it's already running. Members: heejoonj@, wtang@, mjeung@, wangbonl@, kyuh@, sangjinh@ Included in the directory webfiles, ClientServerBin all html and jsp files are in the webfiles directory. .class binaries are included in the clientServerBin direOCctory. In the ClientServerBin/BuTicketSystemApp, there are the .class files for client and server. In the ClientServerBin/databaseDAO, there is the database connection class. Environments: .bashrc includes; export CVSROOT=/afs/ece/usr/wangbonl/cvsroot export PATH=$PATH:/afs/ece/usr/heejoonj/apache/bin:/afs/ece/user/wtang/Apache/jakarta-tomcat-4.1.31/bin export PATH=$PATH:/usr/local/mysql/bin export CLASSPATH=.:/afs/ece/user/heejoonj/lib export JAVA_HOME=/usr/local/j2sdk1.4.2_02 Server names and conventions (Please use the below servers for consistency): Database Server; mahjongg Server Host: go Client Host: clue Setup: 1. put all the html and jsp files in the following path ../Apache/jakarta-tomcat-4.1.31/webapps/ROOT (i.e. >/afs/ece/user/wtang/Apache/jakarta-tomcat-4.1.31/webapps/ROOT) 2. copy all the .class from the clientServerBin directory to the following path ../Apache/jakar-tomcat-4.1.31/webapps/ROOT/WEB-INF/classes (i.e. >/afs/ece/user/wtang/Apache/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/classes) 3. Start tomcat on the CLUE machine (i.e. sh /afs/ece/user/wtang/Apache/jakarta-tomcat-4.1.31/bin/startup.sh) 4. Start apache on the CLUE machine (i.e. /afs/ece/usr/heejoonj/apache/bin/apachectl start) Note: You can use the web servers in our memebers directories as indicated from the examples Access rights are given to the TAs for these directories (jsembler, spertet) 5. Run ORB on GO machine (i.e. orbd -ORBInitialPort 1050 &) 6. Start server on GO machine excute the server in the clientServerBin directory where all the .class files are located do so using the following command java BusTicketSystemApp.BusTicketSystemServer -ORBInitialPort 1050 & 7. You may now access our bus system from the following url http://clue.lab.cmu.edu.local:8888/index_m.html Note: the port number might be different depending on the setting of tomcat Existent entries (Pittsburgh - New York bus route) Known Issues: Some tips: - To run ORB(GO server: /afs/ece/usr/heejoonj/src/FaultSixers) >orbd -ORBInitialPort 1050 & - To run server(GO server: /afs/ece/usr/heejoonj/src/FaultSixers) >java BusTicketSystemServer -ORBInitialPort 1050 & /* embedded in client program - To run client manually for testing >java BusTicketSystemClient -ORBInitialHost go -ORBInitialPort 1050 */ - TO start tomcat(CLUE machine) >/afs/ece/user/wtang/Apache/jakarta-tomcat-4.1.31/bin/startup.sh - TO start apache(CLUE machine) >/afs/ece/usr/heejoonj/apache/bin/apachectl start - TO stop tomcat (CLUE machine) >/afs/ece/user/wtang/Apache/jakarta-tomcat-4.1.31/bin/stop.sh - TO stop apache(CLUE machine) >/afs/ece/usr/heejoonj/apache/bin/apachectl stop