File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Help on installing Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Help on installing Tomcat " Watch "Help on installing Tomcat " New topic
Author

Help on installing Tomcat

Mani Jagathesan
Ranch Hand

Joined: Sep 19, 2005
Posts: 33
Hi,

I have j2sdk1.4.2_09 installed. I downloaded "jakarta-tomcat-5.0.28.exe" and installed Tomcat successfully - double clicked .exe and it installed fine.

Following are my environment variables:

JAVA_HOMEc:\j2sdk1.4.2_09
TOMCAT_HOMEc:\Tomcat
CLASSPATHc:\Tomcat\bin
CATALINA_HOMEc:\Tomcat\webapps\ROOT\index.jsp and I tried c:\Tomcat\bin.

I get the following error messages:

a. Type in the url "http://localhost:8080/", error message "The connection was refused when attempting to connect to contact localhost:8080" in the browser.

b. Double clicked "startup.bat" under c:\Tomcat\bin and I got a message "Environment variable CATALINA_HOME not defined correctly".

What should the environment variable CATALINA_HOME be set to? Can someone please help me?

I am installing on Win ME.

Thanks,

Mani

Mat Williams
Ranch Hand

Joined: Jul 20, 2005
Posts: 215
Hi,

CATALINA_HOME c:\Tomcat\webapps\ROOT\index.jsp and I tried c:\Tomcat\bin.


try making CATALINA_HOME = c:\Tomcat

Mat
Mani Jagathesan
Ranch Hand

Joined: Sep 19, 2005
Posts: 33
Mat,

I tried "CATALINA_HOME=c:\Tomcat" and I got a different error message this time.
-------------------------
Out of environment space
Out of environment space
Using CATALINA_BASE:
Using CATALINA_HOME: C:\Tomcat
Using CATALINA_TMPDIR:
Using JAVA_HOME: C:\j2sdk1.4.2_09
Out of environment space
Out of environment space
Out of environment space
Bad command or file name
-------------------------
There is 8.07GB of free space on my pc. Should any settings be changed in any files?

Thanks

Mani
Mat Williams
Ranch Hand

Joined: Jul 20, 2005
Posts: 215
Hi Mani,

I don't know sorry. My guess is its something to do with Windows ME.
Try posting the question on this forum. Its still in the Ranch but is specific to Apache/Tomcat. Hopefully there is someone there, more knowledgeable than me in this regard.

Mat
Mat Williams
Ranch Hand

Joined: Jul 20, 2005
Posts: 215
Hi Mani,

I just found this that explains what to do.

HTH Mat
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Hi Mani,

you neither need CLASSPATH nor CATALINA_HOME. The only thing you need to do is to go open a command line editor (MS DOS shell) and to go to your TOMCAT_HOME\bin directory. Once you are there type in startup (or startup.bat) and hit Enter. All envirionment variables (like CLASSPATH or CATALINA_HOME) are set there for each session.

In addition, make sure that you don't have anything else running on port 8080. You can use free tools like fport (do a search in the www and download it if necessary) therefore.

Regards,
Darya


SCJP, SCJD, SCWCD, SCBCD
Mani Jagathesan
Ranch Hand

Joined: Sep 19, 2005
Posts: 33
Hi Mat & Darya,

I tried both the options:

a. Changed the c:\config.sys file to include the line "shell=c:\command.com /E:4096 /P". However, when I opened this file using notepad it was empty.

I got the same error message.

b. Downloaded fport to find out the ports that were used. When I tried to run fport I got an error message "A required .DLL file, PSAPI.DLL, was not found".

Any further clues/suggestions on what is wrong? Is it a Win ME issue? Should I install Win XP? I want to get started on practising the HFS book.

I have a laptop (given to me by my company) where I have WebSphere installed. Can I practise using WebSphere? But it has IDE which is not suggested to understand the details. Also, should I download Tomcat on that laptop? I don't want to mess around with that laptop!

Thanks very much for your help.

Mani
Mat Williams
Ranch Hand

Joined: Jul 20, 2005
Posts: 215
Hi Mani,

I am fairly sure that it is a Win ME problem but given that the suggestions here didn't help I don't know what to suggest .

Try posting your problems to this JavaRanch forum and see if someone there is able to help.

Mat
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Hi Mani,

do you have Yahoo!Messenger? If yes let's try it together while we talk through the messenger.

Regards,
Darya
Priya Jothi
Ranch Hand

Joined: Jul 13, 2004
Posts: 168
Hi Mani,

Try re-installing the tomcat.Set all the env variables appropriately.let me know if pblm persists.

Regards,
Priya.
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Mani,

I like to add to Priya's last comment that this time try NOT the .exe but the .jar version of Tomcat.

There is no installation at all. Just unzip the tomcat JAR file to whereever you like and create an evironment variable TOMCAT_HOME and set this variable to where you unzipped the tomcat JAR file.

That's it.

Regards,
Darya
Mani Jagathesan
Ranch Hand

Joined: Sep 19, 2005
Posts: 33
Hi Darya & Priya,

No luck with both the options you suggested:

a. Un-installed and re-installed Tomcat, checked the env variables and got the same message.

b. Downloaded Tomcat.zip file, unzipped it to C:\Tomcat\jakarta-tomcat-5.0.28, set the following variables:

JAVA_HOME C:\j2sdk1.4.2_09
TOMCAT_HOME C:\Tomcat\jakarta-tomcat-5.0.28
CLASSPATH C:\Tomcat\jakarta-tomcat-5.0.28\bin
CATALINA_HOME C:\Tomcat\jakarta-tomcat-5.0.28

and I got this error message
----------------------------------------
Out of environment space
Cannot find
This file is needed to run this program
----------------------------------------

Not sure what is wrong. My email addr is ManivannanJ@yahoo.com. I am thinking if I should just start practising with WebSphere using its IDE.

Thanks & regards,

Mani
Mat Williams
Ranch Hand

Joined: Jul 20, 2005
Posts: 215
Mani,

having used websphere and tomcat, I would suggest that you try and resolve the Tomcat issues. Learning with Websphere will force you to learn a whole bunch of stuff that is IBM specific and will possibily make things less clear, that is questions like, the book says this but I have to do something else - which is correct?

Installing Tomcat on Windows XP is very easy and will not interfere with the Websphere installation at all as long as you pick a port that Websphere is not using, for Tomcat, if you did want to try on the laptop. The other thing is that Tomcat uninstalls easily and leaves nothing behind, so it is easy to get rid of if you find you need to.

Mat
Mani Jagathesan
Ranch Hand

Joined: Sep 19, 2005
Posts: 33
Mat,

Thanks for the tip. I will install Tomcat my laptop (Win XP) and let you now, probably tomorrow.

Regards,

Mani
Mani Jagathesan
Ranch Hand

Joined: Sep 19, 2005
Posts: 33
Hi Mat,

I was able to instal Tomcat on Win XP without any problems. Thanks for your help.

Mani
Mat Williams
Ranch Hand

Joined: Jul 20, 2005
Posts: 215
Hi Mani,

Well done. Glad it is all working for you now. There is not much that is as frustrating as, not being able to get on and learn something because you cant get step one working.

Mat
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help on installing Tomcat