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 Fri, 04 Jun 2010 17:16:24 GMT
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, Pid<pid@pidster.com>  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
>
>
>
>    


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