• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable to start Tomcat

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
problem solved with the jdk1.5.thank u all.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic