Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7D481C03C for ; Tue, 19 Jun 2012 15:41:24 +0000 (UTC) Received: (qmail 60714 invoked by uid 500); 19 Jun 2012 15:41:21 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 60665 invoked by uid 500); 19 Jun 2012 15:41:21 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 60655 invoked by uid 99); 19 Jun 2012 15:41:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2012 15:41:21 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.96] (HELO qmta09.westchester.pa.mail.comcast.net) (76.96.62.96) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2012 15:41:15 +0000 Received: from omta22.westchester.pa.mail.comcast.net ([76.96.62.73]) by qmta09.westchester.pa.mail.comcast.net with comcast id QB3b1j0021ap0As59FgutY; Tue, 19 Jun 2012 15:40:54 +0000 Received: from Christophers-MacBook-Pro.local ([69.143.109.145]) by omta22.westchester.pa.mail.comcast.net with comcast id QFgu1j00Q38FjT13iFgu6W; Tue, 19 Jun 2012 15:40:55 +0000 Message-ID: <4FE09D84.1020906@christopherschultz.net> Date: Tue, 19 Jun 2012 11:40:52 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: apache-tomcat-7.0.27 start up errors on Mac OX "Lion" References: In-Reply-To: X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Samuel, On 6/18/12 11:34 PM, Samuel V Green III wrote: > I followed directions for install and config here: > http://wolfpaulus.com/journal/mac/tomcat7 I use Tomcat 7.0.27 on my Mac every day. I'm not sure why you needed an "installation guide" when the instructions are so darned simple: 1. Download tarball 2. Un-tar tarball Done. Oh, you want to actually /run/ it? That's easy: $ bin/startup.sh You don't need any sudo access or anything like that. > and here: > > http://www.janhellevik.no/blog/?p=323 > > When attempting to start Tomcat I get the following error…. ( I've > googled the _ _ it out of this error and can't find a fix. > > sudo $CATALINA_HOME/bin/catalina.sh run You really shouldn't run Tomcat as root. > Password: Using CATALINA_BASE: /Library/Tomcat Using > CATALINA_HOME: /Library/Tomcat Using CATALINA_TMPDIR: > /Library/Tomcat/temp Using JRE_HOME: > /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home > > Using CLASSPATH: /Library/Tomcat/bin/bootstrap.jar:/Library/Tomcat/bin/tomcat-juli.jar > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/catalina/startup/Bootstrap Caused by: > java.lang.ClassNotFoundException: > org.apache.catalina.startup.Bootstrap at > java.net.URLClassLoader$1.run(URLClassLoader.java:202) at > java.security.AccessController.doPrivileged(Native Method) at > java.net.URLClassLoader.findClass(URLClassLoader.java:190) at > java.lang.ClassLoader.loadClass(ClassLoader.java:306) at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at > java.lang.ClassLoader.loadClass(ClassLoader.java:247) > > When I attempt start this way: > > sudo /Library/Tomcat/bin/startup.sh Password: Using CATALINA_BASE: > /Library/Tomcat Using CATALINA_HOME: /Library/Tomcat Using > CATALINA_TMPDIR: /Library/Tomcat/temp Using JRE_HOME: > /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home > > Using CLASSPATH: /Library/Tomcat/bin/bootstrap.jar:/Library/Tomcat/bin/tomcat-juli.jar > > I get no errors, but http://localhost:8080 does not connect. That's odd that explicitly-specifying the path to Tomcat instead of using the CATALINA_HOME environment variable changes anything. Do this: 1. Stop Tomcat (use 'ps' or 'Activity Monitor' to make sure it's dead) 2. Remove all log files from $CATALINA_HOME/logs/* 3. Start Tomcat using "startup.sh" 4. Post-back the entire contents of $CATALINA_HOME/logs/catalina.out 5. Also post the non-comment portions of your conf/server.xml file - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/gnYQACgkQ9CaO5/Lv0PC6IwCgmAkO/IZaejjEx8Rg4CdG8557 zt8AoITGZrnbIp/+KMMOyKnR2dosiS+C =m/X+ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org