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 90392 - Deploy an ear project containing ref to a java project fails
Summary: Deploy an ear project containing ref to a java project fails
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EAR (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Peter Liu
URL:
Keywords:
Depends on: 90710
Blocks:
  Show dependency tree
 
Reported: 2006-11-30 21:47 UTC by Peter Liu
Modified: 2006-12-13 02:30 UTC (History)
0 users

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 Peter Liu 2006-11-30 21:47:18 UTC
Deploying an ear project containing a ref to a java project will fail because
"-run-deploy-am" target does not exist on the java project.  This bug is the
result of the enhancement made to the ear project build script to allow
deployment of the am configuration data contained in a web or ejb module. 
However, the logic in the enhance build script fails to filter out the java
project which does not have the "-run-deploy-am" target in its build script. 
Note that we do currently filter out appclient module. 

To fix this, instead of trying to filter out non-web or non-ejb project, the
logic should be to only invoke the -run-deploy-am target if the project is
either web or ejb.
Comment 1 Peter Liu 2006-11-30 22:16:50 UTC
This is a showstopper because users can no longer deploy an ear project
containing  ref to java projects.

Comment 2 Peter Liu 2006-12-07 02:14:12 UTC
Moving the issue to j2ee because it is a bug in the ear project.
Comment 3 Peter Liu 2006-12-08 05:59:21 UTC
Changes checked in to trunk:

Checking in build-impl.xsl;
/cvs/j2ee/earproject/src/org/netbeans/modules/j2ee/earproject/resources/build-impl.xsl,v
 <--  build-impl.xsl
new revision: 1.22; previous revision: 1.21
done

Diffs:
Index: build-impl.xsl
===================================================================
RCS file: /cvs/j2ee/earproject/src/org/netbeans/modules/j2ee/earproject/resource
s/build-impl.xsl,v
retrieving revision 1.21
retrieving revision 1.22
diff -r1.21 -r1.22
746c746
<         <xsl:for-each select="$references/projdeps:reference[not(projdeps:id='
j2ee-module-car')]">
---
>         <xsl:for-each select="$references/projdeps:reference[(projdeps:id='dis
t-ear') or (projdeps:id='j2ee-module-car')]">

Comment 4 Srividhya Narayanan 2006-12-08 22:24:18 UTC
Yes, inclusion of web,ejb and appclient projects look good. The appclient
changes become valid only if, as pointed out, dependent issue's fix gets
addressed. Otherwise the change will be only for web and ejb project support.
Comment 5 Radko Najman 2006-12-12 13:40:39 UTC
Reviewed and agreed.
Comment 6 Peter Liu 2006-12-13 02:30:35 UTC
Fix checked into release551 branch.