geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevan Miller" <kevan.mil...@gmail.com>
Subject Re: Geronimo 2.0.2 do not start in Mac OS X 10.4
Date Tue, 30 Oct 2007 01:42:51 GMT
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

Mime
View raw message