Monday, December 24, 2012

Application Deployment

Application Deployment


Introduction

Application deployment is the deployment of the new war file on the server. New War file contains the new changes that are made into the site by the developer.

Procedures

1. Get the file from the person through mail or the sametime.

2. FTP from desktop to the server(xxx615.lvs.owner.com)

i) Change the path to place where file is stored

C:

( this will change the directory to c directory from any other directory)

ii) ftp xxx615.lvs.owner.com(server name)

Server will ask for the username and password, enter the password specific to that server.

iii) Now we have to end the file from our desktop to the UNIX server. File transfer can take place in 2 ways- ASCII or BIN.

For unix  windows – use ASCII (ASC)

For windows  unix – use Binary (BIN)

We are using BIN so next command is

BIN

iv) Put application1.war



This will put the file to server in your user directory.

v) Now check in the server if file has been FULLY transferred or not.

Ls-lt

3. Now file will have rights of staff ownership. Its ownership should be changed to be application1

sudo chown application1:www application1.war

4. Presently we are working in our directory(sn2381123), now, Change to application1 user ID to be able to use the ownership

sudo su application1

5. Go the bin tomcat folder of application1 application

cd /export/apps/tomcat/application1-dev/tomcat-5.0.28/bin


6. Stop the tomcat for application1 application

./stop-tomcat.sh
7. xxx615:root:/export/apps/tomcat/application1-dev/tomcat-5.0.28/bin>ps -ef
grep java

8. copy the result in the notepad it will look something like this
Epreseg is not visible that means, it is not working.
9. Come to webapps folder

cd /export/apps/tomcat/application1-dev/tomcat-5.0.28/webapps

cp /export/apps/tomcat/application1-dev/tomcat-5.0.28/webapps/application1/application1.war . (Current directory)

10. copy new application1.war to /export/apps/tomcat/application1-dev/tomcat-5.0.28/webapps/application1

cd /export/apps/tomcat/application1-dev/tomcat-5.0.28/webapps/application1

cp /home/devuser/EP_Test_June_02/application1.war .

11. then under application1 folder delete everything , except “monitor” folder and application1.war

rm -rf *.jsp

Command to remove all the jsp files, then remove all the remaining folders

rm -rf META-INF WEB-INF env image application1.war script style vssver2.scc

12. Deploy the war file under application1 folder using following command

/usr/java6_64/bin/jar -xvf application1.war

13. Start the Application

cd /export/apps/tomcat/application1-dev/tomcat-5.0.28/bin

./start-tomcat.sh
14. xxx615:root:/export/apps/tomcat/application1-dev/tomcat-5.0.28/bin>ps -ef
grep java
this will show all the  "java"process running (if any)

15. logout from application1 user

exit

16. check the log file if the server is started or not

cd /export/apps/tomcat/application1-dev/tomcat-5.0.28/logs

Ls –lrt
17. The file in the end is “catalina.out”

Tail –f catalina.out

Open this file to see if the server is started or not

18. Also check the application site to check if it is still working.

Friday, October 19, 2012

Making your existing project to breath in Eclipse IDE


Always enter the Parent directory of the project as work space while opening the Eclipse.

To open the project:
Goto File à import… à Existing Project into Workspace à “c:\Projectpath\” à Finish

Open the Java perspective

Window  à Open perspective  àJAVA

Left side shows the Workspace

                To compile:
                                Open Ant (Window à Show View à Ant)
                                Add build.xml(ANT's .xml file for the build)to the list of build files
                                Run target “default” (or any target that seems to build Project)


To compile and debug in eclipse:
Make sure that Project à “Build Automatically” is checked, (project will compile when it is opened)
                Debug Configuration à Debug… à à New à
Type into project: “tips-pm”
Type into “Main class” common.Main
Click on Arguments Tab
type in “DEBUG RUNDEV" (or any required default argument in the your project) username  password  where “username …” are optional
                                                Click on Apply à Run
                                Next time you can just press F11

Saturday, August 18, 2012

To be.

I am working now. With a mnc. If i look back.. This is wat i wanted to be whole my life.. To work a reputed job( Yes if i leave my dreams of being a HERO who saves a world :-P ;-) ) And this was definatly wat i despratly wanted since last year in College... Working with a mnc, a job of reput. But today when i have got it... I still dont feel complete. No, its NOT "always more" thing biting me. I took time to discover wat i want. And even today i dont know wat exactly it is.but atleast i got something wats it gonna be like. It will make me proud of me.i still want to save the world .. Which world is still to go... I still wana be hero like i wanted to be when i was small.there is a whole world out there waiting for me to take over. Exact thing?? Still on quest.

Friday, August 17, 2012

No waiting now

Sometime travelling in metro tend to get a real eye opener. Waiting for metro to come... Waiting for metro to reach yamuna bank... Waiting to reach rajiv chawk... Waiting for tagore garden... Waiting for almost evrything in life to come n set things right. No more now... And for the time being...i will learn driving soon.

Friday, August 10, 2012

Happy Krishan janamashtami !!

                    
                 

"""""""""
              
                        
              
              


 Wo Mor MukutWo Nad Lala Wo Murli Manohar Wo Bansi wala Wo Makhan chorWo Braj Lala,Janam ashtami ki hardik badhayi.
Happy Janmastami 
JAI SHRI KRISHNA 


Friday, August 3, 2012

New Me !!

Hey its me again..
Learnt alot after last time i blogged... Saw a bad time and may be still going through it. Just waiting for time when i say all is well , when it ends well.
But yes, i have learnt somethings from this hard time.
1. Family is always first.
2. I am human, and i am born to LIVE, i will live to fullest with firm decisions n no regrates.
3. I will be Humane. :-) FORE SURE
4. I will meditate n find my true self.
5. I will grow in terms of knowlegde and explore new things also. Will study also.

Writing from android. :-) cya.

Friday, January 27, 2012

Felt like crying for a second ...

Just read this news...
http://ibnlive.in.com/news/abandoned-child-battles-for-life-culprits-at-large/224557-3.html [1]
my goosebumps aren't going away...
can a person be that inhumane?
Culprits should not left open in the society and should be treated mentally...
i really want to know what we as a citizen of delhi can do in these cases?


[1] link courtesy IBM live