• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Configuring Tomcat

 
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
i have installed Tomcat 3.1 version on Windows 98 and couldn't configure it.
I have following questions
1) is Tomcat compatible with Windows 98?
2) what statement should i include in autoexec.bat file for it to work properly?
3) after successful compilation ( which I hope to achieve) how do I see the results?
thanks
 
Ranch Hand
Posts: 439
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes it's compatible
here is how i configured it today
go to start | run and type in sysedit
then find autoexec.bat i added this to it there
you set it up as you have it. good luck.
set TOMCAT_HOME=c:\tomcat
set JAVA_HOME=c:\jdk1.3
set PATH=%PATH%;c:\jdk1.3\bin
set CLASSPATH = .;c:\jdk1.3\bin\;C:\jdk1.3\lib\servlet.jar;c:\myClass;%TOMCAT_HOME%\lib\servlet.jar
 
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To see if tomcat is installed properly open up your browser and type the following url: http://hostname:8080/
After that you will get a webpage with links on it to test sample JSPs and Servlets.
Regards,
Faisal
 
Vishakha Ahuja
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Val,
I did exactly what you've told. Thank God it worked and I could compile the file. But what next ?
When I type startup at DOS, nothing happens......Cursor blinks and DOS window does not accept any input...When I close it, I get message, "windows cannot shut this program automatically.."
What should I do to view the result?
P.S Whatever Faisal has said is giving 404 error.
[This message has been edited by Vishakha Ahuja (edited March 07, 2001).]
 
Vishakha Ahuja
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do I have to make changes to startup.bat in bin directory under tomcat (for win 98)? What is the procedure to view the results in a browser window after compilation?
 
Val Dra
Ranch Hand
Posts: 439
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you see a tomcat start it should start loading and display something in the dos window like loading examples stuff
what i did then is when i went to the browser window i typed in this , it should display an examples page but you first must start tomcat.

------------------
Val SCJP
going for SCJD
 
Vishakha Ahuja
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when i type startup on the DOS screen ( from the bin directory)
i get a message " Bad Command or file name"
I think the startup.dat file is erroneous . How do i fix it?
 
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
check if there is startup.bat file in \tomcat\bin folder.
Good luck
 
Vishakha Ahuja
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I checked that the Tomcat/bin directory has the startup.dat file
please suggest what should i do?
 
Simon Xu
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
go to Roseanne Zhang page http://members.spree.com/education/javachina/share/tomcathowto.htm
She gave detailed steps for installation of Tomcat
Simon
 
Vishakha Ahuja
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I performed the steps as in Roseanne's instructions but still the Tomcat server doesn't start.Nothing seems to work
Is there any other way to start this server?
Regards
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Vishakha Ahuja:
I checked that the Tomcat/bin directory has the startup.dat file
please suggest what should i do?


This needs to be named startup.bat not startup.dat
You should also have a shutdown.bat file which is what you use to stop the Tomcat Server.
------------------
Hope This Helps:)
Carl Trusiak
 
Vishakha Ahuja
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually, it was a typo i do have a startup.bat file in the
/bin directory. also i have a shutdown.bat file.
Any other suggesstions please
Thanks for your help
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Quite a few things actually to re-verify:

  • is tools.jar in your classpath?
  • is java_home and tomcat_home defined properly?
  • is anyother service running on the port on which tomcat is attempting to start?
  • is the memory setting on your DOS window high enough?

  • Also, could you pl. post the complete path to your
    tomcat bin dir.
    The only thing I don't know is compatibility of Tomcat 3.1
    with JDK1.3
    . I would assume it is, but would definetly
    verify this.
    If nothing else works, I would switch to Tomcat 3.2.xxxx.
    regds.
    - satya
 
Vishakha Ahuja
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is my autoexec.bat file(as advised by Val Dra in this forum).
------------------------------------
set TOMCAT_HOME=c:\tomcat
set JAVA_HOME=c:\jdk1.2.1
set PATH=%PATH%;c:\jdk1.2.1\bin
set CLASSPATH =
.;c:\jdk1.2.1\bin\;C:\jdk1.2.1\lib\servlet.jar;c:\myClass;%TOMCAT_HOME%\lib\servlet.jar
-------------------------------------
And this is what my startup.bat file looks like
(unchanged after installation)
-------------------------------------
rem @echo off
rem $Id: startup.bat,v 1.7 2000/03/31 19:40:02 craigmcc Exp $
rem Startup batch file for tomcat server.
rem This batch file written and tested under Windows NT
rem Improvements to this file are welcome
if not "%TOMCAT_HOME%" == "" goto start
SET TOMCAT_HOME=.
if exist %TOMCAT_HOME%\bin\tomcat.bat goto start
SET TOMCAT_HOME=..
if exist %TOMCAT_HOME%\bin\tomcat.bat goto start
SET TOMCAT_HOME=
echo Unable to determine the value of TOMCAT_HOME.
goto eof
:start
call %TOMCAT_HOME%\bin\tomcat start %1 %2 %3 %4 %5 %6 %7 %8 %9
:eof
-------------------------------------------------
I don't know about the services on port? How to determine this.
The complete path is C:\tomcat\bin
I have jdk 1.2.1 installed. is that ok?
Thanks
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


set CLASSPATH =
.;c:\jdk1.2.1\bin\;C:\jdk1.2.1\lib\servlet.jar;c:\myClass;%TOMCAT_HOME%\lib\servlet.jar

After this line in your autoexec.bat, I would add:
set CLASSPATH = %CLASSPATH%;C:\jdk1.2.1\lib\tools.jar
This is a must for tomcat. It has to find this jar
in your classpath.
Let me know what happens. Good Luck.
If tomcat starts, use a(NS) browser and goto the URL http://localhost:8080
and see the examples. Don't worry abt the port I said.
regds.
- satya
 
Simon Xu
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this is my autoexec.bat file. It works.
C:\PROGRA~1\QUICKH~1\QHSTRUP.EXE
SET SOUND=C:\PROGRA~1\CREATIVE\CTSND
SET MIDI=SYNTH:1 MAP:E
SET BLASTER=A220 I5 D1 H5 P330 T6
SET JAVA_HOME=C:\JDK1.3
SET CLASSPATH=.;C:\JDK1.3\LIB\TOOLS.JAR;C:\JAKARTA-TOMCAT\LIB\SERVLET.JAR;C:\JAKARTA-TOMCAT\JASPER.JAR
SET CLASSPATH=.;C:\JAXP1.0.1\JAXP.JAR;C:\JAXP1.0.1\PARSER.JAR
SET TOMCAT_HOME=C:\JAKARTA-TOMCAT
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK1.3\BIN;C:\JAKARTA-TOMCAT\BIN
 
Val Dra
Ranch Hand
Posts: 439
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can add them to your classpath these tools.jar but it's not necessary i think because if you look at the startup.bat it automatically add it by itself these jar file to the classpath when it gets invoked. I don't know what to suggest but do you reboot your machine after you set them up ? you have to reboot.
------------------
Val SCJP
going for SCJD
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

you can add them to your classpath these tools.jar but it's not necessary
Val:
While I cannot point you to the web page, which I read this
from, but somewhere on the Tomcat FAQ I read that sometimes
it would help if we add the tools.jar to the classpath.
I will try and get back on this. Atleast if it works, we can
move forward.
regds.
- satya
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Also, if nothing else works, you could update your JDK.
One such discussion is here.
regds.
- satya
 
Vishakha Ahuja
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried everything, but still the same !
Just a thought, when I downloaded the tomcat, it was from release build. Does this have anything to do with it? There were also other download section namely : binaries, source code etc. So, have I downloaded the wrong file ???
If I re-download, which file should I choose ?
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Personally, I would try this: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/
jakarta-tomcat-3.2.1.zip 12-Dec-2000 14:33 3.0M
This would be my choice of download for MS/win.
regds.
- satya
reply
    Bookmark Topic Watch Topic
  • New Topic