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 Sat, 05 Jun 2010 16:27:24 GMT
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
>>>
>>>
>>>        
>>      
>
>    


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