Hi,
I have been trying to install tomcat-6.0.26 on my Mac OS 10.6. I followed these instructions:
1)Get the latest binary from here
2) Extract it to /usr/local
3) sudo vi /etc/profile
and add the following settings
export JAVA_HOME=/Library/Java/Home
export CATALINA_HOME=/usr/local/tomcat
4)sudo chown -R nobody:nobody /usr/local/tomcat
5)cd /usr/local/tomcat/bin
and sudo -u nobody /usr/local/tomcat/bin/startup.sh
which then gives the following output.
Using CATALINA_BASE: /usr/local/Tomcat
Using CATALINA_HOME: /usr/local/Tomcat
Using CATALINA_TMPDIR: /usr/local/Tomcat/temp
Using JRE_HOME: /Library/Java/Home
Using CLASSPATH: /usr/local/Tomcat/bin/bootstrap.jar
6) But when I point my browser to http://localhost:8080
, it won't show the start page.
7) And when I sudo -u nobody /usr/local/tomcat/bin/shutdown.sh
, it throws
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55)
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 1 more
8) Am I doing anything wrong here? Any help is appreciated.
Thanks,
Deepak.