tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandro Gallo <sandro.gallo...@gmail.com>
Subject Re: Error on startup catalina
Date Mon, 07 Jun 2010 13:07:09 GMT
Hi,
I performed the steps suggested.
Below are the results:

1) I have all search permissions for specified paths.
macmac:~ sandro$ cd apache-tomcat-6.0.26
macmac:apache-tomcat-6.0.26 sandro$ ls -l
total 128
-rw-r--r--   1 sandro  staff  37950  9 Mar 18:09 LICENSE
-rw-r--r--   1 sandro  staff    557  9 Mar 18:09 NOTICE
-rw-r--r--   1 sandro  staff   8669  9 Mar 18:06 RELEASE-NOTES
-rw-r--r--   1 sandro  staff   6670  9 Mar 18:09 RUNNING.txt
drwxr-xr-x  16 sandro  staff    544  5 Giu 17:06 bin
drwxr-xr-x   9 sandro  staff    306  9 Mar 18:09 conf
drwxr-xr-x  18 sandro  staff    612  9 Mar 18:06 lib
drwxr-xr-x   3 sandro  staff    102  6 Giu 11:27 logs
drwxr-xr-x   3 sandro  staff    102  9 Mar 18:06 temp
drwxr-xr-x   7 sandro  staff    238  9 Mar 18:06 webapps
drwxr-xr-x   2 sandro  staff     68  9 Mar 18:06 work
macmac:apache-tomcat-6.0.26 sandro$ cd bin/
macmac:bin sandro$ ls -l
total 880
-rw-r--r--  1 sandro  staff   22110  9 Mar 18:06 bootstrap.jar
-rw-r--r--  1 sandro  staff    2374  9 Mar 18:06 catalina-tasks.xml
-rwxr-xr-x  1 sandro  staff   15582  5 Giu 16:59 catalina.sh
-rwxr-xr-x  1 sandro  staff   15739  5 Giu 17:01 catalina.sh.mod
-rw-r--r--  1 sandro  staff    9341  9 Mar 18:06 commons-daemon.jar
-rwxr-xr-x  1 sandro  staff    1624  9 Mar 18:06 digest.sh
-rw-r--r--  1 sandro  staff   74398  9 Mar 18:06 jsvc.tar.gz
-rwxr-xr-x  1 sandro  staff    4114  9 Mar 18:06 setclasspath.sh
-rwxr-xr-x  1 sandro  staff    1563  9 Mar 18:06 shutdown.sh
-rwxr-xr-x  1 sandro  staff    1956  9 Mar 18:06 startup.sh
-rw-r--r--  1 sandro  staff   26484  9 Mar 18:06 tomcat-juli.jar
-rw-r--r--  1 sandro  staff  241274  9 Mar 18:06 tomcat-native.tar.gz
-rwxr-xr-x  1 sandro  staff    3459  9 Mar 18:06 tool-wrapper.sh
-rwxr-xr-x  1 sandro  staff    1567  9 Mar 18:06 version.sh
macmac:bin sandro$

2) I ran the command you mentioned:
macmac:bin sandro$ pwd
/Users/sandro/apache-tomcat-6.0.26/bin
macmac:bin sandro$ java -classpath tomcat-juli.jar:bootstrap.jar
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=/Users/sandro/apache-tomcat-6.0.26/conf/logging.properties
-Dcatalina.home=/Users/sandro/apache-tomcat-6.0.26
org.apache.catalina.startup.Bootstrap >>
/Users/sandro/apache-tomcat-6.0.26/logs/catalina.out
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:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:244)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
    ... 1 more
macmac:bin sandro$

3) After all:
macmac:bin sandro$ pwd
/Users/sandro/apache-tomcat-6.0.26/bin
macmac:bin sandro$ jar -tf tomcat-juli.jar
META-INF/
META-INF/MANIFEST.MF
org/
org/apache/
org/apache/juli/
org/apache/juli/logging/
org/apache/juli/ClassLoaderLogManager$1.class
org/apache/juli/ClassLoaderLogManager$2.class
org/apache/juli/ClassLoaderLogManager$3.class
org/apache/juli/ClassLoaderLogManager$ClassLoaderLogInfo.class
org/apache/juli/ClassLoaderLogManager$Cleaner.class
org/apache/juli/ClassLoaderLogManager$LogNode.class
org/apache/juli/ClassLoaderLogManager$RootLogger.class
org/apache/juli/ClassLoaderLogManager.class
org/apache/juli/FileHandler.class
org/apache/juli/JdkLoggerFormatter.class
org/apache/juli/logging/DirectJDKLog.class
org/apache/juli/logging/Log.class
org/apache/juli/logging/LogConfigurationException.class
org/apache/juli/logging/LogFactory.class
META-INF/NOTICE
META-INF/LICENSE
macmac:bin sandro$


Thanks you








2010/6/5 Konstantin Kolinko <knst.kolinko@gmail.com>

> 1. Check that you have search (list) permissions for all the folders
> in the path "/Users/sandro/apache-tomcat-6.0.26/bin", e.g. with the
> following commands
>
> ls /
> ls /Users
> ls /Users/sandro
> ls /Users/sandro/apache-tomcat-6.0.26
> ls /Users/sandro/apache-tomcat-6.0.26/bin
>
> 2. Delete logs/catalina.out, then
> Go to /Users/sandro/apache-tomcat-6.0.26/bin and try the following
> command (all on one line):
>
> java -classpath tomcat-juli.jar:bootstrap.jar
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
>
> -Djava.util.logging.config.file=/Users/sandro/apache-tomcat-6.0.26/conf/logging.properties
> -Dcatalina.home=/Users/sandro/apache-tomcat-6.0.26
> org.apache.catalina.startup.Bootstrap
> >>/Users/sandro/apache-tomcat-6.0.26/logs/catalina.out
>
> 3. Go to /Users/sandro/apache-tomcat-6.0.26/bin and try the following
> command:
>
> jar -tf tomcat-juli.jar
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message