Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

First app

 
Zein Nunna
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic