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 48816 - DeployableObject.getDDBeanRoot() doesn't accept proper xpaths
Summary: DeployableObject.getDDBeanRoot() doesn't accept proper xpaths
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@serverplugins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-10 06:27 UTC by _ pcw
Modified: 2005-05-03 18:23 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 _ pcw 2004-09-10 06:27:11 UTC
The following lines (from the SJSAS plugin), on a
project that contains a web app with a webservice
do not work as expected...

DeploymentConfiguration dc = getConfig();
DeployableObject dobj = dc.getDeployableObject();
DDBeanRoot webServicesRootDD =
dobj.getDDBeanRoot("/webservices");

webServicesRootDD should now refer to a DDRoot
representing /webservices.

Passing "WEB-INF/webservices.xml" does work, but I
should not have to do that (how could the plugin
know?  And it's going to be different for ejb's
anyway.)
Comment 1 Nam Nguyen 2004-09-10 15:10:21 UTC
Agree that only filename (not the relative path) is needed as
described by DeployableObject javadoc.  I just wonder why
"/webservices" and not "webservices.xml"?
Comment 2 Nam Nguyen 2004-09-13 05:37:42 UTC
Fixed.  Now DeployableObject.getDDBeanRoot(String) accepts filename.

/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/DeployableObjectImpl.java,v
 <--  DeployableObjectImpl.java
new revision: 1.6; previous revision: 1.5
/cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/config/ModuleDeploymentSupport.java,v
 <--  ModuleDeploymentSupport.java
new revision: 1.15; previous revision: 1.14