tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandro Gallo <sandro.gallo...@gmail.com>
Subject Re: Error on startup catalina
Date Thu, 03 Jun 2010 16:10:35 GMT
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 <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
>
>

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