Re: Problem running a WebObects application

From: Francis Labrie (francis.labri..moguli.com)
Date: Sat Mar 10 2007 - 13:58:40 EST

  • Next message: Chuck Hill: "Re: Problem running a WebObects application"

    Hi Chuck,

    Chuck Hill wrote:
    > The launcher config has its own classpath. Check there, that is
    > likely where the problem lies.

    That's where I strongly suspect a problem, but the configuration
    seems normal (i.e. selecting the "Restore Default Entries" button in
    "Classpath" tab). See below:



    pastedGraphic.gif

    If I add the "WebObjects Frameworks" library in the "Bootstrap
    Entries" above the JRE, I get this exception at launch instead:

    Exception in thread "main" java.lang.NoClassDefFoundError
            at com.webobjects.foundation._NSUtilities.<clinit>(_NSUtilities.java:
    154)
            at com.webobjects.appserver.WOApplication.<clinit>
    (WOApplication.java:165)

    No classpath change seems to fix my problem... :-( Is there anything
    else I can do?

    > Chuck
    >
    > On Mar 9, 2007, at 8:14 PM, Francis Labrie wrote:
    >
    >> Hi,
    >>
    >>
    >> I was able to build and run a WebObjects application from Eclipse
    >> up to recently. I've added some resources (EOModel, etc.) and now
    >> I can still build, but I just can't run or debug this application
    >> in Eclipse anymore, I always get a NoClassDefFoundError:
    >>
    >> Exception in thread "main" java.lang.NoClassDefFoundError: com/
    >> webobjects/foundation/NSCoding
    >> at java.lang.ClassLoader.findBootstrapClass(Native Method)
    >> [...]
    >>
    >> It seems Eclipse / WOLips just can't find
    >> JavaFoundation.framework. I've checked my "build.properties", my
    >> "build.xml" and my "woproject" files, and all seems ok. I've
    >> deleted both "build" and "dist" directory, and rebuilt the
    >> application, without success.
    >>
    >> Strangely, I can run my application int the "dist" directory from
    >> the command line without error.
    >>
    >> Does someone have an idea about the way to fix this problem? Thanks.

    --
    Francis Labrie
    Saint-Bruno-de-Montarville, Québec, Canada
    



    This archive was generated by hypermail 2.0.0 : Sat Mar 10 2007 - 13:57:00 EST