Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2003 17:53:47 -0500
From:      Brent Verner <brent@rcfile.org>
To:        Milo Hyson <milo@cyberlifelabs.com>, Doug Poland <doug@polands.org>, leafy@leafy.idv.tw, freebsd-java@FreeBSD.ORG
Subject:   Re: Specifying jdk for tomcat 4.1.18
Message-ID:  <20030320225347.GA4319@rcfile.org>
In-Reply-To: <20030320173304.GT54999@starjuice.net>
References:  <3E78DDFF.7000500@cyberlifelabs.com> <32007.63.104.35.130.1048109532.squirrel@email.polands.org> <3E78E6C2.2090209@cyberlifelabs.com> <1616.172.16.1.33.1048125648.squirrel@email.polands.org> <20030320020719.GA70161@leafy.idv.tw> <1671.172.16.1.33.1048126904.squirrel@email.polands.org> <20030320041206.GA46244@rcfile.org> <20030320123623.GB54999@starjuice.net> <3E79E8A4.1020302@cyberlifelabs.com> <20030320173304.GT54999@starjuice.net>

next in thread | previous in thread | raw e-mail | index | archive | help
[2003-03-20 19:33] Sheldon Hearn said:
| On (2003/03/20 08:13), Milo Hyson wrote:
| 
| [...HTML only...]
| 
| > I agree. At the very least, I would expect a FreeBSD port to provide
| > the option to behave like the official stock release.
| 
| Hang on, that's not what this is about.  Even with the XML config file
| approach, *ctl could still default to the VM for which it was built in
| the absence of that XML file.
| 
| What I'm saying is that an XML file doesn't seem justified, given that a
| simple, traditional solution alreayd exists for this kind of thing (an
| envar).

The problem is a little bigger than _just_ the JAVA_HOME env issue,
which is why I went the external configuration route....
(I am totally open to alternate config file formats)

In the current daemonctl.c program, the service in question
is started with the following C call.

execl("%%JAVA_HOME%%/%%JAVA_CMD%%", "%%JAVA_HOME%%/%%JAVA_CMD%%", 
      "-jar", %%JAVA_ARGS%% "%%JAR_FILE%%", %%JAR_ARGS%% NULL);

This works for tomcat, but I wasn't able to coerce jboss to start
using those same exec args; specifically, the jboss startup needs
a -classpath argument pair.  The problem I want to solve is how
to use the official startup script(s) in a sane manner through
the setuid/setgid daemonctl wrapper.

  b

-- 
"Develop your talent, man, and leave the world something. Records are 
really gifts from people. To think that an artist would love you enough
to share his music with anyone is a beautiful thing."  -- Duane Allman

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030320225347.GA4319>