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 114731 - Can't build Identity Samples
Summary: Can't build Identity Samples
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Identity (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P1 blocker (vote)
Assignee: Peter Liu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-05 10:37 UTC by Jaroslav Pospisil
Modified: 2007-09-20 09:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (132.46 KB, image/png)
2007-09-05 10:38 UTC, Jaroslav Pospisil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Pospisil 2007-09-05 10:37:18 UTC
Build 200709041200,JDK1.6,Vista

When I open Identity samples in IDE (clean userdir,I only added SDK glassfish),it's opened with error badges (see
screenshot) and I can't build any of StockQuoteService projects(also StockQuoteClient because service's not deployed).
Error badges are on files StockService.java and GetQuote.java. 

StockQuoteService-war Output:

C:\Users\jp154641\Documents\NetBeansProjects\StockQuoteService\StockQuoteService\StockQuoteService-war\build.xml:7:
Cannot find nbproject/am-deploy.xml imported from
C:\Users\jp154641\Documents\NetBeansProjects\StockQuoteService\StockQuoteService\StockQuoteService-war\build.xml

StockQuoteService-ejb Output:

C:\Users\jp154641\Documents\NetBeansProjects\StockQuoteService\StockQuoteService\StockQuoteService-ejb\build.xml:7: The
following error occurred while executing this line:

C:\Users\jp154641\Documents\NetBeansProjects\StockQuoteService\StockQuoteService\StockQuoteService-ejb\nbproject\build-impl.xml:19:
Cannot find extendArchiveGF.xml imported from
C:\Users\jp154641\Documents\NetBeansProjects\StockQuoteService\StockQuoteService\StockQuoteService-ejb\nbproject\build-impl.xml
Comment 1 Jaroslav Pospisil 2007-09-05 10:38:02 UTC
Created attachment 48134 [details]
screenshot
Comment 2 Peter Liu 2007-09-05 19:33:21 UTC
Looks like it is looking for the extended archive which doesn't exist.  I'll fix it.

Comment 3 Petr Blaha 2007-09-06 12:00:29 UTC
Peter, please fix the bug in trunk first (I saw e-mail to review mailing list), Jarda will verify it and then you can
commit fix to beta1 branch.
Comment 4 Peter Liu 2007-09-06 19:42:30 UTC
Fixes checked into NB6 trunk.

Comment 5 Petr Blaha 2007-09-07 08:31:48 UTC
Jardo, please verify the fix in the latest continual build from trunk. Thanks
Comment 6 Jaroslav Pospisil 2007-09-07 10:31:41 UTC
Hudson trunk build #3097 (the same for build 200709070000)

I'm now able to build -ejb module from StockQuoteService,but for -war web application I still get

C:\Users\jp154641\Documents\NetBeansProjects\StockQuoteService3\StockQuoteService3\StockQuoteService-war\build.xml:7:
Cannot find nbproject/am-deploy.xml imported from
C:\Users\jp154641\Documents\NetBeansProjects\StockQuoteService3\StockQuoteService3\StockQuoteService-war\build.xml

NOTICE: When I open StockQuoteService EAR, only ejb module is opened also,I have to open war by right-clicking on JavaEE
modules > StockQuotService-war.war > Open Project. There's no amconfig/amserver.xml file present in the project.

Comment 7 Peter Liu 2007-09-07 18:02:00 UTC
The import statement for amdeploy.xml is not supposed to be there in the build.xml.  It is left there by mistake. By
default, the sample application does not have security enabled.  I've checked in the fix into the trunk. Please test
verify this in the trunk again.

Comment 8 Srividhya Narayanan 2007-09-07 18:24:44 UTC
Jarda, can u pls verify this and let u sknow if the changes can be merged to beta1 branch?
Comment 9 Petr Blaha 2007-09-10 11:25:31 UTC
Verified in the fresh trunk build.
Comment 10 Petr Blaha 2007-09-10 17:02:19 UTC
Please, merge fix in beta1 branch.
Comment 11 Peter Liu 2007-09-10 17:10:40 UTC
Fix merged in release60_beta1 branch.
Comment 12 Jaroslav Pospisil 2007-09-12 09:53:06 UTC
I've checked final beta1 build(200709110000-later one) and it looks like the fix isn't there. I think it's possible,that
Peter's commit came after beta1 building already started. Since there'll be no more rebuilds, I think we should at least
mention this in release notes.
Comment 13 Jaroslav Pospisil 2007-09-12 09:56:37 UTC
Clarification: The beta1 build I tested was 200709111000.
Comment 14 Peter Liu 2007-09-12 19:12:36 UTC
I just verified that the fix is in the beta1 branch so we did missed the final build.  I'll write up a workaround and
ask Bob to release note it.

Comment 15 Peter Liu 2007-09-12 19:24:38 UTC
Here is the content for the release note:

Description - When building the Stock Server sample application, you will get an error indicating missing am-deploy.xml.

Workaround - Edit the build.xml in the StockQuoteServier-war project and remove the following line:
<import file="nbproject/am-deploy.xml"/>

Comment 16 Jaroslav Pospisil 2007-09-20 09:35:06 UTC
Release note verified