Some Mac-specific pointers...

I am running Tomcat on port 80 on my Mac Mini for my website (
http://www.penguincafe.eu).

As Mike mentioned, Tomcat ships with the jsvc source code, which you need to
compile.

These are the steps I took (from my Tomcat root directory):

  $ cd bin
  $ tar -xvzf jsvc.tar.gz
  $ cd jsvc-src
  $ chmod +x support/buildconf.sh
  $ support/buildconf.sh
  $ export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
  $ chmod +x configure
  $ ./configure
  $ make
  Got error: conflicting types for 'dso_init'
  Found a fix for it on Apache's JIRA: osx_patch.txt (attached)
  Also, needed to install the xdev tools from the leopard DVD.
  Now, for some reason I got a compile error on the Mac Mini which I didn't
get with my Macbook:
    debug.c:23: error: conflicting types for 'log_debug_flag'
    debug.h:27: error: previous declaration of 'log_debug_flag' was here
  So, I changed log_debug_flag to have type 'int' instead.
  $ cp jsvc ..
  Now, start Tomcat via jsvc (as root user!):
  # bin/jsvc -cp bin/bootstrap.jar -outfile logs/catalina.out -errfile
logs/catalina.err -user penguincafe -pidfile jsvc.pid
org.apache.catalina.startup.Bootstrap

Of course, you should create a user under which you want to run Tomcat (mine
is 'penguincafe').

Hope this helps. I don't spend all that much time doing this kind of stuff -
they are usually necessary headaches, so I don't think I'll have the
bandwidth to help you if teh same steps don't work for you.

Good luck,
Johan.

On Wed, Mar 5, 2008 at 4:08 PM, Mike Morris <[EMAIL PROTECTED]> wrote:

>
> Sparky wrote:
>
> (not sure about MacOS-specific stuff, but...)
>
> > It looks like you need special privs to start Tomcat on a port under
> > 1024.
>
> You do.
>
> > I'm not too sure how I'm going to teach eclipse to run tomcat as root.
>
> Don't.  (As pointed out by others.) Compile jsvc -- there's a
> jar/zipfile in the tomcat distribution; compiling it is straightforward.
>  It starts up as root (say from an init script) and then dials down to
> an ordinary user -- usually somthing like "tomcat", though I generally
> use the same userid as apache.
>
> --
> mike morris :: mikro2nd (at) gmail (dot) com
>
> http://mikro2nd.net/
> http://mikro2nd.net/blog/planb/
> http://mikro2nd.net/blog/mike/
>
> This email is [X]bloggable [ ]ask-first [ ]private
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CTJUG Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/CTJUG-Forum
For the ctjug home page see http://www.ctjug.org.za
-~----------~----~----~----~------~----~------~--~---

*** dso_orig.h  Mon Apr 23 13:57:28 2007
--- dso.h       Mon Apr 23 13:54:10 2007
***************
*** 16,21 ****
--- 16,25 ----
  /* @version $Id: dso.h 155409 2005-02-26 12:57:06Z dirkv $ */
  #include "jsvc.h"
  
+ #ifdef DSO_DYLD
+ #include <mach-o/dyld.h>
+ #endif
+ 
  /**
   * A library handle represents a unique pointer to its location in memory.
   */

Reply via email to