Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

apache-tomcat-6.0.10 startup error

 
Amar Naik
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i try to execute the startup.bat file i get the below
Using CATALINA_BASE: H:\apps\xp\desktop\apache-tomcat-6.0.10
Using CATALINA_HOME: H:\apps\xp\desktop\apache-tomcat-6.0.10
Using CATALINA_TMPDIR: H:\apps\xp\desktop\apache-tomcat-6.0.10\temp
Using JRE_HOME: C:\Program Files\Java\j2sdk1.4.2_13

. then another window opens and it closes.

In IE when i type http://localhost:8080/, it displays page not found
Please advise.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
. then another window opens and it closes.


That window belongs to catalina.bat - something is going wrong but the window closes before you can see the exception report. The log files may contain a report. You can also change the last executable line of startup.bat from:

call "%EXECUTABLE%" start %CMD_LINE_ARGS%

to

call "%EXECUTABLE%" run %CMD_LINE_ARGS%

to keep running in the command prompt window so you can see the result.

(thats from Tomcat 5.5.20, I am guessing its the same in tomcat 6)
Bill
 
Amar Naik
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i got the error now. here it is

Using CATALINA_BASE: H:\apps\xp\desktop\apache-tomcat-6.0.10
Using CATALINA_HOME: H:\apps\xp\desktop\apache-tomcat-6.0.10
Using CATALINA_TMPDIR: H:\apps\xp\desktop\apache-tomcat-6.0.10\temp
Using JRE_HOME: C:\Program Files\Java\j2sdk1.4.2_13
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/ca
talina/startup/Bootstrap (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

Please advise
 
Amar Naik
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i fixed the problem. initially i was pointing to jdk1.4*. I changed it to jdk1.5*.
It works fine now.
Thnaks for the help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic