On Tue, Jun 06, 2000 at 05:32:07PM -0400, Sasan, Hement wrote:
> But, when I put my own
> navigations, default layout, I get the following error:
> ---------------------------------------------
> JRun Servlet Error
> ---------------------------------------------

AFAIK not many of us are using JRun...

> Turbine:
> 
> java.lang.NoClassDefFoundError: com/time0/modules/layouts/DefaultLayout
> (wrong name: org/apache/turbine/modules/layouts/DefaultLayout)

So I'm going to guess that the problem is that JRun is throwing a
NoClassDefFoundError when the class is not found in the first package in
module.packages list. The Loader classes have been written to expect a
ClassNotFoundException in this circumstance.

Try the patch below and see if this cures the problem. If so, unless
anyone can see a reason why not, I'll fix this in cvs.


Index: ActionLoader.java
===================================================================
RCS file: 
/products/cvs/turbine/turbine/src/java/org/apache/turbine/modules/ActionLoader.java,v
retrieving revision 1.7
diff -u -r1.7 ActionLoader.java
--- ActionLoader.java   2000/04/21 19:04:51     1.7
+++ ActionLoader.java   2000/06/06 22:19:21
@@ -140,6 +140,10 @@
                     {
                         // do this so we loop through all the packages
                     }
+                    catch (NoClassDefFoundError ncdfe)
+                    {
+                        // do this so we loop through all the packages
+                    }
                     catch (ClassCastException cce)
                     {
                         // do this so we know what class is having problems
@@ -183,4 +187,4 @@
         }
         return instance;
     }
-}
\ No newline at end of file
+}
Index: LayoutLoader.java
===================================================================
RCS file: 
/products/cvs/turbine/turbine/src/java/org/apache/turbine/modules/LayoutLoader.java,v
retrieving revision 1.6
diff -u -r1.6 LayoutLoader.java
--- LayoutLoader.java   2000/04/10 22:23:51     1.6
+++ LayoutLoader.java   2000/06/06 22:19:21
@@ -143,6 +143,10 @@
                     {
                         // do this so we loop through all the packages
                     }
+                    catch (NoClassDefFoundError ncdfe)
+                    {
+                        // do this so we loop through all the packages
+                    }
                     catch (ClassCastException cce)
                     {
                         // do this so we know what class is having problems
@@ -186,4 +190,4 @@
         return instance;
     }
 
-}
\ No newline at end of file
+}
Index: NavigationLoader.java
===================================================================
RCS file: 
/products/cvs/turbine/turbine/src/java/org/apache/turbine/modules/NavigationLoader.java,v
retrieving revision 1.7
diff -u -r1.7 NavigationLoader.java
--- NavigationLoader.java       2000/04/10 22:23:51     1.7
+++ NavigationLoader.java       2000/06/06 22:19:21
@@ -163,6 +163,10 @@
                     {
                         // do this so we loop through all the packages
                     }
+                    catch (NoClassDefFoundError ncdfe)
+                    {
+                        // do this so we loop through all the packages
+                    }
                     catch (ClassCastException cce)
                     {
                         // do this so we know what class is having problems
@@ -206,4 +210,4 @@
         return instance;
     }
 
-}
\ No newline at end of file
+}
Index: PageLoader.java
===================================================================
RCS file: 
/products/cvs/turbine/turbine/src/java/org/apache/turbine/modules/PageLoader.java,v
retrieving revision 1.5
diff -u -r1.5 PageLoader.java
--- PageLoader.java     2000/03/13 05:43:46     1.5
+++ PageLoader.java     2000/06/06 22:19:21
@@ -143,6 +143,10 @@
                     {
                         // do this so we loop through all the packages
                     }
+                    catch (NoClassDefFoundError ncdfe)
+                    {
+                        // do this so we loop through all the packages
+                    }
                     catch (ClassCastException cce)
                     {
                         // do this so we know what class is having problems
Index: ScheduledJobLoader.java
===================================================================
RCS file: 
/products/cvs/turbine/turbine/src/java/org/apache/turbine/modules/ScheduledJobLoader.java,v
retrieving revision 1.4
diff -u -r1.4 ScheduledJobLoader.java
--- ScheduledJobLoader.java     2000/04/10 22:23:51     1.4
+++ ScheduledJobLoader.java     2000/06/06 22:19:22
@@ -161,6 +161,10 @@
                     {
                         // do this so we loop through all the packages
                     }
+                    catch (NoClassDefFoundError ncdfe)
+                    {
+                        // do this so we loop through all the packages
+                    }
                     catch (ClassCastException cce)
                     {
                         // do this so we know what class is having problems
@@ -203,4 +207,4 @@
         }
         return instance;
     }
-}
\ No newline at end of file
+}
Index: ScreenLoader.java
===================================================================
RCS file: 
/products/cvs/turbine/turbine/src/java/org/apache/turbine/modules/ScreenLoader.java,v
retrieving revision 1.9
diff -u -r1.9 ScreenLoader.java
--- ScreenLoader.java   2000/04/10 22:23:51     1.9
+++ ScreenLoader.java   2000/06/06 22:19:22
@@ -164,6 +164,10 @@
                     {
                         // do this so we loop through all the packages
                     }
+                    catch (NoClassDefFoundError ncdfe)
+                    {
+                        // do this so we loop through all the packages
+                    }
                     catch (ClassCastException cce)
                     {
                         // do this so we know what class is having problems
-- 
Sean Legassick
[EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to