File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes First app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "First app" Watch "First app" New topic

First app

Zein Nunna
Ranch Hand

Joined: Mar 31, 2005
Posts: 245
Hi guys,

I've downloaded and installed, tomcat 5.x on my laptop.

Then I launched Tomcat, and clicked start etc.. so its all running - no problems!

My problem is I've just typed in http://localhost:8080/ - and nothing comes up (standard error page) i.e. blank IE page "this page cannot be displayed...., then at the bottom its says server or DNS error", Why?? shouldnt I be getting a page saying something like "welcome to tomcat etc..).

I havent started any devlopment work at all yet.

I've read the documentation and other posts on this forum, cant seem to find a fix

I tried putting a index.html in the webapps folder and then modifying the web.xml to index.html, no luck there either - any ideas what I need to look at??

Thanks in advance
Zein Nunna
Ranch Hand

Joined: Mar 31, 2005
Posts: 245
Hi guys,

I think I'm getting to the bottom of this.

I haven't set the JAVA_HOME varible yet, I googled and it came back with modifying a file called autoexec.bat - I searched for this file on my C:\ drive and its not there? I have a JRE on the C:\ drive.

Is this it??

Zein Nunna
Ranch Hand

Joined: Mar 31, 2005
Posts: 245
Ok guys got to the bottom of this

i)Install the latest verision of J2SE...
ii)Install Tomcat, it will ask which JRE you want to you, choose the latest version
iii)Bob's your uncle!!

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Thanks for reporting back.

As you've already seen.
The ".exe" installer sets up the environment for Tomcat in the Windows registry.

If you install by unzipping and starting with the batch files, you will need to manually set up the JAVA_HOME environment variable. This still be done with an autoexec.bat file but is usually done from "My Computer" -> System Properties -> General (tab) -> Advanced -> environment.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
It is sorta covered in the JavaRanch Style Guide.
subject: First app
Similar Threads
setting index.html to my context root
Tomcat Welcome ROOT web app problems - only some content displaying
Question regarding Tomcat
tomcat is'nt working
Dynamic content problem with Tomcat 6.x