Click here to Skip to main content
16,021,041 members
Articles / Operating Systems / Linux
Tip/Trick

How to Deploy your Java Web Project code to Linux server

Rate me:
Please Sign up or sign in to vote.
1.00/5 (1 vote)
5 Dec 2011CPOL 19.3K   2
How to deploy your Java Web Project code to a Linux server.

Deploying a new server:


<! Login as Registered user>
login as: Secqtinstien_D
Secqtinstien_D@192.168.10.49's password:
Last login: Tue Jan  4 13:57:15 2011 from MySystem_IPAddress
[Secqtinstien_D@MyServer ~]$
[Secqtinstien_D@MyServer ~]$ ls -l
total 0
<! Here we have created new entry with new user name>
<! So create a directory to work for, by mkdir command>
[Secqtinstien_D@MyServer ~]$ mkdir apps
[Secqtinstien_D@MyServer ~]$ ls -l
total 4
drwxrwxr-x 2 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:24 apps
[Secqtinstien_D@MyServer ~]$ mkdir asd
[Secqtinstien_D@MyServer ~]$ ls -l
total 8
drwxrwxr-x 2 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:24 apps
drwxrwxr-x 2 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:24 asd
<! 'ls -l' command is used to show long listing of the directory with all of its permissions>
[Secqtinstien_D@MyServer ~]$ rm -rf asd
<! 'rm' is used for deleting directories and files with remove forcely under -rf options>
[Secqtinstien_D@MyServer ~]$ ls -p
apps/
[Secqtinstien_D@MyServer ~]$ ls -l
total 4
drwxrwxr-x 2 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:24 apps
[Secqtinstien_D@MyServer ~]$ cd apps
<! 'cd' is used with file name to change directory downwards>
[Secqtinstien_D@MyServer apps]$ ls -l
total 0
[Secqtinstien_D@MyServer apps]$ mysql -uroot -proot;
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2378
Server version: 5.0.77 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
<! 'mysql' command is used to open connection to mysql client using -uroot and -proot options>
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| bugzilladata       |
| mandeep            |
| mysql              |
| obs_cmps           |
| obs_login          |
+--------------------+
22 rows in set (0.01 sec)
<! Show database command give details of the Db's present in mysql client>
mysql> create database MyProject default character set utf8;
Query OK, 1 row affected (0.00 sec)
<! To create a database named MyProject with default character set defined as UTF8>
mysql> create database user_management default character set utf8;
Query OK, 1 row affected (0.00 sec)
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| MyProject            |
| bugzilladata       |
| equalsdb_22april   |
| family             |
| mysql              |
| sakai              |
| test               |
| user_management  |
+--------------------+
24 rows in set (0.00 sec)
mysql> use MyProject;
Database changed
<! 'use MyProject' command is to modify or change in MyProject database>
mysql> grant all privileges on MyProject to 'root'@'localhost' identified by 'root';
Query OK, 0 rows affected (0.03 sec)
<! to grant all of the permissions to all users of the system over MyProject database>
mysql> grant all privileges on MyProject.* to 'root'@'localhost' identified by 'root';
Query OK, 0 rows affected (0.00 sec)
mysql> grant all privileges on user_management.* to 'root'@'localhost' identified by 'root';
Query OK, 0 rows affected (0.00 sec)
mysql> use MyProject;
Database changed
mysql> show tables;
Empty set (0.00 sec)
mysql> use user_management;
Database changed
<! to show the all of the tables declared in side the specified database>
mysql> show tables;
Empty set (0.01 sec)
mysql>
[1]+  Stopped                 mysql -uroot -proot
[Secqtinstien_D@MyServer apps]$
[Secqtinstien_D@MyServer apps]$ ls -l
total 0
[Secqtinstien_D@MyServer apps]$
[Secqtinstien_D@MyServer apps]$ svn co svn://svn.amsoftsystems.com/home/SVNROOT/OBS/MyProject/trunk
Checked out revision 2267.
<! to checkout the latest code on svn server>
[Secqtinstien_D@MyServer apps]$
[Secqtinstien_D@MyServer apps]$ ls -l
total 4
drwxrwxr-x 9 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 trunk
[Secqtinstien_D@MyServer apps]$ svn co svn://svn.amsoftsystems.com/home/SVNROOT/OBS/CMPS/SmartGWT/LoginApp
 Checked out revision 2267.
[Secqtinstien_D@MyServer apps]$ ls -l
total 8
drwxrwxr-x 8 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:34 LoginApp
drwxrwxr-x 9 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 trunk
[Secqtinstien_D@MyServer apps]$ cd LoginApp
[Secqtinstien_D@MyServer LoginApp]$ ls -l
total 20
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:34 build
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:34 dbscripts
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:34 lib
drwxrwxr-x 4 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:34 src
drwxrwxr-x 8 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:34 war
[Secqtinstien_D@MyServer LoginApp]$ cd dbscripts
<! change directory to dbscripts under LoginApp Directory>
[Secqtinstien_D@MyServer dbscripts]$ ls -l
total 80
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  300 Jan  4 14:34 user_management_10.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  233 Jan  4 14:34 user_management_11.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  369 Jan  4 14:34 user_management_18.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  396 Jan  4 14:34 user_management_1.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  214 Jan  4 14:34 user_management_2.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  102 Jan  4 14:34 user_management_3.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 6515 Jan  4 14:34 user_management.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management                             .sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management                             _1.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management_2.sql                       [Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management_3.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management_4.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management_5.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management_6.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management_7.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management_8.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management_9.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management_10.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management_11.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management_12.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management_13.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management_14.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management_15.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management_16.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management_17.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot user_management < user_management_18.sql
<! 'mysql -uroot -proot user_management < user_management_18.sql' command is used to run scripts under dbscripts directory>
[Secqtinstien_D@MyServer dbscripts]$
[Secqtinstien_D@MyServer dbscripts]$ ls -l
total 80
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  300 Jan  4 14:34 user_management_10.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   88 Jan  4 14:34 user_management_17.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  369 Jan  4 14:34 user_management_18.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  396 Jan  4 14:34 user_management_1.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 6515 Jan  4 14:34 user_management.sql
[Secqtinstien_D@MyServer dbscripts]$ cd ../
<! 'cd ../' is used with file name to change directory upwards>
[Secqtinstien_D@MyServer LoginApp]$ cd ../
[Secqtinstien_D@MyServer apps]$ ls -l
total 8
drwxrwxr-x 8 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:34 LoginApp
drwxrwxr-x 9 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 trunk
[Secqtinstien_D@MyServer apps]$ cd trunk
[Secqtinstien_D@MyServer trunk]$ ls -l
total 24
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 build
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 dbscripts
drwxrwxr-x 8 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 docs
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 lib
drwxrwxr-x 4 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 src
drwxrwxr-x 7 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 war
<! Trunk is the default directory to have svn checked out/in data on your local system>
[Secqtinstien_D@MyServer trunk]$ cd dbscripts
[Secqtinstien_D@MyServer dbscripts]$ ls -l
total 72
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   121 Jan  4 14:33 alter10.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   314 Jan  4 14:33 alter11.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   146 Jan  4 14:33 alter1.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  1716 Jan  4 14:33 alter2.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  2302 Jan  4 14:33 obs_MyProject_pt_order_design.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  8692 Jan  4 14:33 obs_inventory_db_design.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  3510 Jan  4 14:33 obs_inventory_db_values_2010-12-01.sql
<! change working directory to dbscripts and run all of the scripts>
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot MyProject < obs_MyProject_pt_order_design.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot MyProject < obs_inventory_db_design.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot MyProject <  obs_inventory_db_values_2010-12-01.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot MyProject <   obs_MyProject_pt_order_design.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot MyProject < obs_MyProject_pt_order_design.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot MyProject < alter1.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot MyProject < alter2.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot MyProject < alter3.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot MyProject < alter4.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot MyProject < alter5.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot MyProject < alter6.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot MyProject < alter7.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot MyProject < alter8.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot MyProject < alter9.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot MyProject < alter10.sql
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot MyProject < alter11.sql
[Secqtinstien_D@MyServer dbscripts]$
[Secqtinstien_D@MyServer dbscripts]$  cd ../
[Secqtinstien_D@MyServer trunk]$ cd ../
[Secqtinstien_D@MyServer apps]$ ls -l
total 8
drwxrwxr-x 8 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:34 LoginApp
drwxrwxr-x 9 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 trunk
[Secqtinstien_D@MyServer apps]$ cd trunk
[Secqtinstien_D@MyServer trunk]$ ls -l
total 24
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 build
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 dbscripts
drwxrwxr-x 8 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 docs
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 lib
drwxrwxr-x 4 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 src
drwxrwxr-x 7 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 war
[Secqtinstien_D@MyServer trunk]$ cd build
[Secqtinstien_D@MyServer build]$ ls -l
total 8
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  105 Jan  4 14:33 build.properties
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 3373 Jan  4 14:33 build.xml

Installing Tomcat Server:


<! Login>
login as: Secqtinstien_D
Secqtinstien_D@192.168.10.49's password:
Last login: Tue Jan 25 10:29:56 2011 from MySystem_IPAddress
[Secqtinstien_D@MyServer ~]$
<! if tomcat is not present in your directory then install it in your local directory from remote server or from any other directory/system>
[Secqtinstien_D@MyServer ~]$ ls -l
total 40704
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 41628601 Jan  4 20:01 LoginApp.war
drwxrwxr-x 9 Secqtinstien_D Secqtinstien_D     4096 Jan  6 11:17 project
[Secqtinstien_D@MyServer ~]$ mkdir tomcat
<! creating a directory to start with, by mkdir command>
[Secqtinstien_D@MyServer ~]$
[Secqtinstien_D@MyServer ~]$ ls -l
total 40708
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 41628601 Jan  4 20:01 LoginApp.war
drwxrwxr-x 9 Secqtinstien_D Secqtinstien_D     4096 Jan  6 11:17 project
drwxrwxr-x 2 Secqtinstien_D Secqtinstien_D     4096 Jan 27 12:31 tomcat
[Secqtinstien_D@MyServer ~]$ cd tomcat
[Secqtinstien_D@MyServer ~]$
[Secqtinstien_D@MyServer ~]$ locate tomcat
<! Searching Tomcat Server Dumb on linux machine under all users category>
/home/Secqtinstien_D/project/apache-tomcat-5.5.31
/usr/src/apache-tomcat-5.5.31.tar.gz
[Secqtinstien_D@MyServer ~]$
[Secqtinstien_D@MyServer tomcat]$ cp -rf /usr/src/apache-tomcat-5.5.31.tar.gz .
<! Making a copy of the found Dumb on local present folder, Here last dot presents the Local/Current Folder>
[Secqtinstien_D@MyServer tomcat]$ ls -l
total 8096
-rw-r--r-- 1 Secqtinstien_D Secqtinstien_D 8277017 Jan 27 12:32 apache-tomcat-5.5.31.tar.gz
[Secqtinstien_D@MyServer tomcat]$ tar zxf apache-tomcat-5.5.31.tar.gz
<! Extracting the tomcat Gunzip (.gz) folder on local directory>
[Secqtinstien_D@MyServer tomcat]$ ls -l
total 8100
drwxrwxr-x 11 Secqtinstien_D Secqtinstien_D    4096 Jan 27 12:56 apache-tomcat-5.5.31
-rw-r--r--  1 Secqtinstien_D Secqtinstien_D 8277017 Jan 27 12:32 apache-tomcat-5.5.31.tar.gz
[Secqtinstien_D@MyServer tomcat]$ cd apache-tomcat-5.5.31
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$ ls -l
total 100
drwxrwxr-x 4 Secqtinstien_D Secqtinstien_D  4096 Jan 27 12:56 bin
drwxr-xr-x 6 Secqtinstien_D Secqtinstien_D  4096 Sep  5 01:23 common
drwxr-xr-x 3 Secqtinstien_D Secqtinstien_D  4096 Sep  5 01:24 conf
-rw-r--r-- 1 Secqtinstien_D Secqtinstien_D 40487 Sep  5 01:24 LICENSE
drwxr-xr-x 2 Secqtinstien_D Secqtinstien_D  4096 Sep  5 01:23 logs
-rw-r--r-- 1 Secqtinstien_D Secqtinstien_D   760 Sep  5 01:24 NOTICE
-rw-r--r-- 1 Secqtinstien_D Secqtinstien_D  9082 Sep  5 01:23 RELEASE-NOTES
-rw-r--r-- 1 Secqtinstien_D Secqtinstien_D  8042 Sep  5 01:24 RUNNING.txt
drwxr-xr-x 5 Secqtinstien_D Secqtinstien_D  4096 Sep  5 01:23 server
drwxr-xr-x 4 Secqtinstien_D Secqtinstien_D  4096 Sep  5 01:23 shared
drwxr-xr-x 2 Secqtinstien_D Secqtinstien_D  4096 Jan 27 12:56 temp
drwxr-xr-x 8 Secqtinstien_D Secqtinstien_D  4096 Sep  5 01:23 webapps
drwxr-xr-x 2 Secqtinstien_D Secqtinstien_D  4096 Sep  5 01:23 work
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$ cd ../
[Secqtinstien_D@MyServer tomcat]$ cd ../
[Secqtinstien_D@MyServer ~]$ ls -l
total 40708
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 41628601 Jan  4 20:01 LoginApp.war
drwxrwxr-x 9 Secqtinstien_D Secqtinstien_D     4096 Jan  6 11:17 project
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D     4096 Jan 27 12:56 tomcat
[Secqtinstien_D@MyServer tomcat]$
<! we have made available Tomcat server on local folder, now its time to configure server>
[Secqtinstien_D@MyServer bin]$ vim ~/.bashrc
[Secqtinstien_D@MyServer bin]$ vim ~/.bashprofile
<! now set envirnoment variables for Tomcat under BASHRC/BASHPROFILE file in such a manner like :-
EXPORT GWT_HOME = "/home/Secqtinstien_D/Project/Gwt-linux-1.7.0"
EXPORT CATALINA_HOME = "/Home/Secqtinstien_D/Project/apache-tomcat-5.5.31"
Both of the paths will set the local envirnoments to linux server and will configure tomcat>
<! now locate tomcat in your local directory, it is also installed in projects directory>
<! we have configured Tomcat in your Projects directory>
[Secqtinstien_D@MyServer ~]$
<! if tomcat is present on your local machine then>
[Secqtinstien_D@MyServer ~]$ ps -ef|grep tomcat
Secqtinstien_D   10600     1  0 Jan06 ?        00:04:07 /usr/java/default/bin/java -
Secqtinstien_D   11391 11361  0 10:48 pts/1    00:00:00 grep tomcat
<! check whether tomcat is running or not by 'Ps -ef|grep tomcat' command>
[Secqtinstien_D@MyServer ~]$ kill -9 10600
[Secqtinstien_D@MyServer ~]$
<! if running stop tomcat server forcefully having Ps Id : 10600 for the changes to be made>
[Secqtinstien_D@MyServer ~]$
[Secqtinstien_D@MyServer ~]$ ls -l
total 40704
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 41628601 Jan  4 20:01 LoginApp.war
drwxrwxr-x 9 Secqtinstien_D Secqtinstien_D     4096 Jan  6 11:17 project
[Secqtinstien_D@MyServer ~]$ cd project
[Secqtinstien_D@MyServer project]$
[Secqtinstien_D@MyServer project]$ ls -l
total 28
drwxrwxr-x 11 Secqtinstien_D Secqtinstien_D 4096 Jan  5 11:49 apache-tomcat-5.5.31
drwxrwxr-x  6 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 MyProject
drwxrwxr-x  9 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 MyProject_old
drwxrwxr-x  8 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:34 login
drwxrwxr-x  8 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:07 LoginApp
<! now tomcat is in your project directory>
[Secqtinstien_D@MyServer project]$ cd apache-tomcat-5.5.31
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$ ls -l
total 100
drwxrwxr-x 4 Secqtinstien_D Secqtinstien_D  4096 Jan  5 11:49 bin
drwxr-xr-x 9 Secqtinstien_D Secqtinstien_D  4096 Jan  6 11:45 webapps
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$ cd webapps
<! change the working directory to webapps>
[Secqtinstien_D@MyServer webapps]$  ls -l
total 86076
drwxrwxr-x  7 Secqtinstien_D Secqtinstien_D     4096 Jan 25 10:54 MyProject
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 46381085 Jan  6 11:37 MyProject.war
drwxrwxr-x  7 Secqtinstien_D Secqtinstien_D     4096 Jan  6 11:56 LoginApp
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 41628601 Jan  6 11:43 LoginApp.war
drwxr-xr-x  3 Secqtinstien_D Secqtinstien_D     4096 Jan  5 11:49 webdav
[Secqtinstien_D@MyServer webapps]$ rm MyProject.war
<! Remove existing MyProject.war files from your Web Server>
[Secqtinstien_D@MyServer webapps]$
[Secqtinstien_D@MyServer webapps]$ ls -l
total 40728
drwxrwxr-x  7 Secqtinstien_D Secqtinstien_D     4096 Jan 25 10:54 MyProject
drwxrwxr-x  7 Secqtinstien_D Secqtinstien_D     4096 Jan  6 11:56 LoginApp
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 41628601 Jan  6 11:43 LoginApp.war
drwxr-xr-x  3 Secqtinstien_D Secqtinstien_D     4096 Jan  5 11:49 webdav
[Secqtinstien_D@MyServer webapps]$ rm -rf MyProject
<! Remove existing MyProject files from your Web Server>
[Secqtinstien_D@MyServer webapps]$
[Secqtinstien_D@MyServer webapps]$ ls -l
total 40724
drwxrwxr-x  7 Secqtinstien_D Secqtinstien_D     4096 Jan  6 11:56 LoginApp
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 41628601 Jan  6 11:43 LoginApp.war
drwxr-xr-x  3 Secqtinstien_D Secqtinstien_D     4096 Jan  5 11:49 webdav
[Secqtinstien_D@MyServer webapps]$ cp -Rf /home/Secqtinstien_D/project/MyProject/trunk/build/b
MyProject.war       build.properties  build.xml
[Secqtinstien_D@MyServer webapps]$ cp -Rf /home/Secqtinstien_D/project/MyProject/trunk/build/MyProject.war .
<! copy your newly generated war files into your Tomcat Server>
[Secqtinstien_D@MyServer webapps]$
[Secqtinstien_D@MyServer webapps]$ ls -l
total 86496
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 46815628 Jan 25 11:11 MyProject.war
drwxrwxr-x  7 Secqtinstien_D Secqtinstien_D     4096 Jan  6 11:56 LoginApp
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 41628601 Jan  6 11:43 LoginApp.war
drwxr-xr-x  3 Secqtinstien_D Secqtinstien_D     4096 Jan  5 11:49 webdav
[Secqtinstien_D@MyServer webapps]$ rm -rf LoginApp
LoginApp/     LoginApp.war
[Secqtinstien_D@MyServer webapps]$ rm -rf LoginApp
LoginApp/     LoginApp.war
[Secqtinstien_D@MyServer webapps]$ rm -rf LoginApp LoginApp.war
<! Remove existing LoginApp.war and LoginApp files from your Web Server>
[Secqtinstien_D@MyServer webapps]$
[Secqtinstien_D@MyServer webapps]$ ls -l
total 45792
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 46815628 Jan 25 11:11 MyProject.war
drwxr-xr-x  3 Secqtinstien_D Secqtinstien_D     4096 Jan  5 11:49 webdav
[Secqtinstien_D@MyServer webapps]$ cp -rf /home/Secqtinstien_D/project/LoginApp/build/LoginApp.war .
<! copy your newly generated war files into your Tomcat Server>
[Secqtinstien_D@MyServer webapps]$ ls -l
total 86468
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 46815628 Jan 25 11:11 MyProject.war
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 41607026 Jan 25 11:22 LoginApp.war
drwxr-xr-x  3 Secqtinstien_D Secqtinstien_D     4096 Jan  5 11:49 webdav
[Secqtinstien_D@MyServer webapps]$ cd ../
<! now your server is up to start>
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$ cd bin
[Secqtinstien_D@MyServer bin]$ ls -l
total 1788
-rw-r--r-- 1 Secqtinstien_D Secqtinstien_D   9995 Sep  5 01:23 catalina.bat
-rwxr-xr-x 1 Secqtinstien_D Secqtinstien_D  13131 Sep  5 01:23 catalina.sh
-rw-r--r-- 1 Secqtinstien_D Secqtinstien_D   1927 Sep  5 01:23 catalina-tasks.xml
-rwxr-xr-x 1 Secqtinstien_D Secqtinstien_D   1627 Sep  5 01:23 digest.sh
-rw-r--r-- 1 Secqtinstien_D Secqtinstien_D   2099 Sep  5 01:23 shutdown.bat
-rwxr-xr-x 1 Secqtinstien_D Secqtinstien_D   1566 Sep  5 01:23 shutdown.sh
-rw-r--r-- 1 Secqtinstien_D Secqtinstien_D   2100 Sep  5 01:23 startup.bat
-rwxr-xr-x 1 Secqtinstien_D Secqtinstien_D   1959 Sep  5 01:23 startup.sh
-rw-r--r-- 1 Secqtinstien_D Secqtinstien_D 241274 Sep  5 01:23 tomcat-native.tar.gz
-rw-r--r-- 1 Secqtinstien_D Secqtinstien_D   1570 Sep  5 01:23 version.sh
[Secqtinstien_D@MyServer bin]$ ./startup.sh
<! start server using the command './startup.sh'>
Using CATALINA_BASE:   /home/Secqtinstien_D/project/apache-tomcat-5.5.31
[Secqtinstien_D@MyServer bin]$
<! check whether tomcat is running or not>
[Secqtinstien_D@MyServer bin]$ ps -ef|grep tomcat
Secqtinstien_D   11667     1 99 11:23 pts/1    00:00:27 /usr/java/default/bin/java
Secqtinstien_D   11717 11361  0 11:23 pts/1    00:00:00 grep tomcat
[Secqtinstien_D@MyServer bin]$ kill -9 11667
<! stop tomcat>
[Secqtinstien_D@MyServer bin]$
[Secqtinstien_D@MyServer bin]$ ps -ef|grep tomcat
Secqtinstien_D   11719 11361  0 11:24 pts/1    00:00:00 grep tomcat
[Secqtinstien_D@MyServer bin]$
[Secqtinstien_D@MyServer bin]$ cd ..
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$ cd ../
[Secqtinstien_D@MyServer project]$ cd apache-tomcat-5.5.31/
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$ cd webapps
<! check whether the war file have been extracted into directories or not>
[Secqtinstien_D@MyServer webapps]$ ls -l
total 86476
drwxrwxr-x  7 Secqtinstien_D Secqtinstien_D     4096 Jan 25 11:23 MyProject
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 46815628 Jan 25 11:11 MyProject.war
drwxrwxr-x  7 Secqtinstien_D Secqtinstien_D     4096 Jan 25 11:23 LoginApp
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 41607026 Jan 25 11:22 LoginApp.war
drwxr-xr-x 12 Secqtinstien_D Secqtinstien_D     4096 Jan  5 11:49 tomcat-docs
drwxr-xr-x  3 Secqtinstien_D Secqtinstien_D     4096 Jan  5 11:49 webdav
[Secqtinstien_D@MyServer webapps]$ cd MyProject
<! go to 'MyProject/WEB-INF/Classes' directory to keep track of the changes in server.properties files>
[Secqtinstien_D@MyServer MyProject]$ ls -l
total 28
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan 25 11:23 MyProject
drwxrwxr-x 2 Secqtinstien_D Secqtinstien_D 4096 Jan 25 11:23 images
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 6632 Jan 25 10:51 index.html
drwxrwxr-x 5 Secqtinstien_D Secqtinstien_D 4096 Jan 25 11:23 WEB-INF
[Secqtinstien_D@MyServer MyProject]$ cd WEB-INF/
[Secqtinstien_D@MyServer WEB-INF]$
[Secqtinstien_D@MyServer WEB-INF]$ cd classes/
[Secqtinstien_D@MyServer classes]$
[Secqtinstien_D@MyServer classes]$ ls -l
total 24
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan 25 11:23 com
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  134 Jan 25 10:51 hsqlserver.properties
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 4898 Jan 25 10:51 log4j.isc.config.xml
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 5825 Jan 25 10:51 server.properties
[Secqtinstien_D@MyServer classes]$
[Secqtinstien_D@MyServer classes]$  vim server.properties
<! to see whether the changes are up to mark, VIM is Text file editor for linux>
[Secqtinstien_D@MyServer classes]$
[Secqtinstien_D@MyServer classes]$ cd ../../../
[Secqtinstien_D@MyServer webapps]$ ls
balancer  MyProject  MyProject.war  jsp-examples  LoginApp  LoginApp.war  servlets-examples  tomcat-docs  webdav
[Secqtinstien_D@MyServer webapps]$
[Secqtinstien_D@MyServer webapps]$ cd LoginApp
<! go to 'LoginApp/WEB-INF/Classes' directory to keep track of the changes in server.properties files>
[Secqtinstien_D@MyServer LoginApp]$
[Secqtinstien_D@MyServer LoginApp]$ ls
css  ds  images  loginapp  LoginApp.html  WEB-INF
[Secqtinstien_D@MyServer LoginApp]$
[Secqtinstien_D@MyServer LoginApp]$ cd WEB-INF/classes/
[Secqtinstien_D@MyServer classes]$
[Secqtinstien_D@MyServer classes]$ ls
com  hsqlserver.properties  log4j.isc.config.xml  server.properties
[Secqtinstien_D@MyServer classes]$
[Secqtinstien_D@MyServer classes]$ vim server.properties
[Secqtinstien_D@MyServer classes]$
[Secqtinstien_D@MyServer classes]$ vim server.properties
[Secqtinstien_D@MyServer classes]$
[Secqtinstien_D@MyServer classes]$ cd ../../../
[Secqtinstien_D@MyServer webapps]$
[Secqtinstien_D@MyServer webapps]$ cd ../
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$ cd bin/
[Secqtinstien_D@MyServer bin]$ ./startup.sh
<! start the Tomcat server after finishing all task>
Using CATALINA_BASE:   /home/Secqtinstien_D/project/apache-tomcat-5.5.31
[Secqtinstien_D@MyServer bin]$ cd ../
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$ cd webapps/MyProject/WEB-INF/classes/
[Secqtinstien_D@MyServer classes]$
[Secqtinstien_D@MyServer classes]$ vim server.properties
[Secqtinstien_D@MyServer classes]$

Updating the deployed server:


<! Login as Registered user>
login as: Secqtinstien_D
Secqtinstien_D@192.168.10.49's password:
Last login: Mon Jan 24 11:47:55 2011 from 192.168.5.86
[Secqtinstien_D@MyServer ~]$ ls -l
total 40704
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 41628601 Jan  4 20:01 LoginApp.war
drwxrwxr-x 9 Secqtinstien_D Secqtinstien_D     4096 Jan  6 11:17 project
<! go to 'Project/MyProject/trunk' directory for changes>
[Secqtinstien_D@MyServer ~]$ cd project
[Secqtinstien_D@MyServer project]$ ls -l
total 28
drwxrwxr-x 11 Secqtinstien_D Secqtinstien_D 4096 Jan  5 11:49 apache-tomcat-5.5.31
drwxrwxr-x  6 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 MyProject
drwxrwxr-x  9 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 MyProject_old
drwxrwxr-x  5 Secqtinstien_D Secqtinstien_D 4096 Jan  5 13:30 gwt-linux-1.7.0
drwxrwxr-x  8 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:34 login
drwxrwxr-x  8 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:07 LoginApp
drwxrwxr-x  2 Secqtinstien_D Secqtinstien_D 4096 Jan  5 11:53 software
[Secqtinstien_D@MyServer project]$ cd MyProject
[Secqtinstien_D@MyServer MyProject]$ ls -l
total 12
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 branches
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 tags
drwxrwxr-x 9 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 trunk
[Secqtinstien_D@MyServer MyProject]$ cd trunk
[Secqtinstien_D@MyServer trunk]$ ls -l
total 24
drwxrwxr-x 4 Secqtinstien_D Secqtinstien_D 4096 Jan 18 13:46 build
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 dbscripts
drwxrwxr-x 8 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 docs
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:17 lib
drwxrwxr-x 4 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:17 src
drwxrwxr-x 7 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 war
[Secqtinstien_D@MyServer trunk]$ svn info
Path: .
URL: svn://svn.amsoftsystems.com/home/SVNROOT/OBS/MyProject/trunk
Revision: 2294
Last Changed Date: 2011-01-06 10:10:37 +0530 (Thu, 06 Jan 2011)
<! to check the latest SVN INFO for the server>
[Secqtinstien_D@MyServer trunk]$ svn status
?      build/MyProject.war
?      build/war
M      build/build.properties
<! to check whether there is any change under Code or not, indicated by M for Modified, A for Appended or added, U for Updated, D for Deleted or U for Unchanged/Universal>
[Secqtinstien_D@MyServer trunk]$ clear
[Secqtinstien_D@MyServer trunk]$ svn update
U    src/log4j.isc.config.xml
A    dbscripts/alter17.sql
A    dbscripts/alter18.sql
Updated to revision 2416.
[Secqtinstien_D@MyServer trunk]$ ls
build  dbscripts  docs  lib  src  war
<! if any change found then to update SVN code on your local server by 'SVN UPDATE'>
[Secqtinstien_D@MyServer trunk]$ cd war/
[Secqtinstien_D@MyServer war]$ ll
total 24
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 css
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan 25 10:43 ds
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 images
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 6632 Jan 25 10:43 index.html
drwxrwxr-x 4 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 WEB-INF
[Secqtinstien_D@MyServer war]$ cd WEB-INF/
[Secqtinstien_D@MyServer WEB-INF]$ ll
total 28
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 9097 Jan  6 11:18 iscTaglib.xml
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan 25 10:43 lib
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  987 Jan  6 11:18 logging.properties
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 7045 Jan 25 10:43 web.xml
[Secqtinstien_D@MyServer WEB-INF]$ cd ../../
[Secqtinstien_D@MyServer trunk]$ ls
build  dbscripts  docs  lib  src  war
[Secqtinstien_D@MyServer trunk]$
[Secqtinstien_D@MyServer trunk]$ cd build/
<! change present working directory to build from trunk>
[Secqtinstien_D@MyServer build]$
[Secqtinstien_D@MyServer build]$ ls
MyProject.war  build.properties  build.xml  war
[Secqtinstien_D@MyServer build]$
[Secqtinstien_D@MyServer build]$ rm MyProject.war
<! Remove all War files and there asociated files from the build directory>
[Secqtinstien_D@MyServer build]$ ls
build.properties  build.xml  war
[Secqtinstien_D@MyServer build]$ rm -Rf war
<! Remove all War files and there asociated files from the build directory>
[Secqtinstien_D@MyServer build]$
[Secqtinstien_D@MyServer build]$ ls -l
total 8
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   92 Jan  6 11:27 build.properties
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 3373 Jan  6 11:17 build.xml
[Secqtinstien_D@MyServer build]$ ant
<! run build by command 'ANT'>
Buildfile: build.xml
libs:
build:
      [zip] Building zip: /home/Secqtinstien_D/project/MyProject/trunk/build/MyProject.war
     [copy] Copying 511 files to /home/Secqtinstien_D/project/apache-tomcat-5.5.31/webapps/MyProject
BUILD SUCCESSFUL
Total time: 2 minutes 57 seconds
[Secqtinstien_D@MyServer build]$
[Secqtinstien_D@MyServer build]$ ls -l
total 45784
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 46815628 Jan 25 10:54 MyProject.war
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D       92 Jan  6 11:27 build.properties
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D     3373 Jan  6 11:17 build.xml
drwxrwxr-x 7 Secqtinstien_D Secqtinstien_D     4096 Jan 25 10:54 war
<! after building new war, associated files will be generated>
[Secqtinstien_D@MyServer build]$
[Secqtinstien_D@MyServer build]$ cd ../
[Secqtinstien_D@MyServer trunk]$ ls -l
total 24
drwxrwxr-x 4 Secqtinstien_D Secqtinstien_D 4096 Jan 25 10:54 build
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan 25 10:43 dbscripts
drwxrwxr-x 8 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 docs
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:17 lib
drwxrwxr-x 4 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:17 src
drwxrwxr-x 7 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 war
[Secqtinstien_D@MyServer trunk]$ cd ../
[Secqtinstien_D@MyServer MyProject]$ cd ../
[Secqtinstien_D@MyServer project]$ ls -l
total 28
drwxrwxr-x 11 Secqtinstien_D Secqtinstien_D 4096 Jan  5 11:49 apache-tomcat-5.5.31
drwxrwxr-x  6 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 MyProject
drwxrwxr-x  9 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 MyProject_old
drwxrwxr-x  5 Secqtinstien_D Secqtinstien_D 4096 Jan  5 13:30 gwt-linux-1.7.0
drwxrwxr-x  8 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:34 login
drwxrwxr-x  8 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:07 LoginApp
drwxrwxr-x  2 Secqtinstien_D Secqtinstien_D 4096 Jan  5 11:53 software
[Secqtinstien_D@MyServer project]$ ls -l
total 28
drwxrwxr-x 11 Secqtinstien_D Secqtinstien_D 4096 Jan  5 11:49 apache-tomcat-5.5.31
drwxrwxr-x  6 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 MyProject
drwxrwxr-x  9 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 MyProject_old
drwxrwxr-x  5 Secqtinstien_D Secqtinstien_D 4096 Jan  5 13:30 gwt-linux-1.7.0
drwxrwxr-x  8 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:34 login
drwxrwxr-x  8 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:07 LoginApp
drwxrwxr-x  2 Secqtinstien_D Secqtinstien_D 4096 Jan  5 11:53 software
[Secqtinstien_D@MyServer project]$ cd ../
[Secqtinstien_D@MyServer ~]$ ls
LoginApp.war  project
[Secqtinstien_D@MyServer ~]$
[Secqtinstien_D@MyServer ~]$
[Secqtinstien_D@MyServer ~]$ cd project/MyProject/trunk/
[Secqtinstien_D@MyServer trunk]$ ls
build  dbscripts  docs  lib  src  war
[Secqtinstien_D@MyServer trunk]$ cd dbscripts/
<! Look for the changes in scripts if any>
[Secqtinstien_D@MyServer dbscripts]$
[Secqtinstien_D@MyServer dbscripts]$ ls
alter10.sql  alter13.sql  alter16.sql  alter1.sql  alter4.sql  alter7.sql  obs_MyProject_pt_order_design.sql
alter11.sql  alter14.sql  alter17.sql  alter2.sql  alter5.sql  alter8.sql  obs_inventory_db_design.sql
alter12.sql  alter15.sql  alter18.sql  alter3.sql  alter6.sql  alter9.sql  obs_inventory_db_values_2010-12-01.sql
[Secqtinstien_D@MyServer dbscripts]$
[Secqtinstien_D@MyServer dbscripts]$ ll
total 104
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   105 Jan 25 10:43 alter10.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   314 Jan 25 10:43 alter11.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   327 Jan 25 10:43 alter12.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   458 Jan 25 10:43 alter13.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   114 Jan 25 10:43 alter14.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  2515 Jan 25 10:43 alter15.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  8187 Jan 25 10:43 alter16.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  1366 Jan 25 10:43 alter17.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   220 Jan 25 10:43 alter18.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   136 Jan 25 10:43 alter1.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  1666 Jan 25 10:43 alter2.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   478 Jan 25 10:43 alter3.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 11085 Jan 25 10:43 alter4.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   372 Jan 25 10:43 alter5.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   374 Jan 25 10:43 alter6.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   268 Jan 25 10:43 alter7.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   184 Jan  6 11:18 alter8.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D   433 Jan 25 10:43 alter9.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  2272 Jan 25 10:43 obs_MyProject_pt_order_design.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  8692 Jan  6 11:18 obs_inventory_db_design.sql
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  3510 Jan  6 11:18 obs_inventory_db_values_2010-12-01.sql
[Secqtinstien_D@MyServer dbscripts]$
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot  MyProject < alter12.sql
[Secqtinstien_D@MyServer dbscripts]$
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot  MyProject < alter13.sql
[Secqtinstien_D@MyServer dbscripts]$
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot  MyProject < alter14.sql
[Secqtinstien_D@MyServer dbscripts]$
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot  MyProject < alter15.sql
ERROR 1061 (42000) at line 18: Duplicate key name 'Index_2'
[Secqtinstien_D@MyServer dbscripts]$
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot  MyProject < alter16.sql
[Secqtinstien_D@MyServer dbscripts]$
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot  MyProject < alter17.sql
[Secqtinstien_D@MyServer dbscripts]$
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot  MyProject < alter18.sql
[Secqtinstien_D@MyServer dbscripts]$
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot  MyProject < obs_MyProject_pt_order_design.sql
ERROR 1050 (42S01) at line 1: Table 'pt_order' already exists
[Secqtinstien_D@MyServer dbscripts]$
[Secqtinstien_D@MyServer dbscripts]$ mysql -uroot -proot  MyProject < obs_MyProject_pt_order_design.sql
ERROR 1050 (42S01) at line 1: Table 'pt_order' already exists
<! run all newly added scripts found if any>
[Secqtinstien_D@MyServer dbscripts]$
[Secqtinstien_D@MyServer dbscripts]$ cd ../
[Secqtinstien_D@MyServer trunk]$
[Secqtinstien_D@MyServer trunk]$ ls
build  dbscripts  docs  lib  src  war
[Secqtinstien_D@MyServer trunk]$
[Secqtinstien_D@MyServer trunk]$ cd build/
[Secqtinstien_D@MyServer build]$ ls -l
total 45784
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 46815628 Jan 25 10:54 MyProject.war
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D       92 Jan  6 11:27 build.properties
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D     3373 Jan  6 11:17 build.xml
drwxrwxr-x 7 Secqtinstien_D Secqtinstien_D     4096 Jan 25 10:54 war
[Secqtinstien_D@MyServer build]$ pwd
/home/Secqtinstien_D/project/MyProject/trunk/build
<! 'PWD' command is used to show present working directory>
[Secqtinstien_D@MyServer build]$
[Secqtinstien_D@MyServer build]$ cd ../../
[Secqtinstien_D@MyServer MyProject]$ ls -l
total 12
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 branches
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 tags
drwxrwxr-x 9 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 trunk
[Secqtinstien_D@MyServer MyProject]$ cd ../
[Secqtinstien_D@MyServer project]$ ls
apache-tomcat-5.5.31  MyProject  MyProject_old  gwt-linux-1.7.0  login  LoginApp  software
[Secqtinstien_D@MyServer project]$ cd LoginApp
<! check updates available for LoginApp also>
[Secqtinstien_D@MyServer LoginApp]$ ls -l
total 20
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:38 build
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:07 dbscripts
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:07 lib
drwxrwxr-x 4 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:10 src
drwxrwxr-x 8 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:07 war
[Secqtinstien_D@MyServer LoginApp]$ svn info
Path: .
URL: svn://svn.amsoftsystems.com/home/SVNROOT/OBS/CMPS/SmartGWT/LoginApp
Repository Root: svn://svn.amsoftsystems.com/home/SVNROOT/OBS
Repository UUID: c3821b03-a511-4ce0-9205-8582179a76c2
Revision: 2294
Last Changed Date: 2010-12-29 16:00:57 +0530 (Wed, 29 Dec 2010)
[Secqtinstien_D@MyServer LoginApp]$ cd dbscripts/
<! check for updated SQL scripts, if any>
[Secqtinstien_D@MyServer dbscripts]$
[Secqtinstien_D@MyServer dbscripts]$ ls
user_management_10.sql  user_management_14.sql  user_management_18.sql  user_management_4.sql  user_management_8.sql
user_management_11.sql  user_management_15.sql  user_management_1.sql   user_management_5.sql  user_management_9.sql
user_management_12.sql  user_management_16.sql  user_management_2.sql   user_management_6.sql  user_management.sql
user_management_13.sql  user_management_17.sql  user_management_3.sql   user_management_7.sql
[Secqtinstien_D@MyServer dbscripts]$
[Secqtinstien_D@MyServer dbscripts]$ cd ../
[Secqtinstien_D@MyServer LoginApp]$
[Secqtinstien_D@MyServer LoginApp]$ svn status
<! check whether status changed or not>
M      src/server.properties
[Secqtinstien_D@MyServer LoginApp]$
[Secqtinstien_D@MyServer LoginApp]$ svn update
U    src/com/smartgwt/login/server/AuthServiceImpl.java
A    src/com/smartgwt/login/server/RegisterApplication.java
U    src/com/smartgwt/login/server/PermissionServiceImpl.java
U    src/com/smartgwt/login/client/CenterStack.java
U    src/com/smartgwt/login/client/LoginApp.java
U    src/com/smartgwt/login/client/AuthServiceAsync.java
U    src/com/smartgwt/login/client/AuthService.java
U    src/com/smartgwt/login/client/Impersonate.java
Updated to revision 2416.
[Secqtinstien_D@MyServer LoginApp]$ svn info
<! check whether Info changed or not>
Path: .
URL: svn://svn.amsoftsystems.com/home/SVNROOT/OBS/CMPS/SmartGWT/LoginApp
Repository Root: svn://svn.amsoftsystems.com/home/SVNROOT/OBS
Repository UUID: c3821b03-a511-4ce0-9205-8582179a76c2
Revision: 2416
Last Changed Date: 2011-01-21 12:12:12 +0530 (Fri, 21 Jan 2011)
<! now goto 'LoginApp/war/WEB-INF/Classes' directory>
[Secqtinstien_D@MyServer LoginApp]$ ls
build  dbscripts  lib  src  war
[Secqtinstien_D@MyServer LoginApp]$ cd war
[Secqtinstien_D@MyServer war]$ ls
css  ds  images  loginapp  LoginApp.html  WEB-INF
[Secqtinstien_D@MyServer war]$ cd WEB-INF/
[Secqtinstien_D@MyServer WEB-INF]$
[Secqtinstien_D@MyServer WEB-INF]$ cd classes/
[Secqtinstien_D@MyServer classes]$
[Secqtinstien_D@MyServer classes]$ ls
com  hsqlserver.properties  log4j.isc.config.xml  server.properties
[Secqtinstien_D@MyServer classes]$ rm -rf com
<!Delete all com directories for any conflicts to remove>
[Secqtinstien_D@MyServer classes]$
[Secqtinstien_D@MyServer classes]$ ls
hsqlserver.properties  log4j.isc.config.xml  server.properties
[Secqtinstien_D@MyServer classes]$ cd ../../../
[Secqtinstien_D@MyServer LoginApp]$ ls
build  dbscripts  lib  src  war
[Secqtinstien_D@MyServer LoginApp]$ cd build
[Secqtinstien_D@MyServer build]$
[Secqtinstien_D@MyServer build]$ ls
build.xml  ReadMe.txt
[Secqtinstien_D@MyServer build]$ ant war
<! build the wars>
Buildfile: build.xml
Build:
BUILD SUCCESSFUL
Total time: 2 minutes 34 seconds
[Secqtinstien_D@MyServer build]$
[Secqtinstien_D@MyServer build]$ ls -l
total 40688
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D     2931 Jan  6 11:07 build.xml
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 41607026 Jan 25 11:17 LoginApp.war
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D     1317 Jan  6 11:07 ReadMe.txt
drwxrwxr-x 7 Secqtinstien_D Secqtinstien_D     4096 Jan 25 11:15 war
[Secqtinstien_D@MyServer build]$ pwd
/home/Secqtinstien_D/project/LoginApp/build
[Secqtinstien_D@MyServer build]$ cd ../../../
[Secqtinstien_D@MyServer ~]$
<! Now update the Tomcat server>

Updating Tomcat server:


<! Login as Registered user>
login as: Secqtinstien_D
Secqtinstien_D@192.168.10.49's password:
Last login: Tue Jan 25 10:29:56 2011 from MySystem_IPAddress
[Secqtinstien_D@MyServer ~]$
[Secqtinstien_D@MyServer ~]$ ps -ef|grep tomcat
Secqtinstien_D   10600     1  0 Jan06 ?        00:04:07 /usr/java/default/bin/java -
Secqtinstien_D   11391 11361  0 10:48 pts/1    00:00:00 grep tomcat
<! check whether tomcat is running or not by 'Ps -ef|grep tomcat' command>
[Secqtinstien_D@MyServer ~]$ kill -9 10600
[Secqtinstien_D@MyServer ~]$
<! if running stop tomcat server forcefully having Ps Id : 10600 for the changes to be made>
[Secqtinstien_D@MyServer ~]$ ps -ef|grep tomcat
Secqtinstien_D   11532 11361  0 11:06 pts/1    00:00:00 grep tomcat
[Secqtinstien_D@MyServer ~]$
[Secqtinstien_D@MyServer ~]$ ls -l
<! now locate tomcat in your local directory>
total 40704
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 41628601 Jan  4 20:01 LoginApp.war
drwxrwxr-x 9 Secqtinstien_D Secqtinstien_D     4096 Jan  6 11:17 project
[Secqtinstien_D@MyServer ~]$ cd project
[Secqtinstien_D@MyServer project]$
[Secqtinstien_D@MyServer project]$ ls -l
total 28
drwxrwxr-x 11 Secqtinstien_D Secqtinstien_D 4096 Jan  5 11:49 apache-tomcat-5.5.31
drwxrwxr-x  6 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:18 MyProject
drwxrwxr-x  9 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:33 MyProject_old
drwxrwxr-x  8 Secqtinstien_D Secqtinstien_D 4096 Jan  4 14:34 login
drwxrwxr-x  8 Secqtinstien_D Secqtinstien_D 4096 Jan  6 11:07 LoginApp
<! now tomcat is in your projects directory>
[Secqtinstien_D@MyServer project]$ cd apache-tomcat-5.5.31
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$ ls -l
total 100
drwxrwxr-x 4 Secqtinstien_D Secqtinstien_D  4096 Jan  5 11:49 bin
drwxr-xr-x 9 Secqtinstien_D Secqtinstien_D  4096 Jan  6 11:45 webapps
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$ cd webapps
<! change the working directory to webapps>
[Secqtinstien_D@MyServer webapps]$  ls -l
total 86076
drwxrwxr-x  7 Secqtinstien_D Secqtinstien_D     4096 Jan 25 10:54 MyProject
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 46381085 Jan  6 11:37 MyProject.war
drwxrwxr-x  7 Secqtinstien_D Secqtinstien_D     4096 Jan  6 11:56 LoginApp
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 41628601 Jan  6 11:43 LoginApp.war
drwxr-xr-x  3 Secqtinstien_D Secqtinstien_D     4096 Jan  5 11:49 webdav
[Secqtinstien_D@MyServer webapps]$ rm MyProject.war
<! Remove existing MyProject.war files from your Web Server>
[Secqtinstien_D@MyServer webapps]$
[Secqtinstien_D@MyServer webapps]$ ls -l
total 40728
drwxrwxr-x  7 Secqtinstien_D Secqtinstien_D     4096 Jan 25 10:54 MyProject
drwxrwxr-x  7 Secqtinstien_D Secqtinstien_D     4096 Jan  6 11:56 LoginApp
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 41628601 Jan  6 11:43 LoginApp.war
drwxr-xr-x  3 Secqtinstien_D Secqtinstien_D     4096 Jan  5 11:49 webdav
[Secqtinstien_D@MyServer webapps]$ rm -rf MyProject
<! Remove existing MyProject files from your Web Server>
[Secqtinstien_D@MyServer webapps]$
[Secqtinstien_D@MyServer webapps]$ ls -l
total 40724
drwxrwxr-x  7 Secqtinstien_D Secqtinstien_D     4096 Jan  6 11:56 LoginApp
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 41628601 Jan  6 11:43 LoginApp.war
drwxr-xr-x  3 Secqtinstien_D Secqtinstien_D     4096 Jan  5 11:49 webdav
[Secqtinstien_D@MyServer webapps]$ cp -Rf /home/Secqtinstien_D/project/MyProject/trunk/build/b
MyProject.war       build.properties  build.xml
[Secqtinstien_D@MyServer webapps]$ cp -Rf /home/Secqtinstien_D/project/MyProject/trunk/build/MyProject.war .
<! copy your newly generated war files into your Tomcat Server>
[Secqtinstien_D@MyServer webapps]$
[Secqtinstien_D@MyServer webapps]$ ls -l
total 86496
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 46815628 Jan 25 11:11 MyProject.war
drwxrwxr-x  7 Secqtinstien_D Secqtinstien_D     4096 Jan  6 11:56 LoginApp
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 41628601 Jan  6 11:43 LoginApp.war
drwxr-xr-x  3 Secqtinstien_D Secqtinstien_D     4096 Jan  5 11:49 webdav
[Secqtinstien_D@MyServer webapps]$ rm -rf LoginApp
LoginApp/     LoginApp.war
[Secqtinstien_D@MyServer webapps]$ rm -rf LoginApp
LoginApp/     LoginApp.war
[Secqtinstien_D@MyServer webapps]$ rm -rf LoginApp LoginApp.war
<! Remove existing LoginApp.war and LoginApp files from your Web Server>
[Secqtinstien_D@MyServer webapps]$
[Secqtinstien_D@MyServer webapps]$ ls -l
total 45792
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 46815628 Jan 25 11:11 MyProject.war
drwxr-xr-x  3 Secqtinstien_D Secqtinstien_D     4096 Jan  5 11:49 webdav
[Secqtinstien_D@MyServer webapps]$ cp -rf /home/Secqtinstien_D/project/LoginApp/build/LoginApp.war .
<! copy your newly generated war files into your Tomcat Server>
[Secqtinstien_D@MyServer webapps]$ ls -l
total 86468
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 46815628 Jan 25 11:11 MyProject.war
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 41607026 Jan 25 11:22 LoginApp.war
drwxr-xr-x  3 Secqtinstien_D Secqtinstien_D     4096 Jan  5 11:49 webdav
[Secqtinstien_D@MyServer webapps]$ cd ../
<! now your server is up to start>
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$ cd bin
[Secqtinstien_D@MyServer bin]$ ls -l
total 1788
-rw-r--r-- 1 Secqtinstien_D Secqtinstien_D   9995 Sep  5 01:23 catalina.bat
-rwxr-xr-x 1 Secqtinstien_D Secqtinstien_D  13131 Sep  5 01:23 catalina.sh
-rw-r--r-- 1 Secqtinstien_D Secqtinstien_D   1927 Sep  5 01:23 catalina-tasks.xml
-rwxr-xr-x 1 Secqtinstien_D Secqtinstien_D   1627 Sep  5 01:23 digest.sh
-rw-r--r-- 1 Secqtinstien_D Secqtinstien_D   2099 Sep  5 01:23 shutdown.bat
-rwxr-xr-x 1 Secqtinstien_D Secqtinstien_D   1566 Sep  5 01:23 shutdown.sh
-rw-r--r-- 1 Secqtinstien_D Secqtinstien_D   2100 Sep  5 01:23 startup.bat
-rwxr-xr-x 1 Secqtinstien_D Secqtinstien_D   1959 Sep  5 01:23 startup.sh
-rw-r--r-- 1 Secqtinstien_D Secqtinstien_D 241274 Sep  5 01:23 tomcat-native.tar.gz
-rw-r--r-- 1 Secqtinstien_D Secqtinstien_D   1570 Sep  5 01:23 version.sh
[Secqtinstien_D@MyServer bin]$ ./startup.sh
<! start server using the command './startup.sh'>
Using CATALINA_BASE:   /home/Secqtinstien_D/project/apache-tomcat-5.5.31
[Secqtinstien_D@MyServer bin]$
<! check whether tomcat is running or not>
[Secqtinstien_D@MyServer bin]$ ps -ef|grep tomcat
Secqtinstien_D   11667     1 99 11:23 pts/1    00:00:27 /usr/java/default/bin/java
Secqtinstien_D   11717 11361  0 11:23 pts/1    00:00:00 grep tomcat
[Secqtinstien_D@MyServer bin]$ kill -9 11667
<! stop tomcat>
[Secqtinstien_D@MyServer bin]$
[Secqtinstien_D@MyServer bin]$ ps -ef|grep tomcat
Secqtinstien_D   11719 11361  0 11:24 pts/1    00:00:00 grep tomcat
[Secqtinstien_D@MyServer bin]$
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$ cd ../
[Secqtinstien_D@MyServer project]$ cd apache-tomcat-5.5.31/
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$ cd webapps
<! check whether the war file have been extracted into directories or not>
[Secqtinstien_D@MyServer webapps]$ ls -l
total 86476
drwxrwxr-x  7 Secqtinstien_D Secqtinstien_D     4096 Jan 25 11:23 MyProject
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 46815628 Jan 25 11:11 MyProject.war
drwxrwxr-x  7 Secqtinstien_D Secqtinstien_D     4096 Jan 25 11:23 LoginApp
-rw-rw-r--  1 Secqtinstien_D Secqtinstien_D 41607026 Jan 25 11:22 LoginApp.war
drwxr-xr-x 12 Secqtinstien_D Secqtinstien_D     4096 Jan  5 11:49 tomcat-docs
drwxr-xr-x  3 Secqtinstien_D Secqtinstien_D     4096 Jan  5 11:49 webdav
[Secqtinstien_D@MyServer webapps]$ cd MyProject
<! Go to 'MyProject/WEB-INF/Classes' directory to keep track of the changes in server.properties files>
[Secqtinstien_D@MyServer MyProject]$ ls -l
total 28
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan 25 11:23 MyProject
drwxrwxr-x 2 Secqtinstien_D Secqtinstien_D 4096 Jan 25 11:23 images
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 6632 Jan 25 10:51 index.html
drwxrwxr-x 5 Secqtinstien_D Secqtinstien_D 4096 Jan 25 11:23 WEB-INF
[Secqtinstien_D@MyServer MyProject]$ cd WEB-INF/
[Secqtinstien_D@MyServer WEB-INF]$
[Secqtinstien_D@MyServer WEB-INF]$ cd classes/
[Secqtinstien_D@MyServer classes]$
[Secqtinstien_D@MyServer classes]$ ls -l
total 24
drwxrwxr-x 3 Secqtinstien_D Secqtinstien_D 4096 Jan 25 11:23 com
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D  134 Jan 25 10:51 hsqlserver.properties
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 4898 Jan 25 10:51 log4j.isc.config.xml
-rw-rw-r-- 1 Secqtinstien_D Secqtinstien_D 5825 Jan 25 10:51 server.properties
[Secqtinstien_D@MyServer classes]$  vim server.properties
[Secqtinstien_D@MyServer classes]$
[Secqtinstien_D@MyServer classes]$  vim server.properties
<! to see whether the changes are up to mark, VIM is Text file editor for linux>
[Secqtinstien_D@MyServer classes]$
[Secqtinstien_D@MyServer classes]$ cd ../../../
[Secqtinstien_D@MyServer webapps]$ ls
balancer  MyProject  MyProject.war  jsp-examples  LoginApp  LoginApp.war  servlets-examples  tomcat-docs  webdav
[Secqtinstien_D@MyServer webapps]$
[Secqtinstien_D@MyServer webapps]$ cd LoginApp
<! go to 'LoginApp/WEB-INF/Classes' directory to keep track of the changes in server.properties files>
[Secqtinstien_D@MyServer LoginApp]$
[Secqtinstien_D@MyServer LoginApp]$ ls
css  ds  images  loginapp  LoginApp.html  WEB-INF
[Secqtinstien_D@MyServer LoginApp]$
[Secqtinstien_D@MyServer LoginApp]$ cd WEB-INF/classes/
[Secqtinstien_D@MyServer classes]$
[Secqtinstien_D@MyServer classes]$ ls
com  hsqlserver.properties  log4j.isc.config.xml  server.properties
[Secqtinstien_D@MyServer classes]$
[Secqtinstien_D@MyServer classes]$ vim server.properties
[Secqtinstien_D@MyServer classes]$
[Secqtinstien_D@MyServer classes]$ cd ../../../
[Secqtinstien_D@MyServer webapps]$
[Secqtinstien_D@MyServer webapps]$ cd ../
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$ cd bin/
[Secqtinstien_D@MyServer bin]$ ./startup.sh
<! start the Tomcat server after finishing all tasks>
Using CATALINA_BASE:   /home/Secqtinstien_D/project/apache-tomcat-5.5.31
[Secqtinstien_D@MyServer bin]$ cd ../
[Secqtinstien_D@MyServer apache-tomcat-5.5.31]$ cd webapps/MyProject/WEB-INF/classes/
[Secqtinstien_D@MyServer classes]$
[Secqtinstien_D@MyServer classes]$ vim server.properties
[Secqtinstien_D@MyServer classes]$
<! Now you can check out your logs directory>
[Secqtinstien_D@MyServer ~]$ cd project/apache-tomcat-5.5.31/logs/
<! Go to your logs directory>
<! Run your project in any of the Browser>
[Secqtinstien_D@MyServer logs]$
[Secqtinstien_D@MyServer logs]$ tail -f catalina.out
<! check out whether logs are coming or not, it will show last given 10 logs>
Jan 25, 2011 11:23:41 AM org.apache.coyote.http11.Http11BaseProtocol start
[Secqtinstien_D@MyServer logs]$

<! That's all Your server is up to date>

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead Erls Corporation
India India
I am Dinesh kumar Choudhary by Name, a software Designer and Developer by Work, a Indian Hindu by Religion, Co-Founder of DSFoundation located at http://dsfoundation.wordpress.com by profession, a Loving husband and a Caring Father by Relation.

I have a blog Website at http://dennosecqtinstien.wordpress.com. DSFoundation is the Autonomous body to serve for the management of Local shops located at New Delhi, India. Now a days DSFoundation and its subsidiaries are managed by Erls Corporation, an Another initiative by me and my colleagues, in which i am the another CO-Founder of the Organization. Erls Corporation can be located at http:erlsindia.co.in

Comments and Discussions

 
GeneralReason for my vote of 1 A dump of logfile data isn't a tip o... Pin
fjdiewornncalwe5-Dec-11 8:47
professionalfjdiewornncalwe5-Dec-11 8:47 
GeneralRe: @Marcus Kramer, although these are the log activites which w... Pin
Dinesh Kr. Choudhary6-Dec-11 18:12
professionalDinesh Kr. Choudhary6-Dec-11 18:12 
@Marcus Kramer,
although these are the log activites which were recorded during the process of Deployment but one cannot under stand the process much easier then this one. i have given comments <! > while making a command call on the server, so as to explain what has been done and what is going to be in process for perticular steps. wrote thinking you lives in a scientific envirnoment surrounded by scientists, which keeps track of each and every call.
thanks

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.