wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Installing Tomcat. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Installing Tomcat." Watch "Installing Tomcat." New topic
Author

Installing Tomcat.

Nabila Mohammad
Ranch Hand

Joined: Nov 05, 2007
Posts: 661
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 ]

The future belongs to those who believe in the beauty of their dreams.Dream BIG!
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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).


[My Blog]
All roads lead to JavaRanch
Nabila Mohammad
Ranch Hand

Joined: Nov 05, 2007
Posts: 661
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

Joined: Nov 05, 2007
Posts: 661
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
Marshal

Joined: Mar 22, 2005
Posts: 41089
    
  44
I also cannot view the Web.xml file.

Surely you can open it in a text editor?


Ping & DNS - my free Android networking tools app
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Nov 05, 2007
Posts: 661
Yeah, but not in the browser.
Nabila Mohammad
Ranch Hand

Joined: Nov 05, 2007
Posts: 661
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....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Installing Tomcat.
 
Similar Threads
unable to use TOMCAT 5.5
please help! classpath not working
What is the classpath for Tomcat 5.5?
CATALINA_HOME directory location question
What is the classpath for Tomcat 5.5?