This fix does not work for me. I still have the same deadlock issue. I
think Leopard has more up to date Java build than Tiger.
$ Java -version
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)
By experimenting a few options (knowing a timing issue), I found that
"-server" option works the best ("geronimo.sh jpda run" works too)
$ export JAVA_OPTS=-server
$ ./bin/geronimo.sh run
"-server" or "jpda run" somehow avoids deadlock.
Kevan Miller wrote:
>
> On 10/25/07, sbyonge <sbyonge@gmail.com> wrote:
>>
>>
>> I don't think anything unsual on my notebook. I have two environment
>> variables (the remaining disabled to trouble shoot the problem) and
>> CLASSPATH is unset before starting Geronimo 2.0.2.
>
>
> Well, Leopard helped me out a bit... I was able to hit this problem fairly
> reliably with Java 5 on Leopard...
>
> The following patch should fix the problem (this falls pretty squarely in
> the "hack" category):
>
> Index:
> modules/geronimo-cli/src/main/java/org/apache/geronimo/cli/daemon/DaemonCLI.java
> ===================================================================
> ---
> modules/geronimo-cli/src/main/java/org/apache/geronimo/cli/daemon/DaemonCLI.java
> (revision
> 589713)
> +++
> modules/geronimo-cli/src/main/java/org/apache/geronimo/cli/daemon/DaemonCLI.java
> (working
> copy)
> @@ -19,12 +19,17 @@
> import org.apache.geronimo.cli.AbstractCLI;
> import org.apache.geronimo.cli.CLParser;
> import org.apache.geronimo.kernel.util.MainConfigurationBootstrapper;
> +import org.apache.geronimo.transformer.TransformerCollection;
>
>
> /**
> * @version $Rev: 476049 $ $Date: 2006-11-17 15:35:17 +1100 (Fri, 17 Nov
> 2006) $
> */
> public class DaemonCLI extends AbstractCLI {
> +
> + // Force a load of TransformerCollection. This prevents a potential
> deadlock during startup.
> + // This is a work-around for a JSE bug
> + final static Class transformerHack = TransformerCollection.class;
>
> public static void main(String[] args) {
> int status = new DaemonCLI(args).executeMain();
> Index: modules/geronimo-cli/pom.xml
> ===================================================================
> --- modules/geronimo-cli/pom.xml (revision 589713)
> +++ modules/geronimo-cli/pom.xml (working copy)
> @@ -50,6 +50,12 @@
> <artifactId>rmock</artifactId>
> </dependency>
>
> + <dependency>
> + <groupId>org.apache.geronimo.modules</groupId>
> + <artifactId>geronimo-transformer</artifactId>
> + <version>${version}</version>
> + </dependency>
> +
> </dependencies>
>
> </project>
>
> If you prefer, overwrite lib/geronimo-cli-2.0.2.jar with this version
> geronimo-cli-2.0.2.jar<http://people.apache.org/~kevan/geronimo-cli-2.0.2.jar>
>
> Could you confirm if this fixes your problem?
>
> --kevan
>
>
--
View this message in context: http://www.nabble.com/Geronimo-2.0.2-do-not-start-in-Mac-OS-X-10.4-tf4674903s134.html#a13481997
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
|