wood burning stoves 2.0*
The moose likes Tomcat and the fly likes PLEASE ANSWER Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "PLEASE ANSWER" Watch "PLEASE ANSWER" New topic
Author

PLEASE ANSWER

Dhanashree Mankar
Ranch Hand

Joined: Aug 25, 2003
Posts: 123
hi
I am having windows98 and tomcat5
Out of the followinf tomcat5 version which one should be downloaded?
5.0.14 zip PGP MD5
5.0.14 tar.gz PGP MD5 ==>I downloaded this
5.0.14 exe PGP MD5
5.0.14 Deployer zip PGP MD5
5.0.14 Deployer tar.gz PGP MD5
5.0.14 Embed zip PGP MD5
5.0.14 Embed tar.gz PGP MD5

This is classpath setting:
set CATALINA_HOME=c:\tomcat
set JAVA_HOME=C:\jdk1.3
set PATH=c:\jdk1.3\bin;
set CLASSPATH=.;c:\jdk1.3\jre\lib\rt.jar;
set CLASSPATH=.;C:\tomcat\common\lib\servlet.jar;%CLASSPATH%
But when i started startup.bat It gave some syntax error and new window opened and immediatey disappeared. What does this mean?
or should i download tomcat 4 now?
please help me
Malhar Barai
Author
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
Hi..
For running tomcat on win32 machine, I think you need to use Apache too.
Check out the documentation, this might have been mentioned there too.
hth
MB


Malhar Barai
SOA & Java Book
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by Dhanashree Mankar:
hi
I am having windows98 and tomcat5
Out of the followinf tomcat5 version which one should be downloaded?
5.0.14 zip PGP MD5
5.0.14 tar.gz PGP MD5 ==>I downloaded this
5.0.14 exe PGP MD5
5.0.14 Deployer zip PGP MD5
5.0.14 Deployer tar.gz PGP MD5
5.0.14 Embed zip PGP MD5
5.0.14 Embed tar.gz PGP MD5

This is classpath setting:
set CATALINA_HOME=c:\tomcat
set JAVA_HOME=C:\jdk1.3
set PATH=c:\jdk1.3\bin;
set CLASSPATH=.;c:\jdk1.3\jre\lib\rt.jar;
set CLASSPATH=.;C:\tomcat\common\lib\servlet.jar;%CLASSPATH%
But when i started startup.bat It gave some syntax error and new window opened and immediatey disappeared. What does this mean?
or should i download tomcat 4 now?
please help me

Go to C:\tomcat\bin directory using DOS prompt or command prompt
type startup
then if everything okay! you will see a new dos window with messages like"starting apache-tomcat etc.," with no errors.
If not , then you will some error messages that will appear in the same dos screen where you types 'startup'
Check this error message and see whether you can solve the problem, if not post the error message to us and we will try to help you.


Spritle Software Blogs
Dhanashree Mankar
Ranch Hand

Joined: Aug 25, 2003
Posts: 123
Now i have downded tomcat4. But getting same errors in DOS.
syntax error
Using CATLINA_BASE: C:\tomcat
Using CATLINA_HOME: C:\tomcat
Using CATLINA_TMPDIR: Cl\tomcat\temp
Using JAVA_HOME: C:\jdk1.3
and then other window has syarted and immediatly disappered
Dhanashree Mankar
Ranch Hand

Joined: Aug 25, 2003
Posts: 123
Now i put my servlet.jar file in jdk1.3
so now my path and classpath is
set CATALINA_HOME=c:\tomcat
set JAVA_HOME=c:\jdk1.3
set PATH=c:\jdk1.3\bin;
set CLASSPATH=.;c:\jdk1.3\jre\lib\rt.jar;
set CLASSPATH=.;c:\jdk1.3\jre\lib\servlet.jar;%CLASSPATH%
still not working
plz help
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12809
    
    5
A known problem with Windows 98 is that it does not provide enough environment memory space to handle the complex environment manipulation that the Tomcat startup bat files perform. You can increase this memory from a dialog reached by right-click in the upper left corner of a MSDOS command window. Unfortunately I no longer have a Win98 machine running so I can't remember the setting. This is such a common problem if you do a Google search for "Win 98 Tomcat Problem" you will find lots of help.
Bill
Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
Right, you can open up a MS-DOS window -> click the Properties icon -> click the Memory Tab -> set the Initial Environment to 4096(that's what I have). I know I had to do this when I ran tests using the j2ee server, so give it a try.
Craig
Dhanashree Mankar
Ranch Hand

Joined: Aug 25, 2003
Posts: 123
Originally posted by cj jack:
Right, you can open up a MS-DOS window -> click the Properties icon -> click the Memory Tab -> set the Initial Environment to 4096(that's what I have). I know I had to do this when I ran tests using the j2ee server, so give it a try.
Craig

-------------------------------------------------------------------------
I have already made this
Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
Well, we have just about tried everything, but don't worry we are going to get you up and running one way or another.
I have noticed that you redefined your PATH environment variable and also you have assigned this folder to your CLASSPATH variable ;c:\jdk1.3\jre\lib\rt.jar I would get rid of it, I don't think you need it in your CLASSPATH variable.
Also the reason why I say you redefined your PATH variable, is because you have removed any of your windows and windows/command folder. I will show you how my environment was setup, and this environment has been setup on a win95 and win98 without any problems:

After modifing your autoexec.bat, reboot your machine. When It comes back up, I like to do a couple of tests to make sure the environment variables are set correctly, because I am not the best speller. So open up a MS-DOS window and type
>echo %java_home%
and then
>cd %java_home%
and then
>echo %catalina_home%
and then
>cd %catalina_home%
>echo %path%
Hopfully this will answer some questions for you.
Craig
Dhanashree Mankar
Ranch Hand

Joined: Aug 25, 2003
Posts: 123
I have noticed that you redefined your PATH environment variable and also you have assigned this folder to your CLASSPATH variable [b];c:\jdk1.3\jre\lib\rt.jar I would get rid of it, I don't think you need it in your CLASSPATH variable. [/b]
-------------------------------------------------------------------------
set PATH=c:\jdk1.3\bin;
set CLASSPATH=.;c:\jdk1.3\jre\lib\rt.jar;
These settings i made at the time of jdk1.3.So i don't understand how i redfining PATH variable.
Also the reason why I say you redefined your PATH variable, is because you have removed any of your windows and windows/command folder. I will show you how my environment was setup, and this environment has been setup on a win95 and win98 without any problems:

Though i not explicitly given windows and windows/command folders but when i give set command on dos prompt it automatically displays these commands in PATH variable. So is there any need to write them explicitly in autoexec.bat file?
[B]

[/B]
Is there any need to define J2EE_HOME and ANT_HOME in autoexec.bat file?wHAT IS THE SIGNIFICANCE OF THESE FILES?
plz explain
Dhanashree Mankar
Ranch Hand

Joined: Aug 25, 2003
Posts: 123
Now my autoexec.bat is
set CATALINA_HOME=c:\tomcat
set JAVA_HOME=c:\jdk1.3
set PATH=c:\jdk1.3\bin;c:\tomcat\bin;
set CLASSPATH=.;c:\jdk1.3\jre\lib\rt.jar;
set CLASSPATH=.;c:\tomcat\common\lib\servlet.jar;%CLASSPATH%
i performed all ur tests and they all giving fine results
but still no change in startup.bat
plz help
Dhanashree Mankar
Ranch Hand

Joined: Aug 25, 2003
Posts: 123
Following error i am getting when i start startup.bat file
syntax error
Using CATLINA_BASE: C:\tomcat
Using CATLINA_HOME: C:\tomcat
Using CATLINA_TMPDIR: Cl\tomcat\temp
Using JAVA_HOME: C:\jdk1.3
and then other window has starts with some contents and immediatly disappers.
I don't understand what is the syntax error?
plz help
Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
The ANT_HOME and the J2EE_HOME has nothing to do with Tomcat starting up. I just use the j2ee.jar so I can compile other problems that use classes other than the JSP/SERVLET packages.
I know this may sound like a stupid question, but did you change/edit the startup.bat for any reason? I know you probably haven't but I don't know whatelse to tell you. A syntax error sounds to me like the startup.bat may have a coding error.
Take a look at and why don't try and put echos(displays) throughout the startup.bat script and see if you can narrow down the syntax message. I know it is a stretch but I am out of ideas.
Craig.
Dhanashree Mankar
Ranch Hand

Joined: Aug 25, 2003
Posts: 123
set CATALINA_OPTS=%CATALINA_OPTS% -Dsun.io.useCanonCaches=false
Is there anything wrong in this line?
cz did echo before and after this line so i got:
echo statement
syntax error
echo statement
Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
Yes, there is something wrong with that particular statement, MS-DOS does not allow 2 "=" signs as part of the same set command(or something like that). I had this problem when I tried to start up the j2ee server of win98, but it works fine for I believe winnt or win2000 OS.
So reset the statup.bat back to original and give it a try.
Craig.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

This is a Tomcat config question... 3 guess where it's getting moved to.

p.s. You got lucky this time, but subjects like "PLEASE ANSWER" usually get ignored.

oh fine.. you'll find this post in the Apache/Tomcat forum
Dhanashree Mankar
Ranch Hand

Joined: Aug 25, 2003
Posts: 123

Originally posted by cj jack:
Yes, there is something wrong with that particular statement, MS-DOS does not allow 2 "=" signs as part of the same set command(or something like that). I had this problem when I tried to start up the j2ee server of win98, but it works fine for I believe winnt or win2000 OS.
So reset the statup.bat back to original and give it a try.
Craig.


----------------------------------------------------------------------------
This error is in catalina.bat file and not in startup.bat.
Anyways i did following changes
set CATALINA_OPTS=%CATALINA_OPTS%
rem -Dsun.io.useCanonCaches=false
So now syntax error has gone. But still other problems r there
now my o/p is as follows
Using CATLINA_BASE: C:\tomcat
Using CATLINA_HOME: C:\tomcat
Using CATLINA_TMPDIR: Cl\tomcat\temp
Using JAVA_HOME: C:\jdk1.3
and then other window starts and immediatly disappears.
Dhanashree Mankar
Ranch Hand

Joined: Aug 25, 2003
Posts: 123
Exactly how do i come to know that my server has started?Initially i was having tomcat3 It had started successfully. New window started and hadn't disapppeared like this. And it had given some port no and all.
So with tomcat4 also these things would happen? or somthing else?
please guide me
Dhanashree Mankar
Ranch Hand

Joined: Aug 25, 2003
Posts: 123
Look at the following link:
http://www.coderanch.com/t/81802/Tomcat/Help-starting-Tomcat
Same problem is discussed. I did the same thing but still it is not working
Now new window is not opening in the current dos window only big text is scrolling down.
plz help
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12809
    
    5
That is the text you want to look at to find your problem. Also, are any log files being created? You may find a hint there.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PLEASE ANSWER