FAQ
Hi,
Using recently Tomcat.
So far I have used it on a Windows XP machine, and everything went well.
I decided to install it on a machine Mac, Mac OS X Snow Leopard, but can
not boot.
I do not know how to solve the problem, and I need to use Tomcat.
Please, help me.
Here are some info on startup:

*Using CATALINA_BASE: /Library/Tomcat/Home
Using CATALINA_HOME: /Library/Tomcat/Home
Using CATALINA_TMPDIR: /Library/Tomcat/Home/temp
Using JRE_HOME: /Library/Java/Home
Using CLASSPATH: /Library/Tomcat/Home/bin/bootstrap.jar
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
*

Thanks in advance.

Search Discussions

  • Caldarale, Charles R at Jun 2, 2010 at 9:38 pm

    From: Sandro Gallo
    Subject: Error on startup catalina

    Using recently Tomcat.
    What version of Tomcat? What JVM level? How did you install Tomcat? What are you using to start Tomcat?

    - Chuck


    THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Sandro Gallo at Jun 2, 2010 at 9:58 pm
    Sorry,
    I forgot a bit 'of informations.

    TOMCAT version: 6.0.26.

    java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248)
    Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)
    The version of Java is already on Mac.

    I installed Tomcat by following this step:
    1. download from site,
    2. create folder /Library/Tomcat,
    3. untar file in this new folder,
    4. create simbolic link from /Library/Tomcat/apache-tomcat-6.0.26 to
    /Library/Tomcat/Home,
    5. create env variables CATALINA_HOME, JAVA_HOME.

    All files in CATALINA_HOME/bin have exec permission.
    I start Tomcat from startup.sh

    I also tried with version 5.5, deleting everything and starting over
    again, and then again to 6.0: in all cases, Tomcat will not start.

    Thank you very much.




    Il 02/06/2010 23.37, Caldarale, Charles R ha scritto:
    From: Sandro Gallo
    Subject: Error on startup catalina

    Using recently Tomcat.
    What version of Tomcat? What JVM level? How did you install Tomcat? What are you using to start Tomcat?

    - Chuck


    THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Bob Hall at Jun 3, 2010 at 6:46 am
    Sondro,

    --- On Wed, 6/2/10 at 2:57 PM, Sandro Gallo wrote:
    TOMCAT version: 6.0.26.

    java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248)
    Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101,
    mixed mode)
    The version of Java is already on Mac.

    I installed Tomcat by following this step:
    1. download from site,
    2. create folder /Library/Tomcat,
    3. untar file in this new folder,
    4. create simbolic link from
    /Library/Tomcat/apache-tomcat-6.0.26  to
    /Library/Tomcat/Home,
    5. create env variables CATALINA_HOME, JAVA_HOME.

    All files in CATALINA_HOME/bin have exec permission.
    Check the permissions of bin/tomcat-juli.jar; it needs to be readable by the user that is running tomcat.

    And try running Tomcat without the "benefit" of the symbolic link or setting CATALINA_HOME:

    $ export CATALINA_HOME=

    $ /Library/Tomcat/apache-tomcat-6.0.26/bin/startup.sh

    - Bob




    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Sandro Gallo at Jun 3, 2010 at 4:11 pm
    Hi,
    prior to this new installation, i had not used symbolic link, but i did
    untar package in folder /Library/Tomcat: the result was always the same: no
    startup.

    I checked the permissions in the $CATALINA_HOME/bin, which i show below:

    macmac:bin sandro$ pwd
    /Library/Tomcat/Home/bin
    macmac:bin sandro$ ls -l
    total 848
    -rwxr-xr-x 1 sandro admin 22110 9 Mar 18:06 bootstrap.jar
    -rw-r--r-- 1 sandro admin 2374 9 Mar 18:06 catalina-tasks.xml
    -rwxr-xr-x 1 sandro admin 15582 9 Mar 18:06 catalina.sh
    -rwxr-xr-x 1 sandro admin 9341 9 Mar 18:06 commons-daemon.jar
    -rwxr-xr-x 1 sandro admin 1624 9 Mar 18:06 digest.sh
    -rw-r--r-- 1 sandro admin 74398 9 Mar 18:06 jsvc.tar.gz
    -rwxr-xr-x 1 sandro admin 4114 9 Mar 18:06 setclasspath.sh
    -rwxr-xr-x 1 sandro admin 1563 9 Mar 18:06 shutdown.sh
    -rwxr-xr-x 1 sandro admin 1956 9 Mar 18:06 startup.sh
    -rwxr-xr-x 1 sandro admin 26484 9 Mar 18:06 tomcat-juli.jar
    -rw-r--r-- 1 sandro admin 241274 9 Mar 18:06 tomcat-native.tar.gz
    -rwxr-xr-x 1 sandro admin 3459 9 Mar 18:06 tool-wrapper.sh
    -rwxr-xr-x 1 sandro admin 1567 9 Mar 18:06 version.sh


    And trying to start Tomcat, i get the following logs:

    macmac:bin sandro$ ./startup.sh && tail -f ../logs/catalina.out
    Using CATALINA_BASE: /Library/Tomcat/Home
    Using CATALINA_HOME: /Library/Tomcat/Home
    Using CATALINA_TMPDIR: /Library/Tomcat/Home/temp
    Using JRE_HOME: /Library/Java/Home
    Using CLASSPATH: /Library/Tomcat/Home/bin/bootstrap.jar
    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
    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

    Same if i run sudo ./startup.sh && tail -f ../logs/catalina.out.


    For completeness, rewrite which version use:
    TOMCAT: 6.0.26
    JAVA:
    java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248)
    Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)
    Java is already on Mac.
    ANT: already installed on mac: version 1.7.1

    How can i fix this? What could it be? Please help me.
    Many thanks in advance





    2010/6/3 Bob Hall <rfhall3@yahoo.com>
    Sondro,

    --- On Wed, 6/2/10 at 2:57 PM, Sandro Gallo wrote:
    TOMCAT version: 6.0.26.

    java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248)
    Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101,
    mixed mode)
    The version of Java is already on Mac.

    I installed Tomcat by following this step:
    1. download from site,
    2. create folder /Library/Tomcat,
    3. untar file in this new folder,
    4. create simbolic link from
    /Library/Tomcat/apache-tomcat-6.0.26 to
    /Library/Tomcat/Home,
    5. create env variables CATALINA_HOME, JAVA_HOME.

    All files in CATALINA_HOME/bin have exec permission.
    Check the permissions of bin/tomcat-juli.jar; it needs to be readable by
    the user that is running tomcat.

    And try running Tomcat without the "benefit" of the symbolic link or
    setting CATALINA_HOME:

    $ export CATALINA_HOME=

    $ /Library/Tomcat/apache-tomcat-6.0.26/bin/startup.sh

    - Bob




    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Pid at Jun 3, 2010 at 5:09 pm

    On 03/06/2010 17:10, Sandro Gallo wrote:
    Hi,
    prior to this new installation, i had not used symbolic link, but i did
    untar package in folder /Library/Tomcat: the result was always the same: no
    startup.

    I checked the permissions in the $CATALINA_HOME/bin, which i show below:

    macmac:bin sandro$ pwd
    /Library/Tomcat/Home/bin
    macmac:bin sandro$ ls -l
    total 848
    -rwxr-xr-x 1 sandro admin 22110 9 Mar 18:06 bootstrap.jar
    -rw-r--r-- 1 sandro admin 2374 9 Mar 18:06 catalina-tasks.xml
    -rwxr-xr-x 1 sandro admin 15582 9 Mar 18:06 catalina.sh
    -rwxr-xr-x 1 sandro admin 9341 9 Mar 18:06 commons-daemon.jar
    -rwxr-xr-x 1 sandro admin 1624 9 Mar 18:06 digest.sh
    -rw-r--r-- 1 sandro admin 74398 9 Mar 18:06 jsvc.tar.gz
    -rwxr-xr-x 1 sandro admin 4114 9 Mar 18:06 setclasspath.sh
    -rwxr-xr-x 1 sandro admin 1563 9 Mar 18:06 shutdown.sh
    -rwxr-xr-x 1 sandro admin 1956 9 Mar 18:06 startup.sh
    -rwxr-xr-x 1 sandro admin 26484 9 Mar 18:06 tomcat-juli.jar
    -rw-r--r-- 1 sandro admin 241274 9 Mar 18:06 tomcat-native.tar.gz
    -rwxr-xr-x 1 sandro admin 3459 9 Mar 18:06 tool-wrapper.sh
    -rwxr-xr-x 1 sandro admin 1567 9 Mar 18:06 version.sh


    And trying to start Tomcat, i get the following logs:

    macmac:bin sandro$ ./startup.sh && tail -f ../logs/catalina.out
    Using CATALINA_BASE: /Library/Tomcat/Home
    Using CATALINA_HOME: /Library/Tomcat/Home
    Using CATALINA_TMPDIR: /Library/Tomcat/Home/temp
    Using JRE_HOME: /Library/Java/Home
    Using CLASSPATH: /Library/Tomcat/Home/bin/bootstrap.jar
    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
    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

    Same if i run sudo ./startup.sh && tail -f ../logs/catalina.out.


    For completeness, rewrite which version use:
    TOMCAT: 6.0.26
    JAVA:
    java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248)
    Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)
    Java is already on Mac.
    ANT: already installed on mac: version 1.7.1

    How can i fix this? What could it be? Please help me.
    We are trying to, you don't have to keep asking.

    Have you set a classpath or any other environment variables?

    If you take a fresh download and unzip it in a sub directory of your
    user account, will it run there?


    p

    Many thanks in advance





    2010/6/3 Bob Hall <rfhall3@yahoo.com>
    Sondro,

    --- On Wed, 6/2/10 at 2:57 PM, Sandro Gallo <sandro.gallo.81@gmail.com>
    wrote:
    TOMCAT version: 6.0.26.

    java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248)
    Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101,
    mixed mode)
    The version of Java is already on Mac.

    I installed Tomcat by following this step:
    1. download from site,
    2. create folder /Library/Tomcat,
    3. untar file in this new folder,
    4. create simbolic link from
    /Library/Tomcat/apache-tomcat-6.0.26 to
    /Library/Tomcat/Home,
    5. create env variables CATALINA_HOME, JAVA_HOME.

    All files in CATALINA_HOME/bin have exec permission.
    Check the permissions of bin/tomcat-juli.jar; it needs to be readable by
    the user that is running tomcat.

    And try running Tomcat without the "benefit" of the symbolic link or
    setting CATALINA_HOME:

    $ export CATALINA_HOME=

    $ /Library/Tomcat/apache-tomcat-6.0.26/bin/startup.sh

    - Bob




    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Hassan Schroeder at Jun 3, 2010 at 6:07 pm

    On Thu, Jun 3, 2010 at 10:08 AM, Pid wrote:

    If you take a fresh download and unzip it in a sub directory of your
    user account, will it run there?
    As a reference point -- here's a fresh install on a Mac/Snow Leopard system:

    ripple:~/Downloads$ ls apache-tomcat-6.0.26.tar.gz
    -rw-r--r-- 1 hassan staff 6123410 Mar 17 13:18 apache-tomcat-6.0.26.tar.gz
    ripple:~/Downloads$ tar xfz apache-tomcat-6.0.26.tar.gz
    ripple:~/Downloads$ cd apache-tomcat-6.0.26
    ripple:~/Downloads/apache-tomcat-6.0.26$ export CATALINA_HOME=`pwd`
    ripple:~/Downloads/apache-tomcat-6.0.26$ ./bin/catalina.sh run
    Using CATALINA_BASE: /Users/hassan/Downloads/apache-tomcat-6.0.26
    Using CATALINA_HOME: /Users/hassan/Downloads/apache-tomcat-6.0.26
    Using CATALINA_TMPDIR: /Users/hassan/Downloads/apache-tomcat-6.0.26/temp
    Using JRE_HOME:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
    Using CLASSPATH:
    /Users/hassan/Downloads/apache-tomcat-6.0.26/bin/bootstrap.jar
    Jun 3, 2010 10:57:30 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal
    performance in production environments was not found on the
    java.library.path:
    /usr/local/ImageMagick-6.4.1/lib:/Users/hassan/Library/Oracle/instantclient_10_2:.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
    Jun 3, 2010 10:57:30 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Jun 3, 2010 10:57:30 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 932 ms
    Jun 3, 2010 10:57:30 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jun 3, 2010 10:57:30 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
    Jun 3, 2010 10:57:30 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory docs
    Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory examples
    Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory host-manager
    Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory manager
    Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory ROOT
    Jun 3, 2010 10:57:31 AM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Jun 3, 2010 10:57:31 AM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Jun 3, 2010 10:57:31 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/20 config=null
    Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1384 ms

    After confirming it basically works, I would normally cd out and move
    the tomcat directory to /usr/local and set CATALINA_HOME to the
    appropriate value.

    HTH!
    --
    Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
    twitter: @hassan

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Pid at Jun 4, 2010 at 10:34 am

    On 03/06/2010 19:06, Hassan Schroeder wrote:
    On Thu, Jun 3, 2010 at 10:08 AM, Pid wrote:

    If you take a fresh download and unzip it in a sub directory of your
    user account, will it run there?
    As a reference point -- here's a fresh install on a Mac/Snow Leopard system:

    ripple:~/Downloads$ ls apache-tomcat-6.0.26.tar.gz
    -rw-r--r-- 1 hassan staff 6123410 Mar 17 13:18 apache-tomcat-6.0.26.tar.gz
    ripple:~/Downloads$ tar xfz apache-tomcat-6.0.26.tar.gz
    ripple:~/Downloads$ cd apache-tomcat-6.0.26
    ripple:~/Downloads/apache-tomcat-6.0.26$ export CATALINA_HOME=`pwd`
    ripple:~/Downloads/apache-tomcat-6.0.26$ ./bin/catalina.sh run
    Using CATALINA_BASE: /Users/hassan/Downloads/apache-tomcat-6.0.26
    Using CATALINA_HOME: /Users/hassan/Downloads/apache-tomcat-6.0.26
    Using CATALINA_TMPDIR: /Users/hassan/Downloads/apache-tomcat-6.0.26/temp
    Using JRE_HOME:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
    Using CLASSPATH:
    /Users/hassan/Downloads/apache-tomcat-6.0.26/bin/bootstrap.jar
    Jun 3, 2010 10:57:30 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal
    performance in production environments was not found on the
    java.library.path:
    /usr/local/ImageMagick-6.4.1/lib:/Users/hassan/Library/Oracle/instantclient_10_2:.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
    Jun 3, 2010 10:57:30 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Jun 3, 2010 10:57:30 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 932 ms
    Jun 3, 2010 10:57:30 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jun 3, 2010 10:57:30 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
    Jun 3, 2010 10:57:30 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory docs
    Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory examples
    Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory host-manager
    Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory manager
    Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory ROOT
    Jun 3, 2010 10:57:31 AM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Jun 3, 2010 10:57:31 AM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Jun 3, 2010 10:57:31 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/20 config=null
    Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1384 ms

    After confirming it basically works, I would normally cd out and move
    the tomcat directory to /usr/local and set CATALINA_HOME to the
    appropriate value.

    HTH!
    Yep works first time on my mac too.


    p
  • Sandro Gallo at Jun 4, 2010 at 5:17 pm
    Hi,
    thanks for the help but still wrong!
    Again, I downloaded and installed tomcat in my personal folder, but same
    error.
    I do not understand what can be! I've seen that in tests done by you work.
    Further, other information that might be useful (sorry if there are many):

    *macmac:Java sandro$ pwd*

    */Library/Java*

    *macmac:Java sandro$ ls -l*

    *total 8*

    *drwxrwxr-x 2 root admin 68 3 Dic 2009 Extensions*

    *lrwxr-xr-x 1 root admin 48 28 Mar 07:29 Home ->
    /System/Library/Frameworks/JavaVM.framework/Home*

    *macmac:Java sandro$ cd Home*

    *macmac:Home sandro$ cd bin/*

    *macmac:bin sandro$ pwd*

    */Library/Java/Home/bin*

    *macmac:bin sandro$ ls -l*

    *total 3216*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 appletviewer*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 apt*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 extcheck*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 idlj*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jar*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jarsigner*

    *-rwxr-xr-x 1 root wheel 100672 17 Mar 23:57 java*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javac*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javadoc*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javah*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javap*

    *lrwxr-xr-x 1 root wheel 92 28 Mar 07:29 javaws ->
    /System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/bin/javaws*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jconsole*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jdb*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jhat*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jinfo*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jmap*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jps*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jrunscript*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jsadebugd*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jstack*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jstat*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jstatd*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 keytool*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 native2ascii*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 orbd*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 pack200*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 policytool*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 rmic*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 rmid*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 rmiregistry*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 schemagen*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 serialver*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 servertool*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 tnameserv*

    *-rwxr-xr-x 1 root wheel 253744 17 Mar 23:57 unpack200*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 wsgen*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 wsimport*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 xjc*

    *macmac:apache-tomcat-6.0.26 sandro$ pwd*

    */Users/sandro/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 23 sandro staff 782 4 Giu 18:46 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 2 sandro staff 68 9 Mar 18:06 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$ ./bin/catalina.sh debug*

    *Using CATALINA_BASE: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_HOME: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_TMPDIR: /Users/sandro/apache-tomcat-6.0.26/temp*

    *Using JAVA_HOME: /Library/Java/Home*

    *Using CLASSPATH: /Users/sandro/apache-tomcat-6.0.26/bin/bootstrap.jar*

    *Initializing jdb ...*

    *> run*

    *run org.apache.catalina.startup.Bootstrap start*

    *Set uncaught java.lang.Throwable*

    *Set deferred uncaught java.lang.Throwable*

    *> *

    *VM Started: *

    *Exception occurred: java.lang.ClassNotFoundException
    (uncaught)"thread=main", java.lang.ClassLoader.loadClass(), line=346
    bci=416*

    *
    *

    *main[1] list*

    *Source file not found: ClassLoader.java*

    *main[1] stepi*

    *> 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*

    *
    *

    *The application exited*

    *macmac:apache-tomcat-6.0.26 sandro$ *


    I did an additional experiment ( dont know if it is normal):

    *macmac:apache-tomcat-6.0.26 sandro$ pwd*

    */Users/sandro/apache-tomcat-6.0.26*

    *macmac:apache-tomcat-6.0.26 sandro$ ./bin/catalina.sh run*

    *Using CATALINA_BASE: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_HOME: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_TMPDIR: /Users/sandro/apache-tomcat-6.0.26/temp*

    _*Using JRE_HOME: /Library/Java/Home*_

    *Using CLASSPATH: /Users/sandro/apache-tomcat-6.0.26/bin/bootstrap.jar*

    *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:apache-tomcat-6.0.26 sandro$ ./bin/catalina.sh debug*

    *Using CATALINA_BASE: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_HOME: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_TMPDIR: /Users/sandro/apache-tomcat-6.0.26/temp*

    _*Using JAVA_HOME: /Library/Java/Home*_

    *Using CLASSPATH: /Users/sandro/apache-tomcat-6.0.26/bin/bootstrap.jar*

    *Initializing jdb ...*

    *> run*

    *run org.apache.catalina.startup.Bootstrap start*

    *Set uncaught java.lang.Throwable*

    *Set deferred uncaught java.lang.Throwable*

    *
    *


    Thanks again.






    Il 04/06/2010 12.33, Pid ha scritto:
    On 03/06/2010 19:06, Hassan Schroeder wrote:

    On Thu, Jun 3, 2010 at 10:08 AM, Pidwrote:

    If you take a fresh download and unzip it in a sub directory of your
    user account, will it run there?
    As a reference point -- here's a fresh install on a Mac/Snow Leopard system:

    ripple:~/Downloads$ ls apache-tomcat-6.0.26.tar.gz
    -rw-r--r-- 1 hassan staff 6123410 Mar 17 13:18 apache-tomcat-6.0.26.tar.gz
    ripple:~/Downloads$ tar xfz apache-tomcat-6.0.26.tar.gz
    ripple:~/Downloads$ cd apache-tomcat-6.0.26
    ripple:~/Downloads/apache-tomcat-6.0.26$ export CATALINA_HOME=`pwd`
    ripple:~/Downloads/apache-tomcat-6.0.26$ ./bin/catalina.sh run
    Using CATALINA_BASE: /Users/hassan/Downloads/apache-tomcat-6.0.26
    Using CATALINA_HOME: /Users/hassan/Downloads/apache-tomcat-6.0.26
    Using CATALINA_TMPDIR: /Users/hassan/Downloads/apache-tomcat-6.0.26/temp
    *Using JRE_HOME:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home*
    Using CLASSPATH:
    /Users/hassan/Downloads/apache-tomcat-6.0.26/bin/bootstrap.jar
    Jun 3, 2010 10:57:30 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal
    performance in production environments was not found on the
    java.library.path:
    /usr/local/ImageMagick-6.4.1/lib:/Users/hassan/Library/Oracle/instantclient_10_2:.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
    Jun 3, 2010 10:57:30 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Jun 3, 2010 10:57:30 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 932 ms
    Jun 3, 2010 10:57:30 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jun 3, 2010 10:57:30 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
    Jun 3, 2010 10:57:30 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory docs
    Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory examples
    Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory host-manager
    Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory manager
    Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory ROOT
    Jun 3, 2010 10:57:31 AM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Jun 3, 2010 10:57:31 AM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Jun 3, 2010 10:57:31 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/20 config=null
    Jun 3, 2010 10:57:31 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1384 ms

    After confirming it basically works, I would normally cd out and move
    the tomcat directory to /usr/local and set CATALINA_HOME to the
    appropriate value.

    HTH!
    Yep works first time on my mac too.


    p


  • Mark Thomas at Jun 4, 2010 at 6:13 pm

    On 04/06/2010 18:16, Sandro Gallo wrote:
    *macmac:apache-tomcat-6.0.26 sandro$ ./bin/catalina.sh debug*
    Why are you doing this?

    ./catalina.sh start

    should be all you need here.

    Mark



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Sandro Gallo at Jun 4, 2010 at 7:00 pm
    Hi,
    I tested.
    In any case, ./catalina start does not work.


    2010/6/4 Mark Thomas <markt@apache.org>
    On 04/06/2010 18:16, Sandro Gallo wrote:
    *macmac:apache-tomcat-6.0.26 sandro$ ./bin/catalina.sh debug*
    Why are you doing this?

    ./catalina.sh start

    should be all you need here.

    Mark



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Mark Thomas at Jun 4, 2010 at 7:23 pm

    On 04/06/2010 19:59, Sandro Gallo wrote:
    Hi,
    I tested.
    In any case, ./catalina start does not work.
    Does not work isn't a very helpful description.

    Mark



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Sandro Gallo at Jun 4, 2010 at 7:41 pm
    Hi,
    In a previous mail, i sent detailed description of the error that gives me
    on startup; but, put the mail back.
    Thank much.

    ------
    Hi,
    thanks for the help but still wrong!
    Again, I downloaded and installed tomcat in my personal folder, but same
    error.
    I do not understand what can be! I've seen that in tests done by you work.
    Further, other information that might be useful (sorry if there are many):

    *macmac:Java sandro$ pwd*

    */Library/Java*

    *macmac:Java sandro$ ls -l*

    *total 8*

    *drwxrwxr-x 2 root admin 68 3 Dic 2009 Extensions*

    *lrwxr-xr-x 1 root admin 48 28 Mar 07:29 Home ->
    /System/Library/Frameworks/JavaVM.framework/Home*

    *macmac:Java sandro$ cd Home*

    *macmac:Home sandro$ cd bin/*

    *macmac:bin sandro$ pwd*

    */Library/Java/Home/bin*

    *macmac:bin sandro$ ls -l*

    *total 3216*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 appletviewer*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 apt*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 extcheck*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 idlj*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jar*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jarsigner*

    *-rwxr-xr-x 1 root wheel 100672 17 Mar 23:57 java*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javac*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javadoc*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javah*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javap*

    *lrwxr-xr-x 1 root wheel 92 28 Mar 07:29 javaws ->
    /System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/bin/javaws
    *

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jconsole*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jdb*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jhat*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jinfo*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jmap*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jps*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jrunscript*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jsadebugd*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jstack*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jstat*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jstatd*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 keytool*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 native2ascii*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 orbd*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 pack200*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 policytool*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 rmic*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 rmid*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 rmiregistry*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 schemagen*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 serialver*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 servertool*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 tnameserv*

    *-rwxr-xr-x 1 root wheel 253744 17 Mar 23:57 unpack200*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 wsgen*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 wsimport*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 xjc*

    *macmac:apache-tomcat-6.0.26 sandro$ pwd*

    */Users/sandro/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 23 sandro staff 782 4 Giu 18:46 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 2 sandro staff 68 9 Mar 18:06 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$ ./bin/catalina.sh debug*

    *Using CATALINA_BASE: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_HOME: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_TMPDIR: /Users/sandro/apache-tomcat-6.0.26/temp*

    *Using JAVA_HOME: /Library/Java/Home*

    *Using CLASSPATH: /Users/sandro/apache-tomcat-6.0.26/bin/bootstrap.jar*

    *Initializing jdb …*

    *> run*

    *run org.apache.catalina.startup.Bootstrap start*

    *Set uncaught java.lang.Throwable*

    *Set deferred uncaught java.lang.Throwable*

    *> *

    *VM Started: *

    *Exception occurred: java.lang.ClassNotFoundException
    (uncaught)"thread=main", java.lang.ClassLoader.loadClass(), line=346 bci=416
    *

    *
    *

    *main[1] list*

    *Source file not found: ClassLoader.java*

    *main[1] stepi*

    *> 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*

    *
    *

    *The application exited*

    *macmac:apache-tomcat-6.0.26 sandro$ *


    I did an additional experiment ( dont know if it is normal):

    *macmac:apache-tomcat-6.0.26 sandro$ pwd*

    */Users/sandro/apache-tomcat-6.0.26*

    *macmac:apache-tomcat-6.0.26 sandro$ ./bin/catalina.sh run*

    *Using CATALINA_BASE: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_HOME: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_TMPDIR: /Users/sandro/apache-tomcat-6.0.26/temp*

    *Using JRE_HOME: /Library/Java/Home*

    *Using CLASSPATH: /Users/sandro/apache-tomcat-6.0.26/bin/bootstrap.jar*

    *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:apache-tomcat-6.0.26 sandro$ ./bin/catalina.sh debug*

    *Using CATALINA_BASE: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_HOME: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_TMPDIR: /Users/sandro/apache-tomcat-6.0.26/temp*

    *Using JAVA_HOME: /Library/Java/Home*

    *Using CLASSPATH: /Users/sandro/apache-tomcat-6.0.26/bin/bootstrap.jar*

    *Initializing jdb ...*

    *> run*

    *run org.apache.catalina.startup.Bootstrap start*

    *Set uncaught java.lang.Throwable*

    *Set deferred uncaught java.lang.Throwable*
    *
    *
    Thanks again.







    2010/6/4 Mark Thomas <markt@apache.org>
    On 04/06/2010 19:59, Sandro Gallo wrote:
    Hi,
    I tested.
    In any case, ./catalina start does not work.
    Does not work isn't a very helpful description.

    Mark



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Pid at Jun 4, 2010 at 8:37 pm

    On 04/06/2010 20:41, Sandro Gallo wrote:
    Hi,
    In a previous mail, i sent detailed description of the error that gives me
    on startup; but, put the mail back.
    Please post the output of the command "env".
    (Ideally without the extra * characters)


    p

    ------
    Hi,
    thanks for the help but still wrong!
    Again, I downloaded and installed tomcat in my personal folder, but same
    error.
    I do not understand what can be! I've seen that in tests done by you work.
    Further, other information that might be useful (sorry if there are many):

    *macmac:Java sandro$ pwd*

    */Library/Java*

    *macmac:Java sandro$ ls -l*

    *total 8*

    *drwxrwxr-x 2 root admin 68 3 Dic 2009 Extensions*

    *lrwxr-xr-x 1 root admin 48 28 Mar 07:29 Home ->
    /System/Library/Frameworks/JavaVM.framework/Home*

    *macmac:Java sandro$ cd Home*

    *macmac:Home sandro$ cd bin/*

    *macmac:bin sandro$ pwd*

    */Library/Java/Home/bin*

    *macmac:bin sandro$ ls -l*

    *total 3216*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 appletviewer*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 apt*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 extcheck*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 idlj*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jar*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jarsigner*

    *-rwxr-xr-x 1 root wheel 100672 17 Mar 23:57 java*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javac*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javadoc*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javah*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javap*

    *lrwxr-xr-x 1 root wheel 92 28 Mar 07:29 javaws ->
    /System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/bin/javaws
    *

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jconsole*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jdb*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jhat*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jinfo*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jmap*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jps*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jrunscript*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jsadebugd*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jstack*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jstat*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jstatd*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 keytool*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 native2ascii*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 orbd*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 pack200*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 policytool*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 rmic*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 rmid*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 rmiregistry*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 schemagen*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 serialver*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 servertool*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 tnameserv*

    *-rwxr-xr-x 1 root wheel 253744 17 Mar 23:57 unpack200*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 wsgen*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 wsimport*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 xjc*

    *macmac:apache-tomcat-6.0.26 sandro$ pwd*

    */Users/sandro/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 23 sandro staff 782 4 Giu 18:46 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 2 sandro staff 68 9 Mar 18:06 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$ ./bin/catalina.sh debug*

    *Using CATALINA_BASE: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_HOME: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_TMPDIR: /Users/sandro/apache-tomcat-6.0.26/temp*

    *Using JAVA_HOME: /Library/Java/Home*

    *Using CLASSPATH: /Users/sandro/apache-tomcat-6.0.26/bin/bootstrap.jar*

    *Initializing jdb …*

    *> run*

    *run org.apache.catalina.startup.Bootstrap start*

    *Set uncaught java.lang.Throwable*

    *Set deferred uncaught java.lang.Throwable*

    *> *

    *VM Started: *

    *Exception occurred: java.lang.ClassNotFoundException
    (uncaught)"thread=main", java.lang.ClassLoader.loadClass(), line=346 bci=416
    *

    *
    *

    *main[1] list*

    *Source file not found: ClassLoader.java*

    *main[1] stepi*

    *> 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*

    *
    *

    *The application exited*

    *macmac:apache-tomcat-6.0.26 sandro$ *


    I did an additional experiment ( dont know if it is normal):

    *macmac:apache-tomcat-6.0.26 sandro$ pwd*

    */Users/sandro/apache-tomcat-6.0.26*

    *macmac:apache-tomcat-6.0.26 sandro$ ./bin/catalina.sh run*

    *Using CATALINA_BASE: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_HOME: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_TMPDIR: /Users/sandro/apache-tomcat-6.0.26/temp*

    *Using JRE_HOME: /Library/Java/Home*

    *Using CLASSPATH: /Users/sandro/apache-tomcat-6.0.26/bin/bootstrap.jar*

    *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:apache-tomcat-6.0.26 sandro$ ./bin/catalina.sh debug*

    *Using CATALINA_BASE: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_HOME: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_TMPDIR: /Users/sandro/apache-tomcat-6.0.26/temp*

    *Using JAVA_HOME: /Library/Java/Home*

    *Using CLASSPATH: /Users/sandro/apache-tomcat-6.0.26/bin/bootstrap.jar*

    *Initializing jdb ...*

    *> run*

    *run org.apache.catalina.startup.Bootstrap start*

    *Set uncaught java.lang.Throwable*

    *Set deferred uncaught java.lang.Throwable*
    *
    *
    Thanks again.







    2010/6/4 Mark Thomas <markt@apache.org>
    On 04/06/2010 19:59, Sandro Gallo wrote:
    Hi,
    I tested.
    In any case, ./catalina start does not work.
    Does not work isn't a very helpful description.

    Mark



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Sandro Gallo at Jun 4, 2010 at 8:49 pm
    ok,

    O_JAVA_HOME=/Library/Java/Home
    TERM_PROGRAM=Apple_Terminal
    TERM=xterm-color
    SHELL=/bin/bash
    CATALINA_HOME=/Library/Tomcat/Home
    TMPDIR=/var/folders/zP/zPtCTEa5HNir0RBjDCm4Pk+++TI/-Tmp-/
    Apple_PubSub_Socket_Render=/tmp/launch-4tqSZI/Render
    TERM_PROGRAM_VERSION=273
    OLDPWD=/Library/Tomcat/Home
    ANT_HOME=/usr/share/ant
    USER=sandro
    GTS_HOME=/usr/local/OpenGTS_2.2.2
    COMMAND_MODE=unix2003
    MYSQL_TCP_PORT=3306
    SSH_AUTH_SOCK=/tmp/launch-RCxgp8/Listeners
    __CF_USER_TEXT_ENCODING=0x1F5:0:4
    PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/mysql/bin:/Library/Java/Home/bin:/Library/Tomcat/Home/bin:/usr/X11/bin
    PWD=/Library/Tomcat
    JAVA_HOME=/Library/Java/Home
    LANG=it_IT.UTF-8
    O_CATALINA_HOME=/Library/Tomcat/Home
    SHLVL=1
    HOME=/Users/sandro
    LOGNAME=sandro
    MYSQL_HOME=/usr/local/mysql
    DISPLAY=/tmp/launch-n0Lo2t/org.x:0
    _=/usr/bin/env

    Thanks

    2010/6/4 Pid <pid@pidster.com>
    On 04/06/2010 20:41, Sandro Gallo wrote:
    Hi,
    In a previous mail, i sent detailed description of the error that gives me
    on startup; but, put the mail back.
    Please post the output of the command "env".
    (Ideally without the extra * characters)


    p

    ------
    Hi,
    thanks for the help but still wrong!
    Again, I downloaded and installed tomcat in my personal folder, but same
    error.
    I do not understand what can be! I've seen that in tests done by you work.
    Further, other information that might be useful (sorry if there are many):
    *macmac:Java sandro$ pwd*

    */Library/Java*

    *macmac:Java sandro$ ls -l*

    *total 8*

    *drwxrwxr-x 2 root admin 68 3 Dic 2009 Extensions*

    *lrwxr-xr-x 1 root admin 48 28 Mar 07:29 Home ->
    /System/Library/Frameworks/JavaVM.framework/Home*

    *macmac:Java sandro$ cd Home*

    *macmac:Home sandro$ cd bin/*

    *macmac:bin sandro$ pwd*

    */Library/Java/Home/bin*

    *macmac:bin sandro$ ls -l*

    *total 3216*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 appletviewer*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 apt*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 extcheck*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 idlj*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jar*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jarsigner*

    *-rwxr-xr-x 1 root wheel 100672 17 Mar 23:57 java*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javac*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javadoc*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javah*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javap*

    *lrwxr-xr-x 1 root wheel 92 28 Mar 07:29 javaws ->
    /System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/bin/javaws
    *

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jconsole*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jdb*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jhat*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jinfo*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jmap*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jps*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jrunscript*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jsadebugd*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jstack*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jstat*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jstatd*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 keytool*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 native2ascii*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 orbd*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 pack200*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 policytool*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 rmic*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 rmid*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 rmiregistry*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 schemagen*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 serialver*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 servertool*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 tnameserv*

    *-rwxr-xr-x 1 root wheel 253744 17 Mar 23:57 unpack200*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 wsgen*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 wsimport*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 xjc*

    *macmac:apache-tomcat-6.0.26 sandro$ pwd*

    */Users/sandro/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 23 sandro staff 782 4 Giu 18:46 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 2 sandro staff 68 9 Mar 18:06 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$ ./bin/catalina.sh debug*

    *Using CATALINA_BASE: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_HOME: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_TMPDIR: /Users/sandro/apache-tomcat-6.0.26/temp*

    *Using JAVA_HOME: /Library/Java/Home*

    *Using CLASSPATH: /Users/sandro/apache-tomcat-6.0.26/bin/bootstrap.jar*

    *Initializing jdb …*

    *> run*

    *run org.apache.catalina.startup.Bootstrap start*

    *Set uncaught java.lang.Throwable*

    *Set deferred uncaught java.lang.Throwable*

    *> *

    *VM Started: *

    *Exception occurred: java.lang.ClassNotFoundException
    (uncaught)"thread=main", java.lang.ClassLoader.loadClass(), line=346 bci=416
    *

    *
    *

    *main[1] list*

    *Source file not found: ClassLoader.java*

    *main[1] stepi*

    *> 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*

    *
    *

    *The application exited*

    *macmac:apache-tomcat-6.0.26 sandro$ *


    I did an additional experiment ( dont know if it is normal):

    *macmac:apache-tomcat-6.0.26 sandro$ pwd*

    */Users/sandro/apache-tomcat-6.0.26*

    *macmac:apache-tomcat-6.0.26 sandro$ ./bin/catalina.sh run*

    *Using CATALINA_BASE: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_HOME: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_TMPDIR: /Users/sandro/apache-tomcat-6.0.26/temp*

    *Using JRE_HOME: /Library/Java/Home*

    *Using CLASSPATH: /Users/sandro/apache-tomcat-6.0.26/bin/bootstrap.jar*

    *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:apache-tomcat-6.0.26 sandro$ ./bin/catalina.sh debug*

    *Using CATALINA_BASE: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_HOME: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_TMPDIR: /Users/sandro/apache-tomcat-6.0.26/temp*

    *Using JAVA_HOME: /Library/Java/Home*

    *Using CLASSPATH: /Users/sandro/apache-tomcat-6.0.26/bin/bootstrap.jar*

    *Initializing jdb ...*

    *> run*

    *run org.apache.catalina.startup.Bootstrap start*

    *Set uncaught java.lang.Throwable*

    *Set deferred uncaught java.lang.Throwable*
    *
    *
    Thanks again.







    2010/6/4 Mark Thomas <markt@apache.org>
    On 04/06/2010 19:59, Sandro Gallo wrote:
    Hi,
    I tested.
    In any case, ./catalina start does not work.
    Does not work isn't a very helpful description.

    Mark



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Sandro Gallo at Jun 5, 2010 at 4:28 pm
    Hi,
    I deleted all the environment variables. After deleting the environment
    variables, this is the output of env command:

    macmac:bin sandro$ env

    TERM_PROGRAM=Apple_Terminal

    TERM=xterm-color

    SHELL=/bin/bash

    TMPDIR=/var/folders/zP/zPtCTEa5HNir0RBjDCm4Pk+++TI/-Tmp-/

    Apple_PubSub_Socket_Render=/tmp/launch-WRvpW0/Render

    TERM_PROGRAM_VERSION=273

    ANT_HOME=/usr/share/ant

    USER=sandro

    GTS_HOME=/usr/local/OpenGTS_2.2.2

    COMMAND_MODE=unix2003

    MYSQL_TCP_PORT=3306

    SSH_AUTH_SOCK=/tmp/launch-TthrkD/Listeners

    __CF_USER_TEXT_ENCODING=0x1F5:0:4

    PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/mysql/bin:/Library/Java/Home/bin:/Library/Tomcat/Home/bin:/usr/X11/bin

    PWD=/Users/sandro/apache-tomcat-6.0.26/bin

    LANG=it_IT.UTF-8

    SHLVL=1

    HOME=/Users/sandro

    LOGNAME=sandro

    MYSQL_HOME=/usr/local/mysql

    DISPLAY=/tmp/launch-R87K3A/org.x:0

    _=/usr/bin/env

    OLDPWD=/Users/sandro/apache-tomcat-6.0.26




    I did other tests with Tomcat installed under my user. So I show you
    what i got:

    macmac:bin sandro$ pwd

    /Users/sandro/apache-tomcat-6.0.26/bin

    macmac:bin sandro$ ./version.sh

    Using CATALINA_BASE: /Users/sandro/apache-tomcat-6.0.26

    Using CATALINA_HOME: /Users/sandro/apache-tomcat-6.0.26

    Using CATALINA_TMPDIR: /Users/sandro/apache-tomcat-6.0.26/temp

    Using JRE_HOME:
    /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home

    Using CLASSPATH: /Users/sandro/apache-tomcat-6.0.26/bin/bootstrap.jar

    Server version: Apache Tomcat/6.0.26

    Server built: March 9 2010 1805

    Server number: 6.0.26.0

    OS Name: Mac OS X

    OS Version: 10.6.3

    Architecture: x86_64

    JVM Version: 1.6.0_17-b04-248

    JVM Vendor: Apple Inc.


    macmac:bin sandro$ ./startup.sh && tail -f ../logs/catalina.out

    Using CATALINA_BASE: /Users/sandro/apache-tomcat-6.0.26

    Using CATALINA_HOME: /Users/sandro/apache-tomcat-6.0.26

    Using CATALINA_TMPDIR: /Users/sandro/apache-tomcat-6.0.26/temp

    Using JRE_HOME:
    /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home

    Using CLASSPATH: /Users/sandro/apache-tomcat-6.0.26/bin/bootstrap.jar

    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

    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


    Output of "./startup.sh" and "./catalina.sh start" is the same, as
    well as the error.
    The log file catalina.out, after the last execution, contains:


    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



    I tried to run other applications in Java, for example, I made a test
    using Eclipse and Android and it works.
    The size of the downloaded tar.gz file is 6123410 bytes.

    What other information can I give you?
    Thank you very much.




    _________________________________________________
    _________________________________________________
    _________________________________________________
    _________________________________________________
    _________________________________________________
    _________________________________________________
    _________________________________________________
    _________________________________________________
    _________________________________________________
    _________________________________________________
    _________________________________________________
    _________________________________________________

    Il 04/06/2010 22.37, Pid ha scritto:
    On 04/06/2010 20:41, Sandro Gallo wrote:

    Hi,
    In a previous mail, i sent detailed description of the error that gives me
    on startup; but, put the mail back.
    Please post the output of the command "env".
    (Ideally without the extra * characters)


    p


    ------
    Hi,
    thanks for the help but still wrong!
    Again, I downloaded and installed tomcat in my personal folder, but same
    error.
    I do not understand what can be! I've seen that in tests done by you work.
    Further, other information that might be useful (sorry if there are many):

    *macmac:Java sandro$ pwd*

    */Library/Java*

    *macmac:Java sandro$ ls -l*

    *total 8*

    *drwxrwxr-x 2 root admin 68 3 Dic 2009 Extensions*

    *lrwxr-xr-x 1 root admin 48 28 Mar 07:29 Home ->
    /System/Library/Frameworks/JavaVM.framework/Home*

    *macmac:Java sandro$ cd Home*

    *macmac:Home sandro$ cd bin/*

    *macmac:bin sandro$ pwd*

    */Library/Java/Home/bin*

    *macmac:bin sandro$ ls -l*

    *total 3216*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 appletviewer*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 apt*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 extcheck*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 idlj*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jar*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jarsigner*

    *-rwxr-xr-x 1 root wheel 100672 17 Mar 23:57 java*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javac*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javadoc*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javah*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 javap*

    *lrwxr-xr-x 1 root wheel 92 28 Mar 07:29 javaws ->
    /System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/bin/javaws
    *

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jconsole*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jdb*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jhat*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jinfo*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jmap*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jps*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jrunscript*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jsadebugd*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jstack*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jstat*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 jstatd*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 keytool*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 native2ascii*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 orbd*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 pack200*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 policytool*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 rmic*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 rmid*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 rmiregistry*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 schemagen*

    *-rwxr-xr-x 1 root wheel 104784 17 Mar 23:57 serialver*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 servertool*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 tnameserv*

    *-rwxr-xr-x 1 root wheel 253744 17 Mar 23:57 unpack200*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 wsgen*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 wsimport*

    *-rwxr-xr-x 1 root wheel 104704 17 Mar 23:57 xjc*

    *macmac:apache-tomcat-6.0.26 sandro$ pwd*

    */Users/sandro/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 23 sandro staff 782 4 Giu 18:46 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 2 sandro staff 68 9 Mar 18:06 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$ ./bin/catalina.sh debug*

    *Using CATALINA_BASE: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_HOME: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_TMPDIR: /Users/sandro/apache-tomcat-6.0.26/temp*

    *Using JAVA_HOME: /Library/Java/Home*

    *Using CLASSPATH: /Users/sandro/apache-tomcat-6.0.26/bin/bootstrap.jar*

    *Initializing jdb …*

    *> run*

    *run org.apache.catalina.startup.Bootstrap start*

    *Set uncaught java.lang.Throwable*

    *Set deferred uncaught java.lang.Throwable*

    *> *

    *VM Started: *

    *Exception occurred: java.lang.ClassNotFoundException
    (uncaught)"thread=main", java.lang.ClassLoader.loadClass(), line=346 bci=416
    *

    *
    *

    *main[1] list*

    *Source file not found: ClassLoader.java*

    *main[1] stepi*

    *> 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*

    *
    *

    *The application exited*

    *macmac:apache-tomcat-6.0.26 sandro$ *


    I did an additional experiment ( dont know if it is normal):

    *macmac:apache-tomcat-6.0.26 sandro$ pwd*

    */Users/sandro/apache-tomcat-6.0.26*

    *macmac:apache-tomcat-6.0.26 sandro$ ./bin/catalina.sh run*

    *Using CATALINA_BASE: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_HOME: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_TMPDIR: /Users/sandro/apache-tomcat-6.0.26/temp*

    *Using JRE_HOME: /Library/Java/Home*

    *Using CLASSPATH: /Users/sandro/apache-tomcat-6.0.26/bin/bootstrap.jar*

    *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:apache-tomcat-6.0.26 sandro$ ./bin/catalina.sh debug*

    *Using CATALINA_BASE: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_HOME: /Users/sandro/apache-tomcat-6.0.26*

    *Using CATALINA_TMPDIR: /Users/sandro/apache-tomcat-6.0.26/temp*

    *Using JAVA_HOME: /Library/Java/Home*

    *Using CLASSPATH: /Users/sandro/apache-tomcat-6.0.26/bin/bootstrap.jar*

    *Initializing jdb ...*

    *> run*

    *run org.apache.catalina.startup.Bootstrap start*

    *Set uncaught java.lang.Throwable*

    *Set deferred uncaught java.lang.Throwable*
    *
    *
    Thanks again.







    2010/6/4 Mark Thomas<markt@apache.org>

    On 04/06/2010 19:59, Sandro Gallo wrote:

    Hi,
    I tested.
    In any case, ./catalina start does not work.
    Does not work isn't a very helpful description.

    Mark



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org

  • Konstantin Kolinko at Jun 5, 2010 at 6:09 pm
    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
  • Sandro Gallo at Jun 7, 2010 at 1:07 pm
    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
  • Sandro Gallo at Jun 8, 2010 at 4:04 pm
    Hi,
    Is there some solution to my problem with TOMCAT?
    I hope so, otherwise I don't know how to proceed.
    Thank you very much.
    Best Regards


    2010/6/7 Sandro Gallo <sandro.gallo.81@gmail.com>
    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
  • Caldarale, Charles R at Jun 8, 2010 at 4:41 pm

    From: Sandro Gallo
    Subject: Re: Error on startup catalina

    Is there some solution to my problem with TOMCAT?
    The problem is that no one else is experiencing what you're seeing, and no one can reproduce the problem. There must be something subtly wrong with your specific environment or the way you're unpacking the .tar file. (You are using a fresh download from tomcat.apache.org, aren't you?)

    - Chuck


    THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Sandro Gallo at Jun 8, 2010 at 5:08 pm
    Ok,
    thank you for your answer.
    Yes, every time, I downloaded new package. I try also with 5.5: same
    problem.

    So, I'll try again to download and unpack the .tart file.
    Please, last question (I hope). I do double click in finder to unpack the
    tar file.
    What is the command from terminal?

    To install Tomcat, I follow this two guide:
    http://www.malisphoto.com/tips/tomcatonosx.html
    http://wiki.apache.org/tomcat/TomcatOnMacOS



    Is there any other information that might come in handy?
    I apologize for all these problems.
    If I fix problem, I'll let you know.
    Thank you very much




    2010/6/8 Caldarale, Charles R <Chuck.Caldarale@unisys.com>
    From: Sandro Gallo
    Subject: Re: Error on startup catalina

    Is there some solution to my problem with TOMCAT?
    The problem is that no one else is experiencing what you're seeing, and no
    one can reproduce the problem. There must be something subtly wrong with
    your specific environment or the way you're unpacking the .tar file. (You
    are using a fresh download from tomcat.apache.org, aren't you?)

    - Chuck


    THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
    MATERIAL and is thus for use only by the intended recipient. If you received
    this in error, please contact the sender and delete the e-mail and its
    attachments from all computers.


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Pid at Jun 8, 2010 at 7:14 pm

    On 08/06/2010 18:07, Sandro Gallo wrote:
    Ok,
    thank you for your answer.
    Yes, every time, I downloaded new package. I try also with 5.5: same
    problem.

    So, I'll try again to download and unpack the .tart file.
    Please, last question (I hope). I do double click in finder to unpack the
    tar file.
    Mmm. I'm not sure that sounds like a good idea.
    What is the command from terminal?
    tar -zxvf tomcat-version.tar.gz
    To install Tomcat, I follow this two guide:
    http://www.malisphoto.com/tips/tomcatonosx.html
    http://wiki.apache.org/tomcat/TomcatOnMacOS
    I've never needed set JAVA_HOME on OSX. I don't know why people keep
    saying you do.
    Is there any other information that might come in handy?
    If the above doesn't work, then can you create a new user account in
    case you've got something local to your user environment?


    p

    I apologize for all these problems.
    If I fix problem, I'll let you know.
    Thank you very much




    2010/6/8 Caldarale, Charles R <Chuck.Caldarale@unisys.com>
    From: Sandro Gallo
    Subject: Re: Error on startup catalina

    Is there some solution to my problem with TOMCAT?
    The problem is that no one else is experiencing what you're seeing, and no
    one can reproduce the problem. There must be something subtly wrong with
    your specific environment or the way you're unpacking the .tar file. (You
    are using a fresh download from tomcat.apache.org, aren't you?)

    - Chuck


    THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
    MATERIAL and is thus for use only by the intended recipient. If you received
    this in error, please contact the sender and delete the e-mail and its
    attachments from all computers.


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Konstantin Kolinko at Jun 8, 2010 at 7:11 pm

    2010/6/7 Sandro Gallo <sandro.gallo.81@gmail.com>:
    Hi,
    I performed the steps suggested.
    Below are the results:

    1) I have all search permissions for specified paths.
    And for '/' and for '/Users' as well?

    2) Please check, that your '/' (system root) directory does not have
    some odd directories like 'org'. I have read once about problems
    caused by that, but I do not remember what that problem was. It would
    be strange if that were a problem. Just trying all straws.

    3) Latest Java as offered by Sun/Oracle now is 1.6.0_20 (6u20). I do
    not know if that is available for Mac, but you may try updating. (I do
    not own a Mac, so I do not really know how that is done).

    If there are system means to verify your Java installation, or to
    reinstall it, you may try them as well.

    4) You may compare your Java installation with some one else's. There
    might be some extra libraries added there, even if I doubt that.

    5)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    I think that the code there is

    Resource res = ucp.getResource(path, false);
    if (res != null) {
    ...
    } else {
    throw new ClassNotFoundException(name); // line 200 in JDK 6u06
    }

    I suppose that getResource(...) returned null somehow. Do not know
    what might have caused it.

    I think that for further tests we will need to write some Java code
    and see if that code works and how.

    6)
    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
    For the next test you may unpack both bootstrap.jar and
    tomcat-juli.jar into the same new empty directory and specify that
    directory as the value of -classpath argument.

    To unpack them, use a zip archiver, or jar -xf filename.
    "jar -xf" will unpack the specified file into the current directory.
    http://java.sun.com/javase/6/docs/technotes/tools/solaris/jar.html


    7) You may try apache-tomcat-6.0.26.zip It contains the same files as tar.gz.

    Best regards,
    Konstantin Kolinko

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Konstantin Kolinko at Jun 4, 2010 at 7:45 pm

    2010/6/4 Sandro Gallo <sandro.gallo.81@gmail.com>:
    Hi,
    I tested.
    In any case, ./catalina start does not work.
    You wrote once:
    Same if i run sudo ./startup.sh && tail -f ../logs/catalina.out.
    After trying to run Tomcat as root you must check permissions on the
    files in /logs, /work, /webapps and /conf/Catalina, i.e. that those
    are writable.

    Please
    1. Remove all files from /logs and /work
    2. Try to start with "catalina.sh start"
    3. Post a complete logs/catalina.out here

    By the way,
    1. are you able to run any other java applications?
    2. apache-tomcat-6.0.26.tar.gz should be 6123410 bytes and its md5sum is
    f9eafa9bfd620324d1270ae8f09a8c89 *apache-tomcat-6.0.26.tar.gz

    Best regards,
    Konstantin Kolinko

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Konstantin Kolinko at Jun 4, 2010 at 1:38 pm

    2010/6/3 Sandro Gallo <sandro.gallo.81@gmail.com>:
    Using JRE_HOME: /Library/Java/Home
    2010/6/3 Sandro Gallo <sandro.gallo.81@gmail.com>:
    java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248)
    Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)
    The version of Java is already on Mac.
    Trivial question: it it the same Java? I mean, what is
    /Library/Java/Home/bin/java -version
    ?

    The other posters wrote the following
    Using JRE_HOME:
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home

    Best regards,
    Konstantin Kolinko

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Pid at Jun 3, 2010 at 10:43 am

    On 02/06/2010 22:33, Sandro Gallo wrote:
    Hi,
    Using recently Tomcat.
    So far I have used it on a Windows XP machine, and everything went well.
    I decided to install it on a machine Mac, Mac OS X Snow Leopard, but can
    not boot.
    I do not know how to solve the problem, and I need to use Tomcat.
    Please, help me.
    Here are some info on startup:

    *Using CATALINA_BASE: /Library/Tomcat/Home
    Using CATALINA_HOME: /Library/Tomcat/Home
    Using CATALINA_TMPDIR: /Library/Tomcat/Home/temp
    Using JRE_HOME: /Library/Java/Home
    Using CLASSPATH: /Library/Tomcat/Home/bin/bootstrap.jar
    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
    *

    Thanks in advance.
    Did you need to authenticate to install files in /Library?

    Which user are you using when you attempt to start Tomcat?


    p
  • Sandro Gallo at Jun 3, 2010 at 11:14 am
    Hi,
    Tomcat folder under /Library was created using: sudo mkdir ...
    The files in the folder $CATALINA_HOME/bin have the permissions to be
    executed by all (ugo).
    My user is part of the group admin - admin:admin and sandro:admin.
    I also removed attribute '@', that in Snow Leopard identifies the files
    downloaded from the Internet as potentially dangerous.
    Using my user to attempt to start Tomcat.
    Thank you for taking the time to respond.
    Sandro

    Il 03/06/2010 12.42, Pid ha scritto:
    On 02/06/2010 22:33, Sandro Gallo wrote:

    Hi,
    Using recently Tomcat.
    So far I have used it on a Windows XP machine, and everything went well.
    I decided to install it on a machine Mac, Mac OS X Snow Leopard, but can
    not boot.
    I do not know how to solve the problem, and I need to use Tomcat.
    Please, help me.
    Here are some info on startup:

    *Using CATALINA_BASE: /Library/Tomcat/Home
    Using CATALINA_HOME: /Library/Tomcat/Home
    Using CATALINA_TMPDIR: /Library/Tomcat/Home/temp
    Using JRE_HOME: /Library/Java/Home
    Using CLASSPATH: /Library/Tomcat/Home/bin/bootstrap.jar
    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
    *

    Thanks in advance.
    Did you need to authenticate to install files in /Library?

    Which user are you using when you attempt to start Tomcat?


    p

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriestomcat
postedJun 2, '10 at 9:33p
activeJun 8, '10 at 7:14p
posts27
users7
websitetomcat.apache.org
irc#tomcat

People

Translate

site design / logo © 2021 Grokbase