users@glassfish.java.net

Re: Build.xml errors in Java EE tutorial examples

From: emiddio-verizon <emiddio_at_verizon.net>
Date: Wed, 10 Mar 2010 14:29:13 -0800

as i had prev gotten all the javaee5 tutorial examples to work (with some
fixes i had to apply to the tutorials)-- i investigated
just now;

tested with gfv2.1.1, and gfv3 and nb651, and nb69dev build -- some testing
with nb68 -- seemed to work
like nb69dev builds.

nb651 only tested with gfv211;
nb69dev build tested with gfv211 and gfv3.

results --

nb651 works -- both with directory deployment and with regular deploy

nb69dev -- works with gfv211 -- ONLY with regular deploy -- gets error like
you got with directory-deploy
like what you seem to be using.

nb69 fails with gfv3 -- which only supports directory deployment at this
time.

change your config to use regular deploy -- and it should work -- use
gfv211, not gfv3

if you want to use directory deployment --nb651 works; did not test with
nb671

gary

----- Original Message -----
From: <glassfish_at_javadesktop.org>
To: <users_at_glassfish.dev.java.net>
Sent: Wednesday, March 10, 2010 11:21 AM
Subject: Build.xml errors in Java EE tutorial examples


> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>