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 85432 - Identity | Stock Service sample unresolved reference with glassfish
Summary: Identity | Stock Service sample unresolved reference with glassfish
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Identity (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Srividhya Narayanan
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2006-09-21 11:10 UTC by Lukas Hasik
Modified: 2006-09-26 22:32 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 Lukas Hasik 2006-09-21 11:10:59 UTC
netbeans-ent_pack-5_5-main-060919-windows.exe

-install EntPack and use glassfish as app server
-create New | Samples | Identity Blueprints | Stock Service

unresolved reference dialog appears
Problem: The project uses the file/folder called "appserv-rt.jar", but this
file/folder was not found.
Solution: Click Resolve and locate the missing file/folder.

message from console:
Cannot identify version of target application server.  Defaulting to 'Sun Java
System Application Server 9.0' for descriptor files.
Comment 1 Srividhya Narayanan 2006-09-21 22:42:27 UTC
Since the tutorial sample depends on sone security apis from appserver, instead
of bundling the needed jars we designed the tutorial to get them from the
configured runtime. The tutorial documentation documents this step for the user
to follow. This is a feature in the IDE to let the user resolve the env.
specific references. So, I dont think this is actually a bug.
Comment 2 Lukas Hasik 2006-09-22 08:36:55 UTC
this bug isn't about bundling the jar with the sample.

IMO, it is bad usability when user creates new Sample and the project doesn't
work out of box. He has to resolve broken reference instead. The appserv-rt.jar
is still in the same place in glassfish(appserv) IMO, it shouldn't be so
difficult to resolve this reference from Nb setting during project creation. It
definitelly happens for other project.
Comment 3 Srividhya Narayanan 2006-09-22 19:36:23 UTC
The behaviour in other BPEL samples is the same. For example for the BPEl sample
TravelReservation Service which includes other ejb J2EE modules, the included
modules complain if there is no registered App Server in the IDE.

This behaviour is exactly similar. The samples will be created in the IDE
whether you have an app server or not registered. I think it is not the correct
behavior to force the user to have the app server registered before letting them
to create the sample. The library reference resolution is also done the same
way. I think this sampleis designed to use the proper IDE functionality to let
the user resolve any broken server or library references. I dont see any
usability issue here.

Degrading it to P4 again and marking it as INVALID per discussion with Manish.
Comment 4 Lukas Hasik 2006-09-25 08:51:10 UTC
I do have appserver registered in my IDE. WHY am I pushed to resolve a
"unresolved reference" when all is in its place?

Marking with keyword usability.

To make it clear :
1, user should have opportunity to create samples even when appserv isn't registered
2, samples should work out-of-box (no other action needed if not necessary)
Comment 5 Srividhya Narayanan 2006-09-26 22:32:51 UTC
Fixed in release55:
Checking in util/SoaSampleUtils.java;
/cvs/identity/samples/src/org/netbeans/modules/identity/samples/util/Attic/SoaSampleUtils.java,v
 <--  SoaSampleUtils.java
new revision: 1.1.2.4; previous revision: 1.1.2.3
done
Checking in util/SoaSampleProjectProperties.java;
/cvs/identity/samples/src/org/netbeans/modules/identity/samples/util/Attic/SoaSampleProjectProperties.java,v
 <--  SoaSampleProjectProperties.java
new revision: 1.1.2.3; previous revision: 1.1.2.2
done
Checking in ui/SampleWizardIterator.java;
/cvs/identity/samples/src/org/netbeans/modules/identity/samples/ui/Attic/SampleWizardIterator.java,v
 <--  SampleWizardIterator.java
new revision: 1.1.2.5; previous revision: 1.1.2.4
done