I am tracing this issue and it is most weird as it does not affect all apps.

I think it's because Jesktop hosts it's own applications and that I 
should be giving a hint (for want of a better word) to the JVM that 
there is a URLStreamHandlerFactory in the picture.

Here is the current class loader:

  package org.apache.avalon.jesktop.core;
  import java.net.URLClassLoader;
  import java.net.URL;
  public class JesktopURLClassLoader extends URLClassLoader {
      protected JesktopURLClassLoader(final URL[] urls) {
          super(urls, JesktopURLClassLoader.class.getClassLoader());
      }
  }

I think it should be :

  public class JesktopURLClassLoader extends URLClassLoader {
      protected JesktopURLClassLoader(final URL[] urls) {
          super(urls, JesktopURLClassLoader.class.getClassLoader(), 
Phoenix.getURLStreamHandlerFactory());
      }
  }

Granted there is no such method Phoenix.getURLStreamHandlerFactory(), 
and if there were it would not be static anyway.

Hmmm, still searching for the cause.

Regards,

- Paul H

> I am migrating Rana's FtpServer Admn GUI to be a Jesktop app (as well 
> as standalone).  It works in standalone mode, but not when installed 
> into Jesktop which is weird because dozens of other apps I have ported 
> do work fine and are not that different.
>
> I am getting a NoClassDefFoundError on org.jesktop.frimble.JFrimble. 
> I'm looking for advice on how to debug this scenario.  The class I am 
> trying to instantiate (FtpAdminFrame) is there, but the class loader 
> is not finding the parent class (JFrimble) when it should do, it's 
> worked a million times before.  Is it possibly a red-herring in that 
> it's actially some other class that is being looked for (and not 
> found) or perhaps a class versioning issue (which I doubt).  We are 
> talking of a chain of classloaders about three or four deep (including 
> Phoenix as the primordial of course).
>
> I really don't think this is related to the recent sar changes, as 
> many apps, upon installation, are still working.
>
> Advice needed :-)
>
> Regards,
>
> - Paul H
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to