Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
- Original Message - /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Not sure? I have sub directories: bin bundle lib man Try running $JAVA_HOME/bin/java -version. Dan the install of tomcat at /usr/local is listed user root and owner wheel The permissions at the symbolic link of /Library/Tomcat are user myusr name and owner wheel. So I have to either change permission to match at the symbolic link to the /usr/local install or vise versa ? Thanks, Samuel. On Jun 19, 2012, at 6:57 PM, Caldarale, Charles R wrote: From: Samuel V Green III [mailto:macun...@gmail.com] Subject: Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720) Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode) That looks quite reasonable. Can you tell if that's really what's installed at: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home (Wouldn't normally happen on a Mac, but on Linux it's not uncommon to have several JVMs installed, and you can end up using a different one than you expect.) Is there possibly a permissions problem - trying to run Tomcat under a different userid than what the installation was done with? - 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
- Original Message - From: Samuel V Green III [mailto:macun...@gmail.com] Subject: Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion I was trying to follow the instructions here: http://wolfpaulus.com/journal/mac/tomcat7 I would strongly recommend (as did Chris) that you _not_ follow someone else's questionable installation instructions, but instead just use the ones from the Tomcat website. Don't make your life more complicated than it needs to be. Remove whatever you've done to install Tomcat, download a fresh .tar.gz file (7.0.28 is now available), and just do what Chris said: 1. Download tarball 2. Un-tar tarball $ bin/startup.sh - Chuck +1 Is there a reason you are trying to install to /Library/Tomcat and /usr/local? or is it just because that is what the tutorial you found is doing? If you're doing development, it's easy enough to just run Tomcat from your user directory. Dan 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
Thanks guys , I'll try a fresh install tonight and attempt to run JUST from my /usr/local and report back to the list my results. Samuel. On Wed, Jun 20, 2012 at 5:30 AM, Daniel Mikusa dmik...@vmware.com wrote: - Original Message - From: Samuel V Green III [mailto:macun...@gmail.com] Subject: Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion I was trying to follow the instructions here: http://wolfpaulus.com/journal/mac/tomcat7 I would strongly recommend (as did Chris) that you _not_ follow someone else's questionable installation instructions, but instead just use the ones from the Tomcat website. Don't make your life more complicated than it needs to be. Remove whatever you've done to install Tomcat, download a fresh .tar.gz file (7.0.28 is now available), and just do what Chris said: 1. Download tarball 2. Un-tar tarball $ bin/startup.sh - Chuck +1 Is there a reason you are trying to install to /Library/Tomcat and /usr/local? or is it just because that is what the tutorial you found is doing? If you're doing development, it's easy enough to just run Tomcat from your user directory. Dan 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 6/19/12 9:09 PM, Caldarale, Charles R wrote: From: Samuel V Green III [mailto:macun...@gmail.com] Subject: Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion issued command export Catalina_HOME=/Library/Tomcat That's not useful (or necessary). The variable name is CATALINA_HOME, not Catalina_HOME (case matters). +1 Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home That looks suspicious, but I don't have a Mac at hand to compare with. Exactly what JVM version do you have installed? Can it run other Java programs? $ which java /usr/bin/java You don't need to set JRE_HOME or JAVA_HOME. Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap It's looking like your JVM installation might not be quite right... He's likely using the JVM from Apple, which is currently: $ java -version java version 1.6.0_33 Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720) Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode) - -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/iSa4ACgkQ9CaO5/Lv0PACJgCeLNDeFqlioFbrldaCv3rsLA64 91gAoIYvqqdZNqIuiczcNZ5zpPFQ1XIi =IbCz -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Samuel, On 6/19/12 10:20 PM, Samuel V Green III wrote: I was trying to follow the instructions here: http://wolfpaulus.com/journal/mac/tomcat7 where it mentions Change ownership of the /Libaray/Tomcat folder hierarchy: sudo chown -R your_username /Library/Tomcat That might not do anything, since /Library/Tomcat is a symlink. $ sudo chown -R your_username /Library/Tomcat/ ...might work better (note the trailing / which causes the symlink to be followed, rather than just changing the permissions on the link itself). Do you really even need that symlink? So I'm wondering if I need to change chown the /usr/local/tomcatversion directory to match my user id instead of root ? Here's my setup: $ echo $CATALINA_HOME /usr/local/apache-tomcat-7.0.27 $ ls -l $CATALINA_HOME total 168 - -rw-r--r-- 1 root wheel 56797 Mar 31 10:45 LICENSE - -rw-r--r-- 1 root wheel 1192 Mar 31 10:45 NOTICE - -rw-r--r-- 1 root wheel 8826 Mar 31 10:45 RELEASE-NOTES - -rw-r--r-- 1 root wheel 10597 Mar 31 10:45 RUNNING.txt drwxr-xr-x 26 root wheel884 Apr 2 17:46 bin drwxr-xr-x 9 root wheel306 Mar 31 10:45 conf drwxr-xr-x 22 root wheel748 Apr 3 10:05 lib drwxr-xr-x 2 root wheel 68 Mar 31 10:44 logs drwxr-xr-x 3 root wheel102 Mar 31 10:44 temp drwxr-xr-x 7 root wheel238 Mar 31 10:44 webapps drwxr-xr-x 2 root wheel 68 Mar 31 10:44 work $ echo $CATALINA_BASE /home/chris/.webapps/mywebapp $ ls -l $CATALINA_BASE total 0 drwxr-xr-x 5 chris staff 170 May 11 15:21 conf drwxr-xr-x 16 chris staff 544 Jun 19 12:20 logs drwxr-xr-x 2 chris staff 68 May 11 15:21 temp drwxr-xr-x 4 chris staff 136 May 11 15:21 webapps drwxr-xr-x 3 chris staff 102 May 11 15:21 work conf/ contains server.xml and web.xml. webapps/ contains (surprise) my webapps. work/, logs/, and temp/ are empty before initial launch. With both CATALINA_HOME and CATALINA_BASE set, I can run $CATALINA_HOME/bin/startup.sh and everything runs without any issues. No sudo. No root. All is well. - -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/iS1YACgkQ9CaO5/Lv0PB1pACfdmp5qyeUxPHC9JDJQZMJx9LF w8EAn3at7WGtdI/ZEWmQWGoO/Ditse9w =N9/r -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Samuel, On 6/20/12 11:55 AM, Samuel Green wrote: Thanks guys , I'll try a fresh install tonight and attempt to run JUST from my /usr/local and report back to the list my results. Just install it into ~/apache-tomcat-7.0.27 and call it a day. You won't have to worry about file permissions or any of that stuff because a) you will untar it as yourself and b) you will run it as yourself. Just be aware that he effective uid must have wrx access to work/, logs/, and probably temp/ That's why it's best to run it as yourself. Also, not running as root gives you a significant security boost because in the unlikely event of a Tomcat vulnerability, only your account can be trashed, not the entire machine. - -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/iS+0ACgkQ9CaO5/Lv0PClbgCcDXLBC+IeobtWd9igtseYCxCV RcEAnRgtHnxpOxpSqOpVLW0Rq2cF54BY =ZtN6 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
This afternoon I did a reinstall at /usr/local and still am not able to get it started. No system links this time. Interestingly enough I had to create a log directory. Package did not include one. Easy enough. I'll try your new install recommend, but I still like to know why it won't load from /usr /local where others apparently have no problem. Thanks again ! Samuel. On Wed, Jun 20, 2012 at 3:17 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Samuel, On 6/20/12 11:55 AM, Samuel Green wrote: Thanks guys , I'll try a fresh install tonight and attempt to run JUST from my /usr/local and report back to the list my results. Just install it into ~/apache-tomcat-7.0.27 and call it a day. You won't have to worry about file permissions or any of that stuff because a) you will untar it as yourself and b) you will run it as yourself. Just be aware that he effective uid must have wrx access to work/, logs/, and probably temp/ That's why it's best to run it as yourself. Also, not running as root gives you a significant security boost because in the unlikely event of a Tomcat vulnerability, only your account can be trashed, not the entire machine. - -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/iS+0ACgkQ9CaO5/Lv0PClbgCcDXLBC+IeobtWd9igtseYCxCV RcEAnRgtHnxpOxpSqOpVLW0Rq2cF54BY =ZtN6 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
On Wed, Jun 20, 2012 at 3:28 PM, Samuel Green macun...@gmail.com wrote: This afternoon I did a reinstall at /usr/local and still am not able to get it started. 15:41 ~/Downloads $ tar xfz apache-tomcat-7.0.28.tar.gz 15:42 ~/Downloads $ sudo mv apache-tomcat-7.0.28/ /usr/local Password: 15:42 ~/Downloads $ cd /usr/local 15:42 /usr/local (master)$ cd apache-tomcat-7.0.28/ 15:42 /usr/local/apache-tomcat-7.0.28 (master)$ export CATALINA_HOME=`pwd` 15:43 /usr/local/apache-tomcat-7.0.28 (master)$ $CATALINA_HOME/bin/catalina.sh run Using CATALINA_BASE: /usr/local/apache-tomcat-7.0.28 Using CATALINA_HOME: /usr/local/apache-tomcat-7.0.28 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-7.0.28/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /usr/local/apache-tomcat-7.0.28/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.28/bin/tomcat-juli.jar Jun 20, 2012 3:43:18 PM 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: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java Jun 20, 2012 3:43:19 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-bio-8080] . etc. . So with the new install, what does your startup log look like? -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
So I have my new install on /usr/local/tomcat (renamed 7.0.28) Following your instructions …. same old problem: Startup output: Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/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) I have /usr/local/tomcat/bin in my .bash_profile path and when I issue: sudo startup.sh I get the following output: Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar My catalina.out reads: 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) So still no start. On Jun 20, 2012, at 3:50 PM, Hassan Schroeder wrote: On Wed, Jun 20, 2012 at 3:28 PM, Samuel Green macun...@gmail.com wrote: This afternoon I did a reinstall at /usr/local and still am not able to get it started. 15:41 ~/Downloads $ tar xfz apache-tomcat-7.0.28.tar.gz 15:42 ~/Downloads $ sudo mv apache-tomcat-7.0.28/ /usr/local Password: 15:42 ~/Downloads $ cd /usr/local 15:42 /usr/local (master)$ cd apache-tomcat-7.0.28/ 15:42 /usr/local/apache-tomcat-7.0.28 (master)$ export CATALINA_HOME=`pwd` 15:43 /usr/local/apache-tomcat-7.0.28 (master)$ $CATALINA_HOME/bin/catalina.sh run Using CATALINA_BASE: /usr/local/apache-tomcat-7.0.28 Using CATALINA_HOME: /usr/local/apache-tomcat-7.0.28 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-7.0.28/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /usr/local/apache-tomcat-7.0.28/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.28/bin/tomcat-juli.jar Jun 20, 2012 3:43:18 PM 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: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java Jun 20, 2012 3:43:19 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-bio-8080] . etc. . So with the new install, what does your startup log look like? -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
Feeling like an idiot, but since I'm downloading apache-tomcat-7.0.28-src… Do I have to do a build first ? Thanks, Samuel. On Jun 20, 2012, at 3:50 PM, Hassan Schroeder wrote: On Wed, Jun 20, 2012 at 3:28 PM, Samuel Green macun...@gmail.com wrote: This afternoon I did a reinstall at /usr/local and still am not able to get it started. 15:41 ~/Downloads $ tar xfz apache-tomcat-7.0.28.tar.gz 15:42 ~/Downloads $ sudo mv apache-tomcat-7.0.28/ /usr/local Password: 15:42 ~/Downloads $ cd /usr/local 15:42 /usr/local (master)$ cd apache-tomcat-7.0.28/ 15:42 /usr/local/apache-tomcat-7.0.28 (master)$ export CATALINA_HOME=`pwd` 15:43 /usr/local/apache-tomcat-7.0.28 (master)$ $CATALINA_HOME/bin/catalina.sh run Using CATALINA_BASE: /usr/local/apache-tomcat-7.0.28 Using CATALINA_HOME: /usr/local/apache-tomcat-7.0.28 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-7.0.28/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /usr/local/apache-tomcat-7.0.28/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.28/bin/tomcat-juli.jar Jun 20, 2012 3:43:18 PM 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: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java Jun 20, 2012 3:43:19 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-bio-8080] . etc. . So with the new install, what does your startup log look like? -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
Something screwy in your current environment. For a quick test: Create a new user Unpack tomcat into you user directory (don't mess around with /usr/local) start it up (not as root) Post the result. Oz On 21/06/2012, at 10:45 AM, Samuel V Green III wrote: So I have my new install on /usr/local/tomcat (renamed 7.0.28) Following your instructions …. same old problem: Startup output: Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/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) I have /usr/local/tomcat/bin in my .bash_profile path and when I issue: sudo startup.sh I get the following output: Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar My catalina.out reads: 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) So still no start. On Jun 20, 2012, at 3:50 PM, Hassan Schroeder wrote: On Wed, Jun 20, 2012 at 3:28 PM, Samuel Green macun...@gmail.com wrote: This afternoon I did a reinstall at /usr/local and still am not able to get it started. 15:41 ~/Downloads $ tar xfz apache-tomcat-7.0.28.tar.gz 15:42 ~/Downloads $ sudo mv apache-tomcat-7.0.28/ /usr/local Password: 15:42 ~/Downloads $ cd /usr/local 15:42 /usr/local (master)$ cd apache-tomcat-7.0.28/ 15:42 /usr/local/apache-tomcat-7.0.28 (master)$ export CATALINA_HOME=`pwd` 15:43 /usr/local/apache-tomcat-7.0.28 (master)$ $CATALINA_HOME/bin/catalina.sh run Using CATALINA_BASE: /usr/local/apache-tomcat-7.0.28 Using CATALINA_HOME: /usr/local/apache-tomcat-7.0.28 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-7.0.28/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /usr/local/apache-tomcat-7.0.28/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.28/bin/tomcat-juli.jar Jun 20, 2012 3:43:18 PM 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: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java Jun 20, 2012 3:43:19 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-bio-8080] . etc. . So with the new install, what does your startup log look like? -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
Yes. Save yourself some pain. Download the binary distribution unless you need it for a specific reason. Oz On 21/06/2012, at 10:57 AM, Samuel V Green III wrote: Feeling like an idiot, but since I'm downloading apache-tomcat-7.0.28-src… Do I have to do a build first ? Thanks, Samuel. On Jun 20, 2012, at 3:50 PM, Hassan Schroeder wrote: On Wed, Jun 20, 2012 at 3:28 PM, Samuel Green macun...@gmail.com wrote: This afternoon I did a reinstall at /usr/local and still am not able to get it started. 15:41 ~/Downloads $ tar xfz apache-tomcat-7.0.28.tar.gz 15:42 ~/Downloads $ sudo mv apache-tomcat-7.0.28/ /usr/local Password: 15:42 ~/Downloads $ cd /usr/local 15:42 /usr/local (master)$ cd apache-tomcat-7.0.28/ 15:42 /usr/local/apache-tomcat-7.0.28 (master)$ export CATALINA_HOME=`pwd` 15:43 /usr/local/apache-tomcat-7.0.28 (master)$ $CATALINA_HOME/bin/catalina.sh run Using CATALINA_BASE: /usr/local/apache-tomcat-7.0.28 Using CATALINA_HOME: /usr/local/apache-tomcat-7.0.28 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-7.0.28/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /usr/local/apache-tomcat-7.0.28/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.28/bin/tomcat-juli.jar Jun 20, 2012 3:43:18 PM 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: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java Jun 20, 2012 3:43:19 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-bio-8080] . etc. . So with the new install, what does your startup log look like? -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
So I created a new user and same issues. I can't download a binary distribution…, I'm running Mac OS Lion and as far as I could see there was no binary distribution ? Ugg.. Must be a way to get Tomcat running ! Thanks, Samuel. On Jun 20, 2012, at 6:04 PM, Oguz Kologlu wrote: Yes. Save yourself some pain. Download the binary distribution unless you need it for a specific reason. Oz On 21/06/2012, at 10:57 AM, Samuel V Green III wrote: Feeling like an idiot, but since I'm downloading apache-tomcat-7.0.28-src… Do I have to do a build first ? Thanks, Samuel. On Jun 20, 2012, at 3:50 PM, Hassan Schroeder wrote: On Wed, Jun 20, 2012 at 3:28 PM, Samuel Green macun...@gmail.com wrote: This afternoon I did a reinstall at /usr/local and still am not able to get it started. 15:41 ~/Downloads $ tar xfz apache-tomcat-7.0.28.tar.gz 15:42 ~/Downloads $ sudo mv apache-tomcat-7.0.28/ /usr/local Password: 15:42 ~/Downloads $ cd /usr/local 15:42 /usr/local (master)$ cd apache-tomcat-7.0.28/ 15:42 /usr/local/apache-tomcat-7.0.28 (master)$ export CATALINA_HOME=`pwd` 15:43 /usr/local/apache-tomcat-7.0.28 (master)$ $CATALINA_HOME/bin/catalina.sh run Using CATALINA_BASE: /usr/local/apache-tomcat-7.0.28 Using CATALINA_HOME: /usr/local/apache-tomcat-7.0.28 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-7.0.28/temp Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Using CLASSPATH: /usr/local/apache-tomcat-7.0.28/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.28/bin/tomcat-juli.jar Jun 20, 2012 3:43:18 PM 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: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java Jun 20, 2012 3:43:19 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-bio-8080] . etc. . So with the new install, what does your startup log look like? -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
On Wed, Jun 20, 2012 at 6:29 PM, Samuel V Green III macun...@gmail.com wrote: I can't download a binary distribution…, I'm running Mac OS Lion and as far as I could see there was no binary distribution ? 15:41 ~/Downloads $ tar xfz apache-tomcat-7.0.28.tar.gz Did you see what I downloaded? Get that. H* -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
That's exactly what I've been downloading, but when unpacking the tar.gz it unpacks as YadaYada-src I just ran java -v at my terminal and get this message : Unable to locate an executable at /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/bin/java (-1) So some how my system is messed up and have no idea how. the Java -v command produced results yesterday ? Doing some googling now for a fix. Samuel. On Jun 20, 2012, at 6:35 PM, Hassan Schroeder wrote: On Wed, Jun 20, 2012 at 6:29 PM, Samuel V Green III macun...@gmail.com wrote: I can't download a binary distribution…, I'm running Mac OS Lion and as far as I could see there was no binary distribution ? 15:41 ~/Downloads $ tar xfz apache-tomcat-7.0.28.tar.gz Did you see what I downloaded? Get that. H* -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
If you've done an update you may now have java 1.7 installed (and maybe 1.6 removed) Oz On 21/06/2012, at 11:46 AM, Samuel V Green III wrote: That's exactly what I've been downloading, but when unpacking the tar.gz it unpacks as YadaYada-src I just ran java -v at my terminal and get this message : Unable to locate an executable at /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/bin/java (-1) So some how my system is messed up and have no idea how. the Java -v command produced results yesterday ? Doing some googling now for a fix. Samuel. On Jun 20, 2012, at 6:35 PM, Hassan Schroeder wrote: On Wed, Jun 20, 2012 at 6:29 PM, Samuel V Green III macun...@gmail.com wrote: I can't download a binary distribution…, I'm running Mac OS Lion and as far as I could see there was no binary distribution ? 15:41 ~/Downloads $ tar xfz apache-tomcat-7.0.28.tar.gz Did you see what I downloaded? Get that. H* -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: apache-tomcat-7.0.27 start up errors on Mac OX Lion
From: Samuel V Green III [mailto:macun...@gmail.com] Subject: Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion That's exactly what I've been downloading, but when unpacking the tar.gz it unpacks as YadaYada-src Then clearly you're downloading the source archive, not the binary one. Download the binary, untar, run. You don't need the source, you don't need to build it. - 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
Try this link. It's a tomcat mirror for the binary distribution: http://mirror.overthewire.com.au/pub/apache/tomcat/tomcat-7/v7.0.28/bin/apache-tomcat-7.0.28.tar.gz On 21/06/2012, at 11:46 AM, Samuel V Green III wrote: That's exactly what I've been downloading, but when unpacking the tar.gz it unpacks as YadaYada-src I just ran java -v at my terminal and get this message : Unable to locate an executable at /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/bin/java (-1) So some how my system is messed up and have no idea how. the Java -v command produced results yesterday ? Doing some googling now for a fix. Samuel. On Jun 20, 2012, at 6:35 PM, Hassan Schroeder wrote: On Wed, Jun 20, 2012 at 6:29 PM, Samuel V Green III macun...@gmail.com wrote: I can't download a binary distribution…, I'm running Mac OS Lion and as far as I could see there was no binary distribution ? 15:41 ~/Downloads $ tar xfz apache-tomcat-7.0.28.tar.gz Did you see what I downloaded? Get that. H* -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
Puzzle solved !! Yes I did not have the binary ! It was right in front of me on the Tomcat.apache.org/download-70.cgi So sorry for all the challenges. Thanks for every ones help !! I've got it up and running now ! Thanks again, Samuel. On Jun 20, 2012, at 7:23 PM, Oguz Kologlu wrote: Try this link. It's a tomcat mirror for the binary distribution: http://mirror.overthewire.com.au/pub/apache/tomcat/tomcat-7/v7.0.28/bin/apache-tomcat-7.0.28.tar.gz On 21/06/2012, at 11:46 AM, Samuel V Green III wrote: That's exactly what I've been downloading, but when unpacking the tar.gz it unpacks as YadaYada-src I just ran java -v at my terminal and get this message : Unable to locate an executable at /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/bin/java (-1) So some how my system is messed up and have no idea how. the Java -v command produced results yesterday ? Doing some googling now for a fix. Samuel. On Jun 20, 2012, at 6:35 PM, Hassan Schroeder wrote: On Wed, Jun 20, 2012 at 6:29 PM, Samuel V Green III macun...@gmail.com wrote: I can't download a binary distribution…, I'm running Mac OS Lion and as far as I could see there was no binary distribution ? 15:41 ~/Downloads $ tar xfz apache-tomcat-7.0.28.tar.gz Did you see what I downloaded? Get that. H* -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
- Original Message - I followed directions for install and config here: http://wolfpaulus.com/journal/mac/tomcat7 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 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) Don't do this. Use bin/startup.sh to start Tomcat and bin/shutdown.sh to stop it. Life will be much simpler this way. 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. This could be a number of things. What do you see in your log file after Tomcat starts? Any errors or stack traces? Also, do you have any applications deployed to Tomcat? Dan Thanks for any help! Samuel. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
You are likely getting the same error in both cases. Just that in the first case you can see the error on the console. In the second case it's just going to a log file. It could be a bad download/unzip/permission error. Make sure you have JAVA_HOME defined (maybe in your ~/.profile ) Oz On 19/06/2012, at 10:55 PM, Daniel Mikusa wrote: - Original Message - I followed directions for install and config here: http://wolfpaulus.com/journal/mac/tomcat7 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 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) Don't do this. Use bin/startup.sh to start Tomcat and bin/shutdown.sh to stop it. Life will be much simpler this way. startup.sh and shutdown.sh are useful in a development environment. You'll likely need to learn how to use catalina.sh in a production environment. 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. This could be a number of things. What do you see in your log file after Tomcat starts? Any errors or stack traces? Also, do you have any applications deployed to Tomcat? Dan Thanks for any help! Samuel. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
-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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
I backup and installed the 7.0.28 of Tomcat. I used the setup as follows: sudo ln -s /usr/local/apache-tomcat-7.0.28/ /Library/Tomcat sudo chown -R myusername /Library/Tomcat issued command export Catalina_HOME=/Library/Tomcat upon issue of : /Library/Tomcat/bin/startup.sh get the following output: 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 OutPut of Catalina.out: 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) Non comment server.xml : server.xml : ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.core.JreMemoryLeakPreventionListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.core.ThreadLocalLeakPreventionListener / GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.LockOutRealm Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ /Realm Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=%h %l %u %t quot;%rquot; %s %b / /Host /Engine /Service /Server So I'm still unable to access http://localhost:8080 Question: Are there main set environment variables that I can set within my .bash_profile once I get Tomcat started that will fulfill environment needs in the future? I've set up Tomcat years ago on older OSX versions and had no problems. So it may be easy to you, but there is something I'm missing. Thank you, Samuel. On Jun 19, 2012, at 8:40 AM, Christopher Schultz wrote: -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
RE: apache-tomcat-7.0.27 start up errors on Mac OX Lion
From: Samuel V Green III [mailto:macun...@gmail.com] Subject: Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion issued command export Catalina_HOME=/Library/Tomcat That's not useful (or necessary). The variable name is CATALINA_HOME, not Catalina_HOME (case matters). Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home That looks suspicious, but I don't have a Mac at hand to compare with. Exactly what JVM version do you have installed? Can it run other Java programs? Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap It's looking like your JVM installation might not be quite right... - 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
java -version java version 1.6.0_33 Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720) Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode) Thanks Charles ! Samuel. On Jun 19, 2012, at 6:09 PM, Caldarale, Charles R wrote: From: Samuel V Green III [mailto:macun...@gmail.com] Subject: Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion issued command export Catalina_HOME=/Library/Tomcat That's not useful (or necessary). The variable name is CATALINA_HOME, not Catalina_HOME (case matters). Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home That looks suspicious, but I don't have a Mac at hand to compare with. Exactly what JVM version do you have installed? Can it run other Java programs? Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap It's looking like your JVM installation might not be quite right... - 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: apache-tomcat-7.0.27 start up errors on Mac OX Lion
From: Samuel V Green III [mailto:macun...@gmail.com] Subject: Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720) Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode) That looks quite reasonable. Can you tell if that's really what's installed at: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home (Wouldn't normally happen on a Mac, but on Linux it's not uncommon to have several JVMs installed, and you can end up using a different one than you expect.) Is there possibly a permissions problem - trying to run Tomcat under a different userid than what the installation was done with? - 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home Not sure? I have sub directories: bin bundle lib man the install of tomcat at /usr/local is listed user root and owner wheel The permissions at the symbolic link of /Library/Tomcat are user myusr name and owner wheel. So I have to either change permission to match at the symbolic link to the /usr/local install or vise versa ? Thanks, Samuel. On Jun 19, 2012, at 6:57 PM, Caldarale, Charles R wrote: From: Samuel V Green III [mailto:macun...@gmail.com] Subject: Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720) Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode) That looks quite reasonable. Can you tell if that's really what's installed at: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home (Wouldn't normally happen on a Mac, but on Linux it's not uncommon to have several JVMs installed, and you can end up using a different one than you expect.) Is there possibly a permissions problem - trying to run Tomcat under a different userid than what the installation was done with? - 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion
I was trying to follow the instructions here: http://wolfpaulus.com/journal/mac/tomcat7 where it mentions Change ownership of the /Libaray/Tomcat folder hierarchy: sudo chown -R your_username /Library/Tomcat So I'm wondering if I need to change chown the /usr/local/tomcatversion directory to match my user id instead of root ? On Jun 19, 2012, at 6:57 PM, Caldarale, Charles R wrote: From: Samuel V Green III [mailto:macun...@gmail.com] Subject: Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720) Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode) That looks quite reasonable. Can you tell if that's really what's installed at: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home (Wouldn't normally happen on a Mac, but on Linux it's not uncommon to have several JVMs installed, and you can end up using a different one than you expect.) Is there possibly a permissions problem - trying to run Tomcat under a different userid than what the installation was done with? - 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: apache-tomcat-7.0.27 start up errors on Mac OX Lion
From: Samuel V Green III [mailto:macun...@gmail.com] Subject: Re: apache-tomcat-7.0.27 start up errors on Mac OX Lion I was trying to follow the instructions here: http://wolfpaulus.com/journal/mac/tomcat7 I would strongly recommend (as did Chris) that you _not_ follow someone else's questionable installation instructions, but instead just use the ones from the Tomcat website. Don't make your life more complicated than it needs to be. Remove whatever you've done to install Tomcat, download a fresh .tar.gz file (7.0.28 is now available), and just do what Chris said: 1. Download tarball 2. Un-tar tarball $ bin/startup.sh - 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
apache-tomcat-7.0.27 start up errors on Mac OX Lion
I followed directions for install and config here: http://wolfpaulus.com/journal/mac/tomcat7 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 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. Thanks for any help! Samuel. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org