i also have seen this. (also in an intializer i believe and then with ajax scripts)
It happens when i restart tomcat and tomcat deserializes sessions.
If it doesn't deserializes sessions it doesn't happen.

Will try if i can really reproduce it and see if i can figure out why ..

The big problem is that noclassdeffound is the most most annoying and don't
tell what really is the problem error. I hate hate hate that error.

johan

On 3/30/06, Matthias Albert <[EMAIL PROTECTED]> wrote:
Hi,
today I tried to use my own class MyReasourceStreamLocator based on
AbstractResourceStreamLocator and registered it in Application.init()
(the derived method).

Surprisingly, I got a "NoClassDefFoundError". A part of the stack trace
is shown below. I am using Wicket 1.2beta2.


java.lang.NoClassDefFoundError
        java.lang.Class.forName0(Native Method)
        java.lang.Class.forName(Class.java:164)
wicket.markup.html.tree.TreeComponentInitializer.class$ (TreeComponentInitializer.java:38)
wicket.markup.html.tree.TreeComponentInitializer.init(TreeComponentInitializer.java:38)
        wicket.Initializer.init(Initializer.java:59)
        wicket.Application.initialize (Application.java:651)
        wicket.Application.initializeComponents(Application.java:716)
        wicket.Application.initializeComponents(Application.java:693)
        wicket.protocol.http.WicketServlet.init(WicketServlet.java :287)


Line 38 in the source file TreeComponentInitializer.java is the first
line inside this method:

public void init(Application application)
{
  PackageResource.bind(application, Tree.class, " blank.gif"); //line #38
  PackageResource.bind(application, Tree.class, "minus.gif");
  PackageResource.bind(application, Tree.class, "plus.gif");
  PackageResource.bind(application, Tree.class , "tree.css");
}


Could it be a problem that Tree is an abstract class?


Matthias Albert




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to