"war" ant task

From: christian mühlethaler (christia..tudiosendai.com)
Date: Mon Jan 31 2005 - 08:23:09 EST

  • Next message: Stephen White: "Fwd: include WebServerResources is not functioning ..."

    Hi,

    I'm trying to deploy the simplest possible "helloWorld" webobjects app
    as war file. I made the necessary changes in the build.xml file
    (enabling the war target, added the "webInf" parameter to the build.app
    target)

    I can't launch the war file: HTTP Status 404 - Servlet WOServletAdaptor
    is not available

    1) The file structure of the war dir is:
    <webapp>
            <webapp>.woa/
            META-INF/
            WEB-INF/
                    lib/
                            JavaWOJSPServlet_client.jar
                    web.xml

    Shouldn't the webapp.woa be in the WEB-INF folder?
            
    2)I don't understand the classpath in the generated web.xml file:
    WEBINFROOT/Resources/Java/
    WEBINFROOT/Resources/Java/hellorc2.jar
    WEBINFROOT/Library/Frameworks/JavaEOAccess.framework/Resources/Java/
    javaeoaccess.jar
    WEBINFROOT/Library/Frameworks/JavaEOControl.framework/Resources/Java/
    javaeocontrol.jar
    WEBINFROOT/Library/Frameworks/JavaFoundation.framework/Resources/Java/
    javafoundation.jar
    WEBINFROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/
    Java/JavaWOExtensions.jar
    WEBINFROOT/Library/Frameworks/JavaWebObjects.framework/Resources/Java/
    javawebobjects.jar
    WEBINFROOT/Library/Frameworks/JavaXML.framework/Resources/Java/
    javaxml.jar

    -There is neither a Resource folder nor a Library folder in the
    WEBINFROOT
    -Wy WEBINFROOT for all Frameworks? Why not WOROOT?
    -Where is the path to the JavaWOJSPServlet.framework (I've added it to
    the Framework library in the eclise project)

    I manually changed the structure of the war dir and the classpath in
    web.xml to
    <webapp>
            META-INF/
            WEB-INF/
                    <webapp>.woa/
                    lib/
                            JavaWOJSPServlet_client.jar
                    web.xml
            
    and the classpath to
            WEBINFROOT/HelloRC2.woa/Contents/Resources/Java/hellorc2.jar
            WOROOT/Library/Frameworks/JavaEOAccess.framework/Resources/Java/
    javaeoaccess.jar
            WOROOT/Library/Frameworks/JavaEOControl.framework/Resources/Java/
    javaeocontrol.jar
            WOROOT/Library/Frameworks/JavaFoundation.framework/Resources/Java/
    javafoundation.jar
            WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/
    JavaWOExtensions.jar
            WOROOT/Library/Frameworks/JavaWebObjects.framework/Resources/Java/
    javawebobjects.jar
            WOROOT/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar
            WOROOT/Library/Frameworks/JavaWOJSPServlet.framework/Resources/Java/
    javawojspservlet.jar

    Now the app runs fine in Tomcat.

    What should I do that WOLips creates a war file like this?

    Thank you,
    Christian



    This archive was generated by hypermail 2.0.0 : Mon Jan 31 2005 - 08:23:13 EST