aspose file tools*
The moose likes Tomcat and the fly likes Unable to start Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Unable to start Tomcat " Watch "Unable to start Tomcat " New topic
Author

Unable to start Tomcat

muhilan govin
Greenhorn

Joined: Jul 26, 2005
Posts: 21
hi all,
i have installed tomcat5.0.9 on my windowsXP machine. i get the following error when i try to start the server via the command prompt.. i am totally clue less.can anyone help me out??

D:\Tomcat\bin>set CATALINA_HOME=D:\Tomcat

D:\Tomcat\bin>catalina debug
Using CATALINA_BASE: D:\Tomcat
Using CATALINA_HOME: D:\Tomcat
Using CATALINA_TMPDIR: D:\Tomcat\temp
Using JAVA_HOME: D:\jdk1.4
Initializing jdb...
> run
run org.apache.catalina.startup.Bootstrap start
>
VM Started: nextjava.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:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:393)
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:126)

at org.apache.commons.logging.impl.Jdk14Logger.info(Jdk14Logger.java:193
)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:174)

at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.
java:1333)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:633)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2381)
at org.apache.catalina.startup.Catalina.load(Catalina.java:529)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
... 6 more

The application exited

D:\Tomcat\bin>

thanks
s liu
Greenhorn

Joined: Jul 26, 2005
Posts: 3
I seem to remember that with tomcat 5 you need
jdk 1.5, otherwise a compatible package must be
added.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Tomcat 5.5 and above require Java 1.5.

Why are you running 5.0.9?
I believe the latest 5.0 is 5.0.30.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

"mgm java",

There aren't may rules that have been put into place here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
chsanthosh kumar
Ranch Hand

Joined: Jun 28, 2005
Posts: 56
Originally posted by mgm java:
hi all,
i have installed tomcat5.0.9 on my windowsXP machine. i get the following error when i try to start the server via the command prompt.. i am totally clue less.can anyone help me out??

D:\Tomcat\bin>set CATALINA_HOME=D:\Tomcat

D:\Tomcat\bin>catalina debug
Using CATALINA_BASE: D:\Tomcat
Using CATALINA_HOME: D:\Tomcat
Using CATALINA_TMPDIR: D:\Tomcat\temp
Using JAVA_HOME: D:\jdk1.4
Initializing jdb...
> run
run org.apache.catalina.startup.Bootstrap start
>
VM Started: nextjava.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:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:393)
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:126)

at org.apache.commons.logging.impl.Jdk14Logger.info(Jdk14Logger.java:193
)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:174)

at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.
java:1333)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:633)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2381)
at org.apache.catalina.startup.Catalina.load(Catalina.java:529)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
... 6 more

The application exited

D:\Tomcat\bin>

thanks



Hi ,

Plz reinstall the tomcat5.0.9 and set the javahome like this..

SET JAVA_HOME=C:\JDK1.5\(OR WAT EVER THE VERSION YOU ARE USING)

thanks It Hleps.


---------------------<br />SCJP(1.4)With 95%<br /> <br />Do it Right and Forget it!
muhilan govin
Greenhorn

Joined: Jul 26, 2005
Posts: 21
hi santhosh
i tried it out it did not work .. it still shows the same error..i also tried another thing, since i had used jdk1.4 i went on to use tomcat4.1.31 but i still got the same error so i think it is not because of the jdk ???can anyone help me out?

thanks in advance
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Did you rename your java directory to:
Using JAVA_HOME: D:\jdk1.4

It's usually a little longer than that.
Example:
j2sdk1.4.2_07 or something like that.


Try typing:
%JAVA_HOME%\bin\javac

at the command line.
If you get a message saying "No program or file..." then your java_home env variable is not set correctly.
muhilan govin
Greenhorn

Joined: Jul 26, 2005
Posts: 21
hi all,
problem solved with the jdk1.5.thank u all.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

"mgm java",

My request for you to adjust your display name was not a suggestion. Proper display names are mandatory for participation in the Ranch. Take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.

Be aware that accounts with invalid display names are subject to closure and you are unlikely to receive a subsequent warning.

bear
bartender
 
Consider Paul's rocket mass heater.
 
subject: Unable to start Tomcat