<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello list members,<div><br></div><div>For people who runs Mac OS X to host Tomcat container and wants to automatically start up with "launchd", in order to startup geoserver successfully, it is suggested that you set EnvironmentVariable as</div><div><br></div><div><div>&lt;key&gt;EnvironmentVariables&lt;/key&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&nbsp;&lt;dict&gt;
        &lt;key&gt;CATALINA_HOME&lt;/key&gt;&nbsp;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&nbsp;&lt;string&gt;/Library/Tomcat&lt;/string&gt;&nbsp;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&nbsp;&lt;key&gt;JAVA_OPTS&lt;/key&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&nbsp;&lt;string&gt;-Djava.awt.headless=true&lt;/string&gt;</div><div>&nbsp;&lt;/dict&gt;</div><div><br></div></div><div>by adding "-Djava.awt.headless=true" to JAVA_OPTS in a launchd plist file.</div><div><br></div><div>I try to describe what I experienced below. Please feel free to correct me as I am a newbie to jsp and Tomcat.</div><div><br></div><div>I found this when recently I installed IPT-RC3 and the accompanying geoserver, it was strange that the geoserver couldn't successfully startup after I launched Tomcat by using Server Admin on Mac OS X Server 10.6 and 10.5, while IPT started up ok. But if I started Tomcat by bin/start.sh, geoserver would launch ok with a process called org.apache.catalina.startup.Bootstrap on the Dock.</div><div><br></div><div>Later I tried testing with a separate installation of Tomcat (in addition to the Apple shipped version). By using the plist described in this book page:</div><div><br></div><div><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 11px; white-space: pre; "><a href="http://books.google.com/books?id=vJttHyVF0SUC&amp;lpg=PA32&amp;ots=i_9xrTuSd1&amp;dq=mac%20os%20x%20tomcat%20launchd&amp;pg=PA33#v=onepage&amp;q=mac%20os%20x%20tomcat%20launchd&amp;f=false">http://books.google.com/books?id=vJttHyVF0SUC&amp;lpg=PA32&amp;ots=i_9xrTuSd1&amp;dq=mac%20os%20x%20tomcat%20launchd&amp;pg=PA33#v=onepage&amp;q=mac%20os%20x%20tomcat%20launchd&amp;f=false</a></span></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre;">(Tomcat: The Definitive Guide, O'Reilly, p.33)</span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre;">geoserver was started up ok if I "sudo launchctl load" the plist in the Terminal, but failed to start up after I reboot the OS.</span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre;">After some googling I understood the <span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; white-space: normal; ">org.apache.catalina.startup.Bootstrap process is relevant to the launching of geoserver while logged in. So specifying&nbsp;JAVA_OPTS="-Djava.awt.headless=true" prevents the need to invoke the bootstrap process at the GUI front, which is usually not ready during the booting process.</span></span></font></div><div><br></div><div>What I didn't test, but I think it'll work, is that the variable can also be specified in the catalina.sh, which is called by launch daemon.</div><div><br></div><div>Hope this could be helpful.</div><div><br></div><div>Burke</div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Taiwan Biodiversity Information Facility, TaiBIF</div><div>Biodiversity<span class="Apple-converted-space">&nbsp;</span>Research Center, Academia Sinica</div><div>128 Sec 2, Academia Rd., Nangang District</div></div></span><div>Taipei 115, Taiwan</div><div>Tel: +886 2 27899621 ext. 220</div></div></span></div></span></div></span></span>
</div>
<br></body></html>