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 70177 - Properties saved to project.xml in ejb freeform project get ignored.
Summary: Properties saved to project.xml in ejb freeform project get ignored.
Status: RESOLVED INVALID
Alias: None
Product: obsolete
Classification: Unclassified
Component: EJB Freeform (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-10 00:48 UTC by _ pcw
Modified: 2006-01-24 13:22 UTC (History)
1 user (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 _ pcw 2005-12-10 00:48:12 UTC
I created an EJB Freeform project against the Gangster CMP qa-functional test
(j2ee/test/qa-functional/data/freeform_projects/cmp2).  The only change I made
in the ejb freeform project wizard after selecting the location was to add a
resource folder field.  After the wizard completed, there was no
project.properties file created in nbproject, but the project.xml had the
following entry, which I guess is a replacement:

<properties>
    <property name="resource.dir">asdfasdf</property>
    <property name="j2ee.platform">1.3</property>
    <property name="j2ee.server.type">J2EE</property>
</properties>

The problem is that those values seem to be ignored by our IDE runtime code. 
For example:

1) The project correctly picked up Sun Application Server as the available EJB
platform.  But calls to j2eeModuleProvider.getInstanceProperties() are failing
because the implementation to return the server ID is returning null.

2) Some code related to looking up the resource folder isn't working somewhere
because while the DeploymentConfiguration IS initialized with the resource
folder specified in the wizard, the UI does not display the resource node, even
if this folder is manually created.
Comment 1 Andrei Badea 2005-12-13 09:42:04 UTC
Re. #1: The implementation does return the server ID, as implemented by
EJBFreeformProvider.getServerID(). But it returns null as the server instance
ID,  which is as designed. The EJB project doesn't have a target server instance. 

As I was told, the server is only used to support visually editing the
deployment descriptor. But because of this some things aren't working, for
example CMPs from database (see issue 70307).

Re. #2: The EJB freeform project doesn't have a Server Resources node.

Since the issue summary claims the properties in project.xml are ignored, which
is not true, closing as invalid.