Hi again,

My previous email on this seems to be a bit mangled. Let me try again :-)

If I specify "JetspeedTopNavigation" in my JetspeedResources.properties, I
get the following error in tomcat.log:

java.lang.NoClassDefFoundError
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:120)
 at
org.apache.turbine.modules.NavigationLoader.getInstance(NavigationLoader.jav
a:166)
 at
org.apache.turbine.modules.NavigationLoader.eval(NavigationLoader.java:118)
 at
org.apache.jetspeed.turbine.layouts.JetspeedLayout.doBuild(JetspeedLayout.ja
va:101)
 at org.apache.turbine.modules.Layout.build(Layout.java:81)
 at org.apache.turbine.modules.LayoutLoader.exec(LayoutLoader.java:111)
 at
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:134)
 at org.apache.turbine.modules.Page.build(Page.java:81)
 at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:111)
 at Turbine.handleException(Turbine.java:482)
 at Turbine.doGet(Turbine.java:370)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
 at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
 at java.lang.Thread.run(Thread.java:484)

When I specify "NoTopNavigation" though, the error disappears! I've checked
the jetspeed.jar and JetspeedTopNavigation is where it's supposed to be,
right next to NoTopNavigation! Strange indeed.

I put some Log.note's in NavigationLoader, like this (from line 157):

// my code
Log.note ( "Start tests" );
Class.forName( "org.apache.turbine.modules.navigations.DefaultTopNavigation"
 );
Log.note ( "OK:
org.apache.turbine.modules.navigations.DefaultTopNavigation" );
Class.forName( "org.apache.jetspeed.turbine.screens.Admin" );
Log.note ( "OK: org.apache.jetspeed.turbine.screens.Admin" );
Class.forName( "org.apache.jetspeed.turbine.navigations.NoTopNavigation" );
Log.note ( "OK: org.apache.jetspeed.turbine.navigations.NoTopNavigation" );
Class.forName( "org.apache.jetspeed.turbine.navigations.JetspeedTopNavigatio
n" );
Log.note ( "OK:
org.apache.jetspeed.turbine.navigations.JetspeedTopNavigation" );
// original code
Class servClass = Class.forName( className );

...and this is what I get in the log file:

NOTICE  -- Start tests
NOTICE  -- OK: org.apache.turbine.modules.navigations.DefaultTopNavigation
NOTICE  -- OK: org.apache.jetspeed.turbine.screens.Admin
NOTICE  -- OK: org.apache.jetspeed.turbine.navigations.NoTopNavigation

Obviously it doesn't like JetspeedTopNavigation! Any idea if this is a JVM
bug or something? I'm using Sun JDK1.3 on Win98.

Greetings, Frank




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to