• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat 5.0.19 startup.... pl help

 
shishir gupta
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I installed Tomcat 5.0.19 on Windows 2000. when i try to run tomcat like this:
c:\jakarta-tomcat-5.0.19\bin>startup
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: d:\jdk1.4
c:\jakarta-tomcat-5.0.19\bin>

nothing happens, and the dos prompt appears.
When i go to bin directory and run startup-using-launcher.bat , I get an
exception :
java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/AntMain
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
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 java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at org.apache.commons.launcher.Launcher.start(Launcher.java:385)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at LauncherBootstrap.main(LauncherBootstrap.java:185)

environment variables set on my system:
classpath : .;D:\java\core\packages;D:\oracle\ora90\jdbc\lib\classes111.zip;d:\JSDK\lib\jsdk.jar;c:\Tomcat 5.0\common\lib\servlet-api.jar;
path : D:\oracle\ora90\bin;D:\oracle\ora90\jdbc\lib\classes111.zip;C:\Program Files\Oracle\jre\1.1.7\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;d:\jdk1.4\bin;D:\.\ClearQuest;
JAVA_HOME : d:\jdk1.4
=========================
 
Diana Finis
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add to PATH Ant/bin directory
 
Diana Finis
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh sorry, I've mixed oranges with apples :-). It looks like Tomcat looks for ant library, and either it doesn't find any or it finds one of a wrong version.
Hope it helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic