{"id":2403,"date":"2022-08-30T15:24:34","date_gmt":"2022-08-30T15:24:34","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/05\/new-tomcat-install-on-osx-choking-on-startup-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:24:34","modified_gmt":"2022-08-30T15:24:34","slug":"new-tomcat-install-on-osx-choking-on-startup-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/new-tomcat-install-on-osx-choking-on-startup-collection-of-common-programming-errors\/","title":{"rendered":"New tomcat install on OSX choking on startup-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;ve completed a fresh install of Tomcat6 on an OS X box that didn&#8217;t have it before. It&#8217;s behaved a bit strangely in other ways, but the current hang-up is that it won&#8217;t start at all. In response to running startup.sh, the catalina.out log collects this error:<\/p>\n<pre>Exception in thread \"main\" java.lang.NoClassDefFoundError:  org\/apache\/catalina\/startup\/Bootstrap\nCaused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstrap\n        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)\n        at java.security.AccessController.doPrivileged(Native Method)\n        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)\n        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)\n        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)\n<\/pre>\n<p>Other bits of strangeness noticed with this installation:<\/p>\n<ul>\n<li>the .sh scripts in the bin directory had no execute permission, and had to be manually chmodded.<\/li>\n<li>The log folder wasn&#8217;t created, causing an earlier script crash. After I manually created the log folder, the startup script made it to this new error before failing.<\/li>\n<li>Running other scripts in the bin folder generates similar error messages involving NoClassDefFoundError.<\/li>\n<li>Bootstrap.java is indeed in the right place, though Bootstrap.class isn&#8217;t in the same folder. For that matter, if any of the myriad class files for tomcat should have already been generated from their .java files, I haven&#8217;t seen it.<\/li>\n<\/ul>\n<ol>\n<li>\n<p>what version of java are you running on your machine? from first look at this command i would say it looks like you could possibly be running java1.5 and this version of tomcat needs java1.6 seen this happening a couple of times.<\/p>\n<\/li>\n<li>\n<p>I never did find out what it was, but installing from precompiled binaries rather than ant building from scratch fixed it.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2014-01-05 22:52:25. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve completed a fresh install of Tomcat6 on an OS X box that didn&#8217;t have it before. It&#8217;s behaved a bit strangely in other ways, but the current hang-up is that it won&#8217;t start at all. In response to running startup.sh, the catalina.out log collects this error: Exception in thread &#8220;main&#8221; java.lang.NoClassDefFoundError: org\/apache\/catalina\/startup\/Bootstrap Caused by: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2403","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2403"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2403\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}