• 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:

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

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if you start up tomcat in a dos box, you can actually see what goes wrong.
(in the log messages)
 
Shruti Kale
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do i start it in the dos box...??
 
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have jdk1.4 installed on my machine and the JAVA_HOME variable points to the right place too..
 
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!!
 
reply
    Bookmark Topic Watch Topic
  • New Topic