wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Couldn't Start Tomcat in Win2K- SOS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Couldn Watch "Couldn New topic
Author

Couldn't Start Tomcat in Win2K- SOS

Parthasarathy Venkatavaradhan
Greenhorn

Joined: Oct 10, 2002
Posts: 8
Hi all,
I installed Tomcat 4.1.27 on a Win2K. I am a newbie to apache/tomcat. I followed all the instructions available in the Tomcat readme file to start the tomcat server. The second window flicks for
a while and goes off when i start using startup.bat. I could'nt see what the problem is. The environment memory is 4098, so even the environment space problem is not possible.
Please help what the problem/solution could be. Atleast tell me how i could see what's happened on the 2nd window.
thanks,
Partha
Sainudheen Mydeen
Ranch Hand

Joined: Aug 18, 2003
Posts: 218
Hi
Can you run the startup.bat from command prompt. You will be able to see some message atleast.

---------------
Sainudheen
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Is your Win2K system running IIS?
Which Java version? there are different Tomcats for SDK 1.4 vrs earlier
In order to see whats happening - change the last executable line in startup.bat from

to

so that the next batch file will continue in that window.
You may also want to "REM out" the @echo off line in catalina.bat to see all the (voluminous) messages. Environment memory is not a problem in Win2k, only in Win98.
Bill
Parthasarathy Venkatavaradhan
Greenhorn

Joined: Oct 10, 2002
Posts: 8
Hi,
Thanks for your replies. I am running Windows 2000 server. From the services window i have disabled IIS Admin service(nothing specific like IIS web service) and also disabled Web publishing service. Apache is running. As the results are same whether apache runs or not. I am using JDK1.2.2 version.
The last line which invokes the Tomcat.exe, in my catalina dot bat is something like the following. By changing the first 'start' to 'run' i get an error 'run is not recognized as internal or external command'. By changing the last 'start' to 'run', the result is same.
=======================================================================
This is the line in catalina.bat that calls the Tomcat.exe
(I have substituted the variables with values)
=======================================================================
start "Tomcat" "C:\MyApps\JDK1.2.2\bin\java" -Djava.endorsed.dirs="C:\myapps\jakarta-tomcat-4.1.27\common\endorsed" -classpath C:\MyApps\JDK1.2.2\lib\tools.jar;C:\myapps\jakarta-tomcat-4.1.27\bin\bootstrap.jar;C:\myapps\jdk1.2.2\src.jar -Dcatalina.base="C:\myapps\jakarta-tomcat-4.1.27"-Dcatalina.home="C:\myapps\jakarta-tomcat-4.1.27" -Djava.io.tmpdir="C:\myapps\jakarta-tomcat-4.1.27\temp" org.apache.catalina.startup.Bootstrap run
thanks,
Partha
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

is Tomcat running as a service?

When you install on Windows2000, there is an option to install Tomcat as a Service. It will start Tomcat automatically when you boot your machine.

If you then try to start it with the shortcuts, you get the disappearing window behaviour.

Just ignore the batch files for now, reboot your machine, and try accessing localhost:8080

If you get Tomcat, then you can ignore the batch files and use the Services manager to start/stop Tomcat.
Parthasarathy Venkatavaradhan
Greenhorn

Joined: Oct 10, 2002
Posts: 8
Hi,
Nope, it's not running as a service, as localhost:8080 returned "page cannot be displayed". Is this version of JDK(1.2.2) compatible with tomcat(4.2.7)?
Partha
Parthasarathy Venkatavaradhan
Greenhorn

Joined: Oct 10, 2002
Posts: 8
And, just now i did "catalina.bat run" from the command prompt. Ultimately i think that's what's done by startup.bat also. Good now, that i could caputure the error,
C:\MyApps\jakarta-tomcat-4.1.27\bin>catalina run
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: C:\myapps\jdk1.2.2
Bootstrap: Class loader creation threw exception
java.lang.IllegalMonitorStateException: current thread not owner
at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(
StandardClassLoader.java, Compiled Code)
at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLo
ader.java, Compiled Code)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(Class
Now can someone tell me what the solution could be?
thanks,
Partha
sLoaderFactory.java, Compiled Code)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java, Compiled C
ode)
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
1. There is a "patch" for Tomcat 4.1.27 that fixes some odd problem. I got it in a file named "4.1.27-hotfix-22096.zip" - did you install it?
2. Are you sure you didn't get the version that requires JDK1.4 by mistake?
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Couldn't Start Tomcat in Win2K- SOS
 
Similar Threads
can not use classic compiler error
Tomcat Setup
help i cant start tomcat
problem with tomcat installing and running
unable to get tomcat home page displayed in browser