aspose file tools*
The moose likes Tomcat and the fly likes Tomcat 5 not starting....Please help!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 5 not starting....Please help!!!" Watch "Tomcat 5 not starting....Please help!!!" New topic
Author

Tomcat 5 not starting....Please help!!!

Shruti Kale
Ranch Hand

Joined: Jun 11, 2004
Posts: 82
I downloaded the zipped version of tomcat 5 and unzipped on my machine. I have set the CATALINA_HOME system variable to point to the dir where the Tomcat folder is residing. When i go to the /bin directory and click on startup.bat it runs for a few seconds and then vanishes. In essense the server is not starting. I have a Win 2K machine.
I had this problem with Tomcat 4.0 also and i tried a number of exe's for a number of months and then suddenly a setup i had found somewhere worked like a charm. Since it happend by fluke the last time i have no clue what is gone wrong this time.
When i unzipped this Tomcat 5 on my office' machine which is XP it worked without any problem. Infact it worked without even my setting the CATALINA_HOME variable (Strange???).
Please help me start the server. I need Tomcat 5 for SCWCD preperation...
Thanks


SCJP 1.4, SCWCD 1.4
Eelco den Heijer
Ranch Hand

Joined: Jan 17, 2002
Posts: 61
if you start up tomcat in a dos box, you can actually see what goes wrong.
(in the log messages)


== <br />Rgrds,<br />Eelco<br /> <br />SCJP, SCJD, SCBCD, SCWD, SCEA
Shruti Kale
Ranch Hand

Joined: Jun 11, 2004
Posts: 82
How do i start it in the dos box...??
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi Smriti,

Good day....Well....i too have come across such an error, where the console window doesn't stand but the server runs. That was on, i don't know how but it does.

Try to test the server.

Starting from the dos :
1. Go to the Tomcat's bin directory
eg c:\Tomcat\bin

2. Then type startup

3. You might get the error message.

But this is a common problem that pops out when Tomcat is newly put in a machine. Any way, try deleting all the variables and then restart your system, if that doesn't work.

Or try to get working Tomcat from peers, rather than loading it down.

Cheers,
Swamy
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12681
    
    5
IF - when you execute startup.bat from a command prompt - another window pops open for a very short time and then closes, do the following:
In startup.bat change the last executable line so it reads:

Note "run" instead of "start"
Now when you execute startup.bat, the actual startup will proceed in that window and you can see what goes wrong.
Bill
Shruti Kale
Ranch Hand

Joined: Jun 11, 2004
Posts: 82
Thanks for the replies. I tried wat Ramaswami and Williams sugested but the server is still not starting. The startup.bat starts and closes as soon as it starts. The log folder does not have any entries either.

Thanks
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12681
    
    5
Sounds like you are trying to execute startup.bat by double-clicking. That is NOT what we have been saying.

In order to see what is going on you will have to open a command prompt window, change to the CATALINA_HOME/bin directory and execute the startup.bat directly from the command prompt.
Bill
Shruti Kale
Ranch Hand

Joined: Jun 11, 2004
Posts: 82
Hi William!
I still can not start Tomcat 5.0
This is the error that i get on command prompt

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:30)
at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAcces
sorImpl.java:48)
at java.lang.reflect.Method.invoke(Method.java:306)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
Caused by: java.lang.NoSuchMethodError: java.util.logging.Logger.logp(Ljava/util
/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String V
at org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:91)
at org.apache.commons.logging.impl.Jdk14Logger.info(Jdk14Logger.java:162
)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:142)

at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.
java:1429)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:609)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2384)
at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
... 6 more
E:\Tomcat 5\jakarta-tomcat-5.0.28\bin>
Shruti Kale
Ranch Hand

Joined: Jun 11, 2004
Posts: 82
I have jdk1.4 installed on my machine and the JAVA_HOME variable points to the right place too..
Joyce Lee
Ranch Hand

Joined: Jul 11, 2003
Posts: 1392
Smriti, not sure if the suggestion given here related to your problem or not. To check if you've more than one JRE installed, go to "Add/Remove Programs".

Joyce
[ October 04, 2004: Message edited by: Joyce Lee ]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12681
    
    5
1. This error is happening very early in the startup (bootstrap is mentioned)
2. It looks like a library problem since the NoSuchMethodError is the root cause. Furthermore it is the java.util.logging.Logger class - new in Java 1.4
Are you sure you don't have some older version of Java hanging around?
Do you have the latest Java 1.4? I seem to recall the first releases had problems.
Bill
Shruti Kale
Ranch Hand

Joined: Jun 11, 2004
Posts: 82
ohh...I do have jdk1.3 installed on my machine in addition to jdk1.4
Sad part is that i deleted the folder for jdk1.3 by mistake and the file needed to uninstall it is lost with it!! Think i will have to reinstall and uninstall or something...
Thanks everyone for answering me!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 5 not starting....Please help!!!
 
Similar Threads
Help me please! Can't find class message.
Tomcat icon in Eclipse 3.0
unable to view congrulation page of tomcat 4.1.27
compiling servlets under Tomcat 4.0
how to start and stop tomcat 5.5 server