Pre-requisites: You should have Apache
Tomcat installed on your machine, downloadable from http://tomcat.apache.org/download-60.cgi
and you should have eclipse 3.6 on your
machine
Configure the webserver to be used within
eclipse as follows:
1.
Unzip the download into your
local directory
2.
Tell Eclipse about Tomcat
First, start Eclipse and go
to the Workbench as shown in the previous section. Then, click on Servers tab
at bottom. R-click, New, Server, Apache, Tomcat v6.0, navigate to folder, OK.
You should now see "Tomcat v6.0 Server at localhost" listed under the
Servers tab at the bottom.
3. Run Tomcat.
Click on Servers tab at
bottom. R-click on Tomcat v6.0, choose "Start". Open
http://localhost/ in a browser: you should see an empty page showing a blank
directory listing (but not a 404 error). Eclipse incorrectly fails to
copy the welcome pages when it sets up Tomcat, so if you want the friendlier
welcome page, go to your-eclipse-workspace\.metadata and search for "ROOT".
Copy all of the files from C:\apache-tomcat-6.0.28\webapps\ROOT into the ROOT
folder inside your-eclipse-workspace\.metadata\...\ROOT.
If you fail to copy the ROOT files
as mentioned above, http://localhost/ will result in an empty directory listing.
It is often mistaken for an error page, but if you look
closely you will see that it says "directory listing for /" and is
not an error at all. However, if you copy the ROOT files, http://localhost/
will give the nice friendly "Welcome to Tomcat" page.
4. Make empty project.
a.
File, New, Project, Web,
Dynamic Web Project.
b.
Give it a name (e.g.,
"SampleWebServer").
c.
Accept all other defaults.
5. Make a Welcome.html and place
it on the ‘WebContent’ folder of your new Dynamic Web App.
6. Now if you type http://localhost:8080/SampleWebServer/Welcome.html
in your browser, you should be able to view the page.
Hi Sai,
ReplyDeleteI am new to android and want to develop an app with augmented reality for navigation. Can u help me with that.
please tell me where i can download this book about beginner's android developer
ReplyDeleteI just read through the entire article of yours and it was quite good. This is a great article thanks for sharing this informative information. I will visit your blog regularly for some latest post.
ReplyDeleteI am very much impressed from your post.It has amazing information.I learned lot of new things which explores my knowledge in various developments.So i must appreciate your efforts on posting these information.
ReplyDeleteHi Geetha we are doing well.
ReplyDeleteplease Can you post the article on c2dm(Cloud To Device Messaging ).
Geetha Great Nice. Its very User Friendly.....
ReplyDeleteHi Sai,
ReplyDeleteNice blog! Is there an email address I can contact you in private?
Thanks for this information this was really helpful.
ReplyDeleteBest Android Apps
Hi mam,
ReplyDeletePls send me customized list view example. List view contains senders and receivers message. Sender has different layout and receiver has different.
I have created listview but when scroll down or up there is problem.
Hi geeth, will you please send me any tutorial that how to create a custom launcher theme for android.
ReplyDeletei want do setalarm concept in android based on the setting alarm getting the value from edittext and that edit text value display the notification based on the setting alarm time.... am new to android plz help me...
ReplyDeleteFirst, start Eclipse and go to the Workbench as shown in the "previous section". Not sure which is the previous section.
ReplyDeleteI found a very similar article that is more comprehensive than this, and gives detailed information. Check it ...
http://www.coreservlets.com/Apache-Tomcat-Tutorial/tomcat-7-with-eclipse.html
Hello Ma'am,
ReplyDeleteI want to send a url from my webview to a Website where it will be converted into Pdf format.The thing is that i'am not getting how to save that pdf in my SD card
can any one plz tell me how to set a static wallpaer in android......
ReplyDeletei m requesting to the admin ....
plz tell me the solution ...its much needed plz plz plz
I've been using Apache Tomcat for 2 years now, and I got to say that I am pleased with it.
ReplyDeleteHello Geetha,
ReplyDeleteI have a query regarding animation in android.
Is it possible to scale(zoom in and zoom out) multiple bitmaps in single activity??
hello miss
ReplyDeleteyour blog have information of Local WebServer – Apache Tomcat
It is very good information
hello miss geeta
ReplyDeletethis blog is very good
Hi there, just wanted to say this webserver works very well for us.
ReplyDelete