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 102851 - VWP does not show developer created session beans in project view
Summary: VWP does not show developer created session beans in project view
Status: STARTED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker with 2 votes (vote)
Assignee: _ potingwu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-28 00:03 UTC by nthompson
Modified: 2007-06-15 17:16 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nthompson 2007-04-28 00:03:32 UTC
When developing a VWP application, session beans created by the developer do not
appear in the project view under the Session Bean node. Only the IDE created
session bean (SessionBean1) is visible. The same observation holds true for
developer created application and request beans.

To reproduce the problem, do the following:

1.	Create a new VWP project using (File | New Project | Web | Visual Web
Application).

2.	Observe in the Project view that the Application Bean, Request Bean and
Session Bean nodes are visible. Expand these nodes and confirm that the IDE
created default beans ApplicationBean1, RequestBean1 and SessionBean1 are
visible under their respective nodes. 

3.	Clean and build the project with Shift+F11.

4.	Close the project.

5.	Create a new session bean manually by copying the default session bean as
follows. Locate the file SessionBean1.java in the project’s src/java/...
directory tree and make a copy of the file with a new name of
MyExtraSessionBean.java. Place the new file in the same directory as
SessionBean1.java. Use a text editor to change all occurrences of SessionBean1
to MyExtraSessionBean in the new file. Save and close the file.

6.	Create a new application bean manually by copying the default application
bean as follows. Locate the file ApplicationBean1.java in the project’s
src/java/... directory tree and make a copy of the file with a new name of
MyExtraApplicationBean.java. Place the new file in the same directory as
ApplicationBean1.java. Use a text editor to change all occurrences of
ApplicationBean1 to MyExtraApplicationBean in the new file. Save and close the file.

7.	Create a new request bean manually by copying the default request bean as
follows. Locate the file RequestBean1.java in the project’s src/java/...
directory tree and make a copy of it with a name of MyExtraRequestBean.java.
Place the new file in the same directory as RequestBean1.java. Use a text editor
to change all occurrences of RequestBean1 to MyExtraRequestBean in the new file.
Save and close the file.

8.	Open the project in the IDE and use Shift+F11 to clean and build the project.
Observe that the build is error free.

9.	Close and re-open the project.

10.	Observe that the three new beans MyExtraApplicationBean, MyExtraRequestBean
and MyExtraSessionBean are visible in the Navigator window.

11.	Examine the project’s managed-beans.xml file by double-clicking on the
Managed Beans node in the Project view. Confirm that the three new managed beans
are present in the managed-beans.xml file in the correct scope;
MyExtraSessionBean should be present in session scope, MyExtraApplicationBean
should be present in application scope and MyExtraRequestBean should be present
in request scope.

12.	Finally, expand the Application Bean, Request Bean and Session Bean nodes in
the Project view. The IDE generated default beans (ApplicationBean1,
RequestBean1 and SessionBean1) will be visible as expected. However, the
manually created beans MyExtraApplicationBean, MyExtraRequestBean and
MyExtraSessionBean will not be visible alongside the IDE default beans although
they are visible in the Navigator window and are included in the
managed-beans.xml file.
Comment 1 _ potingwu 2007-06-15 17:16:49 UTC
We have plan for post-NetBeans 6.0.