Wednesday, December 15, 2010

Deploy WAR file to Tomcat Server.

To deploy a an application in the .war format to the tomcat server just follow these below simple steps:

1. Check with the apache tomcat installation directory in bin folder. Go to command mode to above bin location and run startup.bat, you should get as in below figure



2. If the server didnt start and gives an error that the JDK is required, then download the JDK from the oracle site and follow below steps to setup the classpath.

3. After the jdk is installed, copy till jdk location of the jdk. Go to advanced tab in the properties of my computer. Click on the Environment Variables, click on new of user variables and enter name as JAVA_HOME and paste the location till jdk copied in variable value.



4. Now edit the system variable path as below to add the JAVA_HOME in the format as below.
;%JAVA_HOME%\bin;



5. Now go ahead with step 1, the server should get started. To verify this go to browser and type http://localhost:8080/ you show see the below screen



6. Just copy the intended .war file to the location /webapps folder. Shutdown the server and start the server again from the command mode. The WAR is extracted by tomcat and you can access the application with its context.
http://localhost:8080/ApplicationContext

Hope this helps

Sunday, September 5, 2010

Sachin a integrity in himself.

Sachin Tendulkar, the greatest cricketer the world ever has. Its a proud feeling for India, that it has so great people belonging and playing for it. Sachin is a ideal person not only for a cricketer but for each and everyone.

He has been honoured as a captain by Indian Navy.There is no relation between cricket and Navy, but its the matter of humanity that the person has served to. Sachin has set examples in and every corner of his life. He is a great human being before a great cricketer. Sachin has been playing for Indian cricket since 1990. Since then he has been growing in the field of cricket and now being a perfectionist, he still says "I am still learning in it". There always things to learn no matter how old you are in that field.

Sachin always advices this to his juniors and every cricketer in the world. Which also works out in every field and aspect of life. Seeing these young generation cricketers, its a shame for those raking in the name of cricket. Getting fame is not easy, loosing the hard earned fame is not even a matter of days. This in the context of cricket players getting indulged in the fixing rows.

The young generation cricketers always think that, this is the time to earn, as they get many endorsements and money from them. And they eventually loose concentration for the root of thier fame. This has never happened to Sachin. He too has seen many ups and downs in his career of cricket. But he has maintained his integrity towards the cricket in his career. So have other greats in this field Rahul Dravid, Saurav Ganguly, Anil Kumble and many to list. Cricketers should always concentrate on thier primary responsibility i.e cricket and giving best to the game. Money comes to them forever when they maintain integrity of game and not spoiling. May be once they might get huge amount for fixing, but when caught nothing will be left with them.
All the good things done vanish and get wiped of too. Sachin has set a great example for each and every person to follow.

Saturday, August 7, 2010

Mahabaleshwar: Ooty of Maharashtra

Mahabaleshwar, a heaven for the nature lovers and i name it as the ooty of west india. Mahabaleshwar is situated just 250 KM away from Mumbai, commercial metro of India. Its a weekend outing for people in Mumbai, Pune, Satara and surrounding places.

Mahabaleshwar also has rich history of having river Krishna's starting point, and is also related to the times of Mahabharata. This hill station will sure grab your hearts in Monsoon. People come here to chill, get away free from work and near to the nature. Me along with my team had been to this place last week. Here goes the story.

As it was a planned trip of saturday and a sunday, we had to leave Mumbai by 6 AM on a saturday morning(think of it a weekend holiday morning which is so hard to do, ask a software engineer about it) We managed to leave at around 7 AM, it was raining hell that morning. Most probably mumbai rain is all pre planned all the week there will be no rain, as the weekend approaches, it lashes like anything(gonna make a research out of it). We straight way caught the express way at 120kmph. We had taken two cars (i10 and a santro), We first had a good breakfast on the foodcourt and filled the fuel tank. Our next stop was past Lonavla. Which itself was so scenic that we were almost to drop plans of Mahabaleshwar and spend weekend there, coming back to reality we didnt do that. But literally Khandala and Lonavala were eye's heaven to watch for. Those clouds touching the mountains and small milky falls here and there.

We again went ahead and passed by Pune by NH-4, didnt dare to enter Pune. Then continuing on NH-4, 80 km from Pune there is a place called Wai where we had to divert and enter the ghats, the western ghats. There for our badluck, we had a small accident our i10 with another i10. It was another tragedy, we sorted it out and went on. We entered the ghat leading to Mahabaleshwar, it was a awesome ride to enjoy. It was so greenery all around, that we could not resist to taste the purity of nature. We finally reached Mahabaleshwar(Ultimate destiny)at 2 PM. We were all damn hungry, got fresh. There was 24/7 rain support, meaning it was raining all the time in that place.

Here comes the speciality of Mahabaleshwar, it fresh fruits like strawberries and blueberries and many more. Mapro a garden where you get all kinds of fresh fruit crushes and jellies. You got to taste one when you visit. We had Italian pizza. We carried on to visit all the scenic points and almost touched the clouds. We next went to market for shopping. We spent the night in the Hotel Tree Top, good hotel.

Next day morning it was all agian the journey back to mumbai.

BMTC rides on money!!

Bangalore, the Silicon valley of India. People come here to make magic out of their lives. This IT city is most developing city in the southern India. Any new IT company plans to put up a office in India, thinks of Bangalore to open their offices.

So its obvious that people use the public transport for local transport. These days things have become so expensive that its not a easy thing to make life in Bangalore and for that matter in any Indian metro. We know that petrol and diesel costs are shooting up the sky. Over that even the government is in the race ahead to make profits out of public.

First of all the BMTC bus fares are so high, Government may be thinking that only IT people are travelling in the BMTC buses and they can loot them. But it has forgotten about the poor people who only use the local transport. They need to shell out about 35 bucks a day for transport. Which may happen to be their cost of daily bread. As far as i have heard and seen, its Bangalore only which has higher bus fares in the metro transport. I know about mumbai(4 times bigger in volume than Bangalore) operates BEST buses which in no compare with BMTC numbers. People travel here for the whole day with a daily pass of mere Rs. 20, which is almost half the fare compared to Bangalore. I believe there might be fuel difference in both the cities, but its not worth charging double. Mumbai people spend their half a day in buses for only 20 rupees and they travel from one end to other about nearly 50-60 km(one way), which is double than Bangalore commuting distance.

Also VAJRA transport is also costly compared to the Mumbai AC bus transport. Govt of Karnataka should also keep in mind about the poor people who wholly depend on these buses for transport and should not loot them. Its a matter to look back at for Minister of transport R Ashok. Bangalore has become a place only for rich people who migrate from other states to make their lives better, without even caring about own state people.

Here is the list of the changes rates. We are not responsible if your under cardiac arrest after you read, read it at your own risk:

* Black Board: Existing Rs 450, Revised Rs 500
* Red Board, Pushpak, Janapriya Vahini: Existing Rs 600, Revised Rs 660
* Black Board (Senior Citizens): Existing Rs 400, Revised Rs 450
* Red Board, Pushpak, Janapriya Vahini, Suvarna (Senior Citizen): Existing Rs 540, Revised Rs 590
* Vajra Volvo Gold Pass: Existing Rs 1,250, Revised Rs 1350
* Vajra Gold Pass without ID: Existing Rs 1300, Revised Rs 1,400
* Vayu Vajra Volvo (BIAL) Gold Pass: Existing Rs 2550, Revised Rs 2,650
* Bulk purchase of 50 plus Vayu Vajra Gold Pass: Existing Rs 2,400, Revised Rs 2,500
* Bulk purchase of 100 plus Vayu Vajra Gold Pass: Existing Rs 2,300, Revised Rs 2,400
Dual pricing of day pass BMTC has also announced introduction of a system of dual pricing of day travel pass, with the aim of eliminating unauthorised circulation of day pass. The rate/cost of this pass has also increased from the existing Rs 32 to Rs 35 (with BMTC ID) and Rs 40 (without BMTC ID).

Cost of Vajra Gold Day pass has also been increased from existing Rs 80 to revised Rs 85. The new rates will be in effect from 27 June, 2010.
BMTC has waived the condition of possession of ID card for availing day pass for Rs 35 up to 15 July, to enable commuters to obtain these ID cards, that are priced at Rs 25 with a validity of one year from month of issue. However, commuters who purchase a day pass beyond 15 July will have to pay Rs 40.

I myself went dizzy writing these detals. If your reading till this end your a braveheart :)

Sunday, July 11, 2010

Getting Started with J2ME

Hello,

J2ME means Java 2 Mobile Edition, this is extensively used in the mobile phones and other mobile gadgets. So all the applications that are supported by java in the mobile devices are built by the J2ME.

People having the special interest in the development of such applications and making a career out of it can go ahead and do it with the help of below steps:

Setting up of the environment for the development of the J2ME are below:

1. Download the latest Java SDK.
2. Download the Java Wireless tool kit
3. Download the Eclipes IDE.
4. Download the EclipseME plugin for the Eclipse IDE.

The details of how to install and where to install from the above softwares is given in http://www.javamidlet.com/2008/01/18/how-to-setup-eclipse-for-mobile-java-development.html

After setting up the environment successfully, new comers to this can have thier basics done for this at http://www.koderko.dk/J2METutorial/midlet.asp

Saturday, July 10, 2010

TATA DOCOMO-Offers

Hello,

TATA DOCOMO has many offers every day. But people many a times are not aware of it and loose them. It has many offers by which you can save money. They provide daily and also weekly offers.

The offers are innumerable. Make correct use of them as in for the people who are in need of STD calls, they a can opt for STD daily pack for Rs 2, so they can make calls 3p/4sec, this offer lasts for the end of the same day and there are such numerous offers. To activate this offer dial *141# in you cell and follow instructions. The other offer is pay Rs 2 for a day and enjoy local/national sms at 1paise. I know they are competatively more attactive offers from other networks, but i hear lots of complaints about them too. So i am a satisfied customer of Tata Docomo.

To talk about the pros of the TATA DOCOMO, the internet connection that i use and rely upon. I am actually not a heavy user of the internet and i need only to check mails and chat with friends, so that need is sufficed by Tata Docomo GPRS pack which i use,(very economical). I see people taking the internet connection just for the sake of checking mails and some internet stuff,for which they pay hefty amounts monthly. The pack which i use is Rs 95 which provides me 6GB downloads free. So what ever i do is inside this limit. And the speed not the lightning speed. Accordingly its around 20-25kbps download speed.

So i urge people not to waste money in the internet connection for minimal use, which you people can have it from your own cell phone (GPRS enabled).

Saturday, June 19, 2010

A Simple information for Linux duds

Friends many of the projects use the linux or the unix servers for many of the processes or any of the works. So i hope there will be many of the ksh files wich in turn call any of the coded java or any other language codes to process.

So if there are many of the ksh files to be called at the same time or sequentially then you might be grouping all of them in a crontab file.

So this crontab file will be the most important file for starting any of the processes automatically at the scheduled time as its been scheduled.

It so happened that one of my friend/colleague who works daily on these crontab file had to edit the crontab file. So the obvious command or the syntax to edit the crontab would be:

crontab -e

But unfortunately he wrote:

crontab -r

which was a typo and it unfortunately is the command to delete the crontab file.
There was a havoc created after the file was deleted and whose backup was also not maintained. This lead to a lot of work again. But fortunately as the system admin maintains the backup of the server, we had to wait till the SA arrived. But fortunately the system was not affected due to this.

But friends there is no way to recover a crontab file if you delete it. Please do keep a backup of the file in a simple notepad.

Sunday, March 7, 2010

IPL 3- Back to the festive season called CRICKET

Its time to celebrate a festival called as CRICKET again. This time its IPL 3, many changes when compared to the last season. People celebrate this whole month as a festival in a way.

The things which got changed this time are the Kings XI Punjab is being led by Kumara Sangakarra instead of Yuvi. I think Preity has lost hopes on Yuvi. The Delhi Daredevils team is led by Goutam Gambhir, who is presently the Mr. Reliable of Indian team.Virender Sehwag let his position to Goutam.

Other than these it seems to be all the same. And most of the teams being led by foreigners. Deccan Chargers are charged up again and hopeful for winning even this edition of IPL. Royal Challengers being led by Anil Kumble are also a good team with young and experienced guns. They mostly will be reliable on Ross Taylor, Manish Pandey and others. The No. 1 captain, Mr. Dhoni leads CSK(Chennai Super Kings). They must be showing thier caliber this time.

Shah Rukh Khan has kept up the hopes on Saurav Ganguly and KKR(Kolkata Knight Riders). Shane Warne leads from the front for the Shilpa Shetty owned team Rajasthan Royals. The key players for this team will be Yusuf, Graeme Smith and others.

Coming to the Mumbai Indians, its led by worlds most successful cricketer Sachin Tendulkar, who made Indians proud of by hitting a double century in the limited overs cricket. This team has Bhajji,Zaheer K, Dwayne Bravo.

People who are busy at office can have the matches live in thier computers in front of them without missing any action as these matches will be live on Youtube. There had been many issues coming up as the Pune blasts, But Lalit Modi comments come what may, India is going to host the IPL 3 and no where else. As it was a big hole in the pockets last time byh organising the IPL 2 in South Africa.

Any ways let hope this season be good to all and every one enjoy the matches.

Sunday, January 31, 2010

TATA DOCOMO- A Telcom Revolution

Hi Friends,

So this time i wanna talk some thing about the telecom network operator, TATA DOCOMO. This is a Joint Venture Between two telecom giants from two different countries. Tata Teleservices from India and DOCOMO from Japan.

It kind of created a revolution by introducing the per second billing plan. Which is now being followed by all other telecom operators. Be it Airtel,Vodafone or any other...they followed this only after public started to show its interest in per second billing plan. Because, a mobile has become so ubiquitous(common) that people don't want to lose much money on talking for less time.

These days the talks has been like A: "How much time still?" and B: "Give me 5 mins:. So this doesnt take more than 5 seconds. And people dont want to loose a rupee for such small conversation. Now a days all have followed this plan, but TATA Docomo was the initiator for this.

But addition to this, TATA Docomo has given one more uniue and best feature among competitors. That is internet. As mobiles are so common, so has internet become that common. And all networks provide internet as different charges.

The unique thing for TATA Docomo is, it has provided many plans for internet users through mobile. It has got various plans, which i think the other competitors are no where near to. The plans range from as cheap as Rs 15 to 95.

The procedure to connect a GPRS enabled mobile to internet from a Laptop or a Computer is, first install the PC Suite or particular mobile software. Then either connect the mobile to the laptop by bluetooth or cable. Enter the following details.

Access Point: TATA.DOCOMO.INTERNET
Username:
Password:


Username and password are left blank.
And a phone number is to be given as *99#

The plan details are for Rs 15,you get 100MB free usage and 3 days validity, Rs 33 has 15 days validity and 1GB free usage, Rs 48 has 1 month validity and 2GB free usage and finally Rs 95 has got 45 days validity and 4GB free usage from night 11PM to morning 11AM. And the day usage is also there but its comparitively less compared to the night usage. As people now are only free at night to use internet, they find this more useful spending less money on internet. Which other people spend thousands of bucks just browsing.

So people use this facility and the browsing speed is good enough to browse and download songs and all around 15-20 kbps.