File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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
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??

Regards
Zein
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!!

Zein
Ben Souther
Sheriff

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: First app