Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Installing Tomcat.

 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there.

I am kind of getting conused about installing Tomcat.
There were three files in the tomcat.apache website.
1.zip file
2.tar file
3.Windows Service Installed (exe file)

I had downloaded the zip and the exe file .
And then installed the exe file, which created a
"C:/Program Files/Apache Software Foundation/Tomcat 5.5/* files.

However I later realised i did not have the startup.batch file required for starting up in the
C:/Program Files/Apache Software Foundation/Tomcat 5.5/bin directory.

It was present in the zip file which I had unzipped (but never used)
And was present in the apache-tomcat5.527/bin directory.

I am not sure which file is what and what is each used for.

Can some one please clarify the installation process.
[ October 20, 2008: Message edited by: Nabila Mohammad ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to installer either the ZIP or the EXE, not both. If you are using Windows, I recommend you to get the Windows Service Installer. It will set environment variables for you, and you will be able to start/stop the server from the task tray. It won't come with a startup.bat, because you can start the server via Windows Start menu (Monitor Tomcat).
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Christopher,

I did start Tomcat via Start up option
But still getting the error Internet Explorer cannot display page wehn i I type http://localhost:8080/ch1/Serv1
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also cannot view the Web.xml file.

I get the error :

The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.

System does not support the specified encoding. Error processing resource 'file:///C:/Documents and Settings/S...

<?xml version="1.0" encoding="ISO-8851-1" ?>

However, when i change encoding="ISO-8851-1" to encoding="UTF-8"
I can view the xml file.


I get the error "HTTP status - 404. Requested Resource is not available". when I type
http://localhost:8080/ch1/Serv1.


Some one please Help!
[ October 21, 2008: Message edited by: Nabila Mohammad ]
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also cannot view the Web.xml file.

Surely you can open it in a text editor?
 
Paul Clapham
Sheriff
Pie
Posts: 20758
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nabila Mohammad:
<?xml version="1.0" encoding="ISO-8851-1" ?>
My guess is that the encoding should have been "ISO-8859-1".
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, but not in the browser.
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Clapham:
My guess is that the encoding should have been "ISO-8859-1".


Thanks Paul!!

That was a BIG help!

It's working fine - the xml file as well the part of launching the browser.
Phewwwwwwww!!! Seemed like a hardwork!


If that's the encoding used , how come it's mentioned differently in the book..

Guess I'll learn it in the chapters to come....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic