Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to start Tomcat

 
muhilan govin
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I seem to remember that with tomcat 5 you need
jdk 1.5, otherwise a compatible package must be
added.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
chsanthosh kumar
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
muhilan govin
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
problem solved with the jdk1.5.thank u all.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic