This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 181804 - nb61, nb69dev will not do incremental/directory deploy properly for EE5 tutorial example
Summary: nb61, nb69dev will not do incremental/directory deploy properly for EE5 tutor...
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-10 16:48 UTC by emiddio
Modified: 2011-11-16 14:39 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description emiddio 2010-03-10 16:48:02 UTC
investigated, answered glassfish users list; problem is netbeans;

summary -- EE5 tutorial example EAR ejb/cart will build,run find with nb651 for both incremental-directory and regular deploy -- to gfv211.

will ONLY work with nb68, nb69 with gfv211 with regular deploy -- fails
with incremental deploy/directory deploy;

fails with gfv3 -- which only supports incremental/directory deploy.
-------
below is copied from the glassfish users list
-----------------
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@javadesktop.org>
To: <users@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@superlift.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=391088
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net
Comment 1 David Konecny 2010-03-16 23:27:57 UTC
I'm not sure if it's Petr or Vince who should look at this.
Comment 2 Petr Hejl 2010-05-14 14:21:28 UTC
Looks like GF issue.
Comment 3 Vince Kraemer 2010-05-17 20:12:08 UTC
I am getting a different bad behavior
Comment 4 Vince Kraemer 2011-11-15 19:55:48 UTC
I am going to mark this one as worksforme, based on the following...

I could not find a zip of the tutorial, so I got it from the source:
  svn co https://svn.java.net/svn/javaeetutorial~svn/branches/javaee-tutorial-6 javaee6tutorial

I downloaded a recent 7.1 dev build


Product Version: NetBeans IDE Dev (Build 201111090600)
Java: 1.6.0_26; Java HotSpot(TM) Client VM 20.1-b02
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
User directory: S:\Users\vbk\.netbeans\dev
Cache directory: S:\Users\vbk\.netbeans\dev\var\cache

I installed the dev build (which included a build of GF 3.1.1)

I opened the examples\ejb\cart and its required sub-projects

I used the run item on the cart project.

It ran successfully and correctly.  It was directory deployed.

I also undeployed the app; changed the directory name from javaee6tutorial to "javaee6 tutorial"; re-ran the app from NB successfully.
Comment 5 emiddio 2011-11-16 14:39:23 UTC
Unfortunately -- nb6.9+ (i think) now only support directory deployment vs both directory and deploy/upload.

So directory deployment works. OK

The bug was reported 1.5+ yrs ago -- what should i have done to get it looked at sooner ?

-Thanks