App does not find WebServerResources

From: JR Ruggentaler (j..pv.com)
Date: Wed Feb 19 2003 - 18:26:14 EST

  • Next message: Harald Niesche: "Re: App does not find WebServerResources"

    Hi,
            I created a simple app (Movies
    http://developer.apple.com/techpubs/webobjects/WOGettingStarted/Movies/index
    .html) with PB and migrated the PB output to eclipse to get familiar with
    eclipse and WOLips. My problem is after I build and install the app when I
    run the app the gif images aren't found. I think I did every thing
    correctly. I created a folder (wsresources) in my eclipse project and added
    the gif files to the folder. I then edited the build.xml file and changed
    the wsresources as shown below:

    <wsresources dir="wsresources">
     <include name="**/*.gif"/>
     <exclude name="**/*.woa/**"/>
    </wsresources>

    I ran ant from eclipse with the -v option and the install target and my web
    resources were copied to:
    C:\eclipse\workspace\Movies\Movies.woa\Contents\WebServerResources\

    Here is the ant output.
    Ant version 1.5.1 compiled on October 2 2002
    Buildfile: C:\eclipse\workspace\Movies\build.xml
    parsing buildfile C:\eclipse\workspace\Movies\build.xml with URI =
    file:C:/eclipse/workspace/Movies/build.xml
    Project base dir set to: C:\eclipse\workspace\Movies
    Arguments: -v
    -Dorg.eclipse.ui.externaltools.ATTR_ANT_PROCESS_ID=1045695662631
    Build sequence for target `build' is [setProps, init.build, build.woapp,
    refreshView, build]
    Complete build sequence is [setProps, init.build, build.woapp, refreshView,
    build, init.install, install, copy.strings, clean]

    setProps:
        [property] Loading C:\eclipse\workspace\Movies\build.properties
        [property] Loading C:\Documents and
    Settings\jr\Library\wobuild.properties

    init.build:

    build.woapp:
    [updateframeworksets] Building framework sets include files ...
    [updateframeworksets] done
    [updateotherclasspaths] Building other classpath sets include files...
    [updateotherclasspaths] done
    [woapplication] Installing Movies in .
    [woapplication] Session.class omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Java\movies.jar is
    up to date.
    [woapplication] Main.class omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Java\movies.jar is
    up to date.
    [woapplication] DirectAction.class omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Java\movies.jar is
    up to date.
    [woapplication] Application.class omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Java\movies.jar is
    up to date.
    [woapplication] omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Java\movies.jar is
    up to date.
    [woapplication] Properties omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Properties is up
    to date.
    [woapplication] Movies.eomodeld\index.eomodeld omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Movies.eomodeld\in
    dex.eomodeld is up to date.
    [woapplication] Movies.eomodeld\Movie.plist omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Movies.eomodeld\Mo
    vie.plist is up to date.
    [woapplication] Movies.eomodeld\MovieRole.plist omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Movies.eomodeld\Mo
    vieRole.plist is up to date.
    [woapplication] Movies.eomodeld\Talent.plist omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Movies.eomodeld\Ta
    lent.plist is up to date.
    [woapplication] Main.wo\Main.wod omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Main.wo\Main.wod
    is up to date.
    [woapplication] Main.wo\Main.html omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Main.wo\Main.html
    is up to date.
    [woapplication] Main.wo\Main.woo omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Main.wo\Main.woo
    is up to date.
    [woapplication] Main.api omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Main.api is up to
    date.
    [woapplication] Movies.eomodeld omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Movies.eomodeld is
    up to date.
    [woapplication] Main.wo added as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Main.wo is
    outdated.
    [woapplication] DBWizardNext.gif omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\WebServerResources\DBWizardN
    ext.gif is up to date.
    [woapplication] DBWizardInsert.gif omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\WebServerResources\DBWizardI
    nsert.gif is up to date.
    [woapplication] DBWizardDelete.gif omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\WebServerResources\DBWizardD
    elete.gif is up to date.
    [woapplication] DBWizardPrev.gif omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\WebServerResources\DBWizardP
    rev.gif is up to date.
    [woapplication] DBWizardUpdate.gif omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\WebServerResources\DBWizardU
    pdate.gif is up to date.
    [woapplication] Includesfile
    C:\eclipse\workspace\Movies\ant.frameworks.wo.wosystemroot not found.
    [woapplication] C:\AppleLocal not found.
    [woapplication] Includesfile
    C:\eclipse\workspace\Movies\ant.frameworks.user.home not found.
    aPrefix + aPath C:\eclipse\AppleLocal C:\Apple\OpenBaseJDBC.jar
    aPrefix + aPath C:\Documents and Settings\jr C:\Apple\OpenBaseJDBC.jar
    aPrefix + aPath C:\eclipse\Apple C:\Apple\OpenBaseJDBC.jar
    aPrefix + aPath C:\eclipse\AppleLocal C:\Apple\OpenBaseJDBC.jar
    [woapplication] 'Windows 2000' is some kind of windows, skipping chmod.
          [delete] Could not find file
    C:\eclipse\workspace\Movies\ant.frameworks.wo.wosystemroot to delete.
          [delete] Could not find file
    C:\eclipse\workspace\Movies\ant.frameworks.wo.wolocalroot to delete.
          [delete] Could not find file
    C:\eclipse\workspace\Movies\ant.frameworks.user.home to delete.
          [delete] Deleting:
    C:\eclipse\workspace\Movies\ant.classpaths.wo.wosystemroot

    refreshView:
     [refreshview] Refreshing view...
     [refreshview] done

    build:
    Build sequence for target `install' is [setProps, init.install, build.woapp,
    refreshView, install]
    Complete build sequence is [setProps, init.install, build.woapp,
    refreshView, install, copy.strings, clean, init.build, build]

    setProps:
        [property] Loading C:\eclipse\workspace\Movies\build.properties
    Override ignored for property project.name
    Override ignored for property classes.dir
        [property] Loading C:\Documents and
    Settings\jr\Library\wobuild.properties
    Override ignored for property wo.dir.root
    Override ignored for property wo.woroot
    Override ignored for property wo.dir.user.home.library.frameworks
    Override ignored for property wo.dir.local
    Override ignored for property wo.wosystemroot
    Override ignored for property wo.dir.library
    Override ignored for property wo.dir.user.home.library
    Override ignored for property wo.dir.local.library
    Override ignored for property wo.dir.library.frameworks
    Override ignored for property wo.dir.local.library.frameworks
    Override ignored for property wo.wolocalroot
    Override ignored for property wo.dir.system
    Override ignored for property install.dir

    init.install:
    Override ignored for property DSTAMP
    Override ignored for property TSTAMP
    Override ignored for property TODAY
    Override ignored for property dest.dir

    build.woapp:
    [updateframeworksets] Building framework sets include files ...
    [updateframeworksets] done
    [updateotherclasspaths] Building other classpath sets include files...
    [updateotherclasspaths] done
    [woapplication] Installing Movies in .
    [woapplication] Session.class omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Java\movies.jar is
    up to date.
    [woapplication] Main.class omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Java\movies.jar is
    up to date.
    [woapplication] DirectAction.class omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Java\movies.jar is
    up to date.
    [woapplication] Application.class omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Java\movies.jar is
    up to date.
    [woapplication] omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Java\movies.jar is
    up to date.
    [woapplication] Properties omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Properties is up
    to date.
    [woapplication] Movies.eomodeld\index.eomodeld omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Movies.eomodeld\in
    dex.eomodeld is up to date.
    [woapplication] Movies.eomodeld\Movie.plist omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Movies.eomodeld\Mo
    vie.plist is up to date.
    [woapplication] Movies.eomodeld\MovieRole.plist omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Movies.eomodeld\Mo
    vieRole.plist is up to date.
    [woapplication] Movies.eomodeld\Talent.plist omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Movies.eomodeld\Ta
    lent.plist is up to date.
    [woapplication] Main.wo\Main.wod omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Main.wo\Main.wod
    is up to date.
    [woapplication] Main.wo\Main.html omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Main.wo\Main.html
    is up to date.
    [woapplication] Main.wo\Main.woo omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Main.wo\Main.woo
    is up to date.
    [woapplication] Main.api omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Main.api is up to
    date.
    [woapplication] Movies.eomodeld omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Movies.eomodeld is
    up to date.
    [woapplication] Main.wo added as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\Resources\Main.wo is
    outdated.
    [woapplication] DBWizardNext.gif omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\WebServerResources\DBWizardN
    ext.gif is up to date.
    [woapplication] DBWizardInsert.gif omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\WebServerResources\DBWizardI
    nsert.gif is up to date.
    [woapplication] DBWizardDelete.gif omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\WebServerResources\DBWizardD
    elete.gif is up to date.
    [woapplication] DBWizardPrev.gif omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\WebServerResources\DBWizardP
    rev.gif is up to date.
    [woapplication] DBWizardUpdate.gif omitted as
    C:\eclipse\workspace\Movies\Movies.woa\Contents\WebServerResources\DBWizardU
    pdate.gif is up to date.
    [woapplication] Includesfile
    C:\eclipse\workspace\Movies\ant.frameworks.wo.wosystemroot not found.
    [woapplication] C:\AppleLocal not found.
    [woapplication] Includesfile
    C:\eclipse\workspace\Movies\ant.frameworks.user.home not found.
    aPrefix + aPath C:\eclipse\AppleLocal C:\Apple\OpenBaseJDBC.jar
    aPrefix + aPath C:\Documents and Settings\jr C:\Apple\OpenBaseJDBC.jar
    aPrefix + aPath C:\eclipse\Apple C:\Apple\OpenBaseJDBC.jar
    aPrefix + aPath C:\eclipse\AppleLocal C:\Apple\OpenBaseJDBC.jar
    [woapplication] 'Windows 2000' is some kind of windows, skipping chmod.
          [delete] Could not find file
    C:\eclipse\workspace\Movies\ant.frameworks.wo.wosystemroot to delete.
          [delete] Could not find file
    C:\eclipse\workspace\Movies\ant.frameworks.wo.wolocalroot to delete.
          [delete] Could not find file
    C:\eclipse\workspace\Movies\ant.frameworks.user.home to delete.
          [delete] Deleting:
    C:\eclipse\workspace\Movies\ant.classpaths.wo.wosystemroot

    refreshView:
     [refreshview] Refreshing view...
     [refreshview] done

    install:
    BUILD SUCCESSFUL
    Total time: 1 second

    When I launch the app the images are missing and I get the following
    messages on the console:

    [2003-02-19 17:10:39 CST] <main> WOMaxIOBufferSize=8196
    [2003-02-19 17:10:39 CST] <main> WOWorkerThreadCountMin=16
    [2003-02-19 17:10:39 CST] <main> WOSocketMonitorSleepTime=50
    [2003-02-19 17:10:39 CST] <main> WODirectConnectEnabled=true
    [2003-02-19 17:10:39 CST] <main> WOIncludeCommentsInResponse=false
    [2003-02-19 17:10:39 CST] <main> WOWorkerThreadCount=8
    [2003-02-19 17:10:39 CST] <main>
    WOAdaptorURL=http://127.0.0.1/cgi-bin/WebObjects
    [2003-02-19 17:10:39 CST] <main> WOIDE=WOLips
    [2003-02-19 17:10:39 CST] <main> WODebuggingEnabled=true
    [2003-02-19 17:10:39 CST] <main> WOListenQueueSize=128
    [2003-02-19 17:10:39 CST] <main> WOMissingResourceSearchEnabled=true
    [2003-02-19 17:10:39 CST] <main>
    WOSessionStoreClassName=WOServerSessionStore
    [2003-02-19 17:10:39 CST] <main> WOContextClassName=WOContext
    [2003-02-19 17:10:39 CST] <main> WOCachingEnabled=false
    [2003-02-19 17:10:39 CST] <main> WOAcceptMalformedCookies=false
    [2003-02-19 17:10:39 CST] <main>
    NSProjectSearchPath=(C:/eclipse/workspace/Movies)
    [2003-02-19 17:10:39 CST] <main> WOMonitorEnabled=false
    [2003-02-19 17:10:39 CST] <main> WOAllowRapidTurnaround=true
    [2003-02-19 17:10:39 CST] <main> WORootDirectory=C:/Apple
    [2003-02-19 17:10:39 CST] <main> WOGenerateWSDL=true
    [2003-02-19 17:10:39 CST] <main> WOWorkerThreadCountMax=256
    [2003-02-19 17:10:39 CST] <main> WOAllowsConcurrentRequestHandling=false
    [2003-02-19 17:10:39 CST] <main> WOAdaptor=WODefaultAdaptor
    [2003-02-19 17:10:39 CST] <main> WOSessionTimeOut=3600
    [2003-02-19 17:10:39 CST] <main> WORoot==
    [2003-02-19 17:10:39 CST] <main> WOMaxSocketIdleTime=180000
    [2003-02-19 17:10:39 CST] <main> WODefaultUndoStackLimit=10
    [2003-02-19 17:10:39 CST] <main> WOAutoOpenClientApplication=true
    [2003-02-19 17:10:39 CST] <main> WOAutoOpenInBrowser=true
    [2003-02-19 17:10:39 CST] <main> WOApplicationBaseURL=/WebObjects
    [2003-02-19 17:10:39 CST] <main> WOMaxHeaders=200
    [2003-02-19 17:10:39 CST] <main> WOLifebeatEnabled=true
    [2003-02-19 17:10:39 CST] <main> WOAllowsCacheControlHeader=true
    [2003-02-19 17:10:39 CST] <main> WOSMTPHost=smtp
    [2003-02-19 17:10:39 CST] <main> WOFrameworksBaseURL=/WebObjects/Frameworks
    [2003-02-19 17:10:39 CST] <main> WOAdditionalAdaptors=()
    [2003-02-19 17:10:39 CST] <main> WOLifebeatDestinationPort=1085
    [2003-02-19 17:10:39 CST] <main> WOPort=-1
    [2003-02-19 17:10:39 CST] <main> WOLifebeatInterval=30
    [2003-02-19 17:10:39 CST] <main> WOSocketCacheSize=100
    [2003-02-19 17:10:39 CST] <main> WODisplayExceptionPages=true
    [2003-02-19 17:10:39 CST] <main> ------------------------
    [2003-02-19 17:10:39 CST] <main> Created adaptor of class WODefaultAdaptor
    on port 2329 and address COSMO/10.0.0.182 with WOWorkerThread minimum of 16
    and maximum of 256
    [2003-02-19 17:10:40 CST] <main> NSBundle is unable to find
    "ExtensionsForResources.plist" in the main bundle. Ignoring optional
    configuration file.
    [2003-02-19 17:10:45 CST] <main> *** The application has found the following
    opened, development-mode ProjectBuilderWO projects:
    (<com.webobjects.appserver._private.WOProjectBundle: projectName='Movies';
    bundlePath='C:\eclipse\workspace\Movies\Movies.woa';
    projectPath='C:\eclipse\workspace\Movies'>)
    [2003-02-19 17:10:45 CST] <main> Application project found: Will locate
    resources in 'C:\eclipse\workspace\Movies' rather than
    'C:\eclipse\workspace\Movies\Movies.woa' .
    [2003-02-19 17:10:45 CST] <main> Creating LifebeatThread now with: Movies
    2329 COSMO/10.0.0.182 1085 30000
    Welcome to Movies !
    [2003-02-19 17:10:46 CST] <main> Opening application's URL in browser:
    http://10.0.0.182:2329/cgi-bin/WebObjects/Movies.woa
    [2003-02-19 17:10:46 CST] <main> Waiting for requests...
    [2003-02-19 17:11:01 CST] <WorkerThread0> <WOImage>: could not get
    height/width information for image at
    /cgi-bin/WebObjects/Movies.woa/wr?wodata=ERROR_NOT_FOUND_framework_*null*_fi
    lename_DBWizardInsert.gif / DBWizardInsert.gif / null
    [2003-02-19 17:11:02 CST] <WorkerThread0> <WOImage>: could not get
    height/width information for image at
    /cgi-bin/WebObjects/Movies.woa/wr?wodata=ERROR_NOT_FOUND_framework_*null*_fi
    lename_DBWizardUpdate.gif / DBWizardUpdate.gif / null
    [2003-02-19 17:11:02 CST] <WorkerThread0> <WOImage>: could not get
    height/width information for image at
    /cgi-bin/WebObjects/Movies.woa/wr?wodata=ERROR_NOT_FOUND_framework_*null*_fi
    lename_DBWizardDelete.gif / DBWizardDelete.gif / null

    The path name to the three gif files look real funky. Maybe I did not set
    some variable in the properties file. Has anyone encountered this?

    J.R.



    This archive was generated by hypermail 2.0.0 : Wed Feb 19 2003 - 18:28:15 EST