RE: newbie: really work?

From: Tsang, Victor YF (Victor.YF.Tsan..ccw.com)
Date: Wed Mar 12 2003 - 04:22:47 EST

  • Next message: Anders Peterson: "Re: newbie: really work?"

    Thanks Anders and Ulrich.
     
    After I checked the log, it said there is a wobuild.properties file not
    found.
     
    1. I added it to the path it expected... and added wo.systemroot and
    wo.userroot setting (something like that)
    2. replaced the ant.core plugin
     
    It worked. However, the compiled woa (actually, the .cmd file) failed to
    load the Application class
     
    ========
    java.lang.NoClassDefFoundError: com/webobjects/appserver/WOApplication
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:68)
    ========
     
    Is there any configuration (eclipse and WOLips) I have to do before I can
    build WO applications? Or, is there any kind of "WOLips for dummy"
    documentation or getting started materials?
     
     
     
    BTW, the generated Main.wo contains Main.html and Main.wod only. It lacks a
    Main.woo file to specify the encoding... The WebObjects Builder rely 100% on
    the .woo file to know the encoding... For me, I set the default encoding to
    UTF-16, and if there is no woo file to specify the encoding, the WOBuilder
    will treat the ASCII Main.html and Main.wod as UTF-16 file and I will see
    garbage. If I save back the Main.wo to UTF-16, the eclipse failed to read
    the html... and looks like that eclipse cannot handle unicode at all.
     

    Regards,

    Victor Tsang
    IT&T Solution Development
    PCCW 電訊盈科
    victor.yf.tsan..ccw.com
    victor.tsan..eee.org

    -----Original Message-----
    From: Anders Peterson [mailto:anders_peterso..ptimatika.se]
    Sent: Wednesday, March 12, 2003 4:24 PM
    To: Tsang, Victor YF
    Cc: woproject-de..bjectstyle.org
    Subject: Re: newbie: really work?

    RC2 has a problem with Ant. Look at the Eclipse log file:
    C:\eclipse\workspace\.metadata\.log
     
    Does it say something about NoClassDefFoundError?
     
    There is a patch availbale at
    <http://xanthippe.dyndns.org/external/org.eclipse.ant.core_2.1.0.zip>
    http://xanthippe.dyndns.org/external/org.eclipse.ant.core_2.1.0.zip that may
    help you.
     
    I recommend building from source. There are instructions on how to do this
    in the documentation.
     
    /Anders

    ----- Original Message -----
    From: Tsang, Victor YF <mailto:Victor.YF.Tsan..ccw.com>
    Newsgroups: gmane.comp.web.webobjects.woproject.devel
    Cc: woproject-de..bjectstyle.org <mailto:woproject-de..bjectstyle.org>
    Sent: Wednesday, March 12, 2003 8:56 AM
    Subject: RE: newbie: really work?

    I got the binary of eclipse and WOLips.
     
    "eclipse-SDK-RC2-win32.zip" and "WOLips_0.9.9.tar.gz" downloaded from
    eclipse.org and objectstyle.org this morning.
     
    Thanks to the pointer to ant tasks, but the eclipse didn't show me which
    line of the build.xml generated error, and also I can't see any meaningful
    error message (just WOLips: BUILD FAILED).
     

    Regards,

    Victor Tsang
    IT&T Solution Development
    PCCW 電訊盈科
    victor.yf.tsan..ccw.com
    victor.tsan..eee.org

    -----Original Message-----
    From: Anders Peterson [mailto:anders_peterso..ptimatika.se]
    Sent: Wednesday, March 12, 2003 3:25 PM
    To: Tsang, Victor YF
    Cc: woproject-de..bjectstyle.org
    Subject: Re: newbie: really work?

    Are you using using WOLips 0.9.9 or did you build from source?
     
    I build from source, and do not get the problem you describe (I just
    followed your steps). There will also be a candidate 1.0 release very soon
    if you can wait.
     
    "build-xml" is the Ant build script. Did you look at the documentation? It's
    far from complete, but has some useful information.
     
    /Anders

    ----- Original Message -----
    From: Tsang, Victor YF <mailto:Victor.YF.Tsan..ccw.com>
    Newsgroups: gmane.comp.web.webobjects.woproject.devel
    Sent: Wednesday, March 12, 2003 4:45 AM
    Subject: newbie: really work?

    Hi list,

    It is my first time to try out eclipse and WOLips... (in windows)

    Here are my steps:

    1. I download eclipse SDK and WOLips plugin
    2. extract eclipse to C:\eclipse
    3. extract the WOLips into C:\eclipse too
    4. first time to run eclipse
    5. File -> New -> Project -> WOLips WO5.1 and 5.2 Application
    6. select a directory instead of using default
    7. create project
    8. There is a "WOLips: BUILD FAILED" line in task window.
    9. Try the Project -> Rebuild project, the same BUILD FAILED line appeared
    in the Task window.
    10. I double click the BUILD FAILED grid, it opened a build.xml (what's
    that?)

    In the left side, the "bin" node of the project tree has all classes
    (Application.class, Main.class, Session.class and DirectAction.class), but
    there is no ".woa", and I have no clue on the build.xml error.

    Regards,

    Victor Tsang
    IT&T Solution Development
    PCCW 電訊盈科
    victor.yf.tsan..ccw.com
    victor.tsan..eee.org



    This archive was generated by hypermail 2.0.0 : Wed Mar 12 2003 - 04:27:15 EST