First of all, your compile error is really simple to fix. Just take
a look at the source code for help.c around line 113 for a minute.
It looks like someone was in a hurry:
/* Format changed for 1.4 JVMs */
sp = strchr(ret, ' ');
if(sp != NULL)
*sp = '\0'
Put the semicolon on the end of the last line in that block and
recompile. You'll get farther. ;-)
You may also have to do something special to find the jvm.cfg
if you're on certain platforms using certain versions of Java
(e.g., 1.4.0_01 on SPARC Solaris). Just find your jvm.cfg and
put them into location.c like this:
Then I suggest adding -jvm server to your invocation line. For
those of you who are having coredumps in jsvc --help right after
it prints the first two lines of the -jvm help information, the code
change and specifying your JVM may fix your problems. Adding
the location of the jvm.cfg for Sparc/Sparc V9 fixed my problems
on Solaris 8 and Solaris 9 with that particular version of the JDK.
It's going to be a good idea to create specialized versions of
the Tomcat startup/shutdown scripts to work with jsvc since
Tomcat.sh is a bit fluffy and light. That's what I wound up
doing. You can take pretty much whatever you have in
catalina.sh and glom the other options on top of it, but
make sure you're setting -user, -home, -pidfile, -jvm, -outfile,
-errfile, and -cp to something you expect. If you're running more
than one Tomcat server on a machine, you're going to need to
configure -pidfile correctly.
The documentation for jsvc is pretty spare, so I suggest taking
a look at arguments.c to see what arguments jsvc accepts and
what it'll pass to Java.
Anyway ... read the fine source? Sometimes it helps. :-)