Re: Problems starting Maven based WOApplication in WOLips 3.4.5503 on Windows XP

From: Henrique Prange (hprang..mail.com)
Date: Wed Oct 15 2008 - 16:03:12 EDT

  • Next message: Lachlan Deck: "Re: Problems starting Maven based WOApplication in WOLips 3.4.5503 on Windows XP"

    Hi Lars,

    Lars Sonchocky-Helldorf wrote:
    > Howdy,
    >
    >
    > when trying to launch a Maven based WOApplication inside Eclipse 3.4 /
    > WOLips 3.4.5503 on a Windows XP machine which HASN'T WebObjects
    > installed at first I got some null pointer exception which had something
    > to do with not being able to read certain environment variables (I had a
    > stacktrace on it inside the error log view in Eclipse but my co-worker
    > did hit the clear button when trying to work the problem out while I was
    > at lunch :-( After that I could never reproduce it, even when deleting
    > the environment variables and restarting the machine). Before I went to
    > lunch we tried to set the environment variables mentioned in
    > <http://wiki.objectstyle.org/confluence/display/WOL/Installing+WebObjects-WOLips+on+Windows>
    > to the following values to see what happens:
    >
    > NEXT_ROOT=C:\Apple
    > WEBOBJECTS_JAVA_EXTENSIONS=%JAVA_HOME%\lib\ext
    > WEBOBJECTS_JAVA_HOME=%JAVA_HOME%

    This is not required.

    >
    > However, the NPE went away and the following came up:
    >
    >
    > [2008-10-14 16:58:1 CEST] <main> <WOResourceManager> Unable to locate
    > the "JavaWebObjects" bundle
    > [2008-10-14 16:58:1 CEST] <main> Unable to initialize WOProperties for
    > reason: Cannot find JavaWebObjects framework !
    > java.lang.IllegalStateException: Unable to locate the "JavaWebObjects"
    > bundle
    > [2008-10-14 16:58:1 CEST] <main> A fatal exception occurred:
    > <WOApplication>: Cannot be initialized.
    > [2008-10-14 16:58:1 CEST] <main>
    > com.webobjects.foundation.NSForwardException
    > [java.lang.IllegalStateException] Unable to locate the "JavaWebObjects"
    > bundle:<WOApplication>: Cannot be initialized.

    Have you added the
    ${project}/build/${project}.woa/Contents/Resources/Java folder to the
    classpath when running the application? (You can check in the Run
    Configurations panel)

    >
    > What makes me wonder is that even when launching a Maven based
    > WOApplication a static WO installation seems to be required and referred
    > (environment variables).

    Believe me, it is not necessary. I've tested an old project right now
    only with Windows, Eclipse and Java installed.

    >
    > Shouldn't it work out of the box without any WO installed at the machine
    > at all (and loading all the dependencies from the local .m2/repository
    > instead)

    Yes. Using Maven should be the easiest way to develop WO applications in
    Windows.

    >
    > Is this a bug or a misconception on my side?

    I think the best answer is: lack of documentation.

    Cheers,

    Henrique

    >
    >
    > thanks,
    >
    > Lars
    >
    >
    > p.s.:
    >
    > The ant.* files look like this (note the windows style backslashes!):
    >
    > ant.frameworks.wo.wosystemroot:
    > An empty file result in a full filesystem scan
    >
    > ant.classpaths.user.home:
    > \.m2\repository\com\apple\webobjects\JavaXML\5.4.2\JavaXML-5.4.2.jar
    > \.m2\repository\com\apple\webobjects\JavaJDBCAdaptor\5.4.2\JavaJDBCAdaptor-5.4.2.jar
    >
    > \.m2\repository\postgresql\postgresql\7.4.1-jdbc3\postgresql-7.4.1-jdbc3.jar
    >
    > \.m2\repository\com\apple\webobjects\JavaEOAccess\5.4.2\JavaEOAccess-5.4.2.jar
    >
    > \.m2\repository\javax\mail\mail\1.4.1\mail-1.4.1.jar
    > \.m2\repository\com\apple\webobjects\JavaEOControl\5.4.2\JavaEOControl-5.4.2.jar
    >
    > \.m2\repository\assense\shared\PostgreSQLPlugIn\1.5.4\PostgreSQLPlugIn-1.5.4.jar
    >
    > \.m2\repository\javax\activation\activation\1.1\activation-1.1.jar
    > \.m2\repository\com\apple\webobjects\JavaWebObjects\5.4.2\JavaWebObjects-5.4.2.jar
    >
    > \.m2\repository\com\apple\webobjects\JavaFoundation\5.4.2\JavaFoundation-5.4.2.jar
    >
    > \.m2\repository\com\apple\webobjects\JavaWOExtensions\5.4.2\JavaWOExtensions-5.4.2.jar
    >
    >
    > ant.classpaths.wo.wolocalroot:
    > An empty file result in a full filesystem scan
    >
    > ant.classpaths.wo.wosystemroot:
    > An empty file result in a full filesystem scan
    >
    > ant.frameworks.user.home:
    > .m2\repository\com\apple\webobjects\JavaXML\5.4.2\JavaXML-5.4.2.jar
    > .m2\repository\com\apple\webobjects\JavaJDBCAdaptor\5.4.2\JavaJDBCAdaptor-5.4.2.jar
    >
    > .m2\repository\postgresql\postgresql\7.4.1-jdbc3\postgresql-7.4.1-jdbc3.jar
    > .m2\repository\com\apple\webobjects\JavaEOAccess\5.4.2\JavaEOAccess-5.4.2.jar
    >
    > .m2\repository\javax\mail\mail\1.4.1\mail-1.4.1.jar
    > .m2\repository\com\apple\webobjects\JavaEOControl\5.4.2\JavaEOControl-5.4.2.jar
    >
    > .m2\repository\assense\shared\PostgreSQLPlugIn\1.5.4\PostgreSQLPlugIn-1.5.4.jar
    >
    > .m2\repository\javax\activation\activation\1.1\activation-1.1.jar
    > .m2\repository\com\apple\webobjects\JavaWebObjects\5.4.2\JavaWebObjects-5.4.2.jar
    >
    > .m2\repository\com\apple\webobjects\JavaFoundation\5.4.2\JavaFoundation-5.4.2.jar
    >
    > .m2\repository\com\apple\webobjects\JavaWOExtensions\5.4.2\JavaWOExtensions-5.4.2.jar
    >
    >
    > ant.frameworks.wo.wolocalroot:
    > An empty file result in a full filesystem scan
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Wed Oct 15 2008 - 16:04:31 EDT