users@glassfish.java.net

Build.xml errors in Java EE tutorial examples

From: <glassfish_at_javadesktop.org>
Date: Wed, 10 Mar 2010 11:21:58 PST

Guys and Gals,

Spent the last two-three days just trying to make the Java EE 5 examples work. The latest error has got me dumbfounded, even moreso than usual. I've run several SE examples with no problem.

Using ...

Windows XP
NetBeans IDE 6.8
Sun GlassFish Enterprise Server v2.1.1 ((v2.1 Patch06)(9.1_02 Patch12)) (build b31g-fcs)
Java EE 5 SDK

I load the "cart" example from the sun tutuorial (http://java.sun.com/javaee/5/docs/tutorial/doc/bnboc.html) into Netbeans IDE. In the projects tab, I right-click "cart" and select "deploy". I receive no errors or warnings. Logging into glassfish, I see two files under Applications->Enterprise Applications:

cart-app-client.jar AppClientModule Download Client Stubs Launch
cart-ejb.jar EJBModule

In the projects tab, I right-click "cart" and select "run". I receive the following errors:

Incrementally deploying cart#cart-app-client.jar_localhost:4848_server
Incrementally deploying cart#cart-ejb.jar_localhost:4848_server
Incrementally deploying cart_localhost:4848_server
Completed incremental distribution of cart
post-run-deploy:
run-deploy:
C:\Java\Examples\javaeetutorial5\javaeetutorial5\examples\ejb\cart\build.xml:44: The following error occurred while executing this line:
C:\Java\Examples\javaeetutorial5\javaeetutorial5\examples\ejb\cart\build.xml:34: The following error occurred while executing this line:
C:\Java\Examples\javaeetutorial5\javaeetutorial5\examples\ejb\cart\nbproject\build-impl.xml:347: The following error occurred while executing this line:
C:\Java\Examples\javaeetutorial5\javaeetutorial5\examples\ejb\cart\nbproject\build-impl.xml:413: C:\Java\Examples\javaeetutorial5\javaeetutorial5\examples\ejb\cart\dist\gfdeploy\cart not found.
BUILD FAILED (total time: 6 seconds)

build.xml: 44 is the "run-nb" in ...

    <target name="run" depends="init,run-deploy">
        <antcall target="run-ant"/>
        <antcall target="run-nb"/>
    </target>

build.xml: 34 is the "run-ac" in ...

    <target name="run-nb" if="netbeans.home" depends="init">
        <antcall target="run-ac"/>
    </target>

build-impl.xml:347 is the "run-${app.client}" in ...

    <target depends="init" if="app.client" name="run-ac">
        <antcall target="run-${app.client}"/>
    </target>

build-impl.xml:413 is the <copy flatten ... > in ...

        <copy flatten="false" todir="${dist.dir}/cartClient">
            <fileset dir="${dist.dir}/gfdeploy/cart" includes="**/*.jar"/>
        </copy>



I'm not sure where to go from here. These are pre-packaged examples. I was hoping to simply deploy, run, and then dissect them, but I'm at a loss. Google, for once, was unable to help me with this error.
[Message sent by forum member 'eevictim' (wlovett_at_superlift.com)]

http://forums.java.net/jive/thread.jspa?messageID=391088