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 106562 - Cannot secure web services in a web app client
Summary: Cannot secure web services in a web app client
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Identity (show other bugs)
Version: 6.x
Hardware: All Mac OS X
: P1 blocker (vote)
Assignee: Peter Liu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-13 20:41 UTC by tonybeckham
Modified: 2007-06-21 02:12 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 tonybeckham 2007-06-13 20:41:01 UTC
System Info:
Product Version: NetBeans IDE Dev (Build 200706130000) 
Java: 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87 
System: Mac OS X version 10.4.9 running on i386; MacRoman; en_US (nb)

Problem:
Trying to enable web service security for a web service client throws exception and security is not enabled.

Steps:
-Create a Web Service in a web project and enable some Access Manager security mechanism
-Deploy the project
-Create a new Web project and in this project create a web service client of the web service you just created.
-Add code to this project that invokes the web service so you can enable security on this client. (existing bug)
-Right click the WS Client and select edit web service attributes
-Choose AM tab and select the same security as the web service and press OK

Exception:
org.openide.util.NotImplementedException
	at org.netbeans.modules.identity.profile.ui.support.J2eeProjectHelper.getWebApp(J2eeProjectHelper.java:1150)
	at
org.netbeans.modules.identity.profile.ui.support.J2eeProjectHelper.removeAMSecurityConstraint(J2eeProjectHelper.java:901)
	at org.netbeans.modules.identity.profile.ui.support.J2eeProjectHelper.disableLiberty(J2eeProjectHelper.java:850)
	at org.netbeans.modules.identity.profile.ui.support.J2eeProjectHelper.enableWSCSecurity(J2eeProjectHelper.java:761)
	at org.netbeans.modules.identity.profile.ui.WSCSecurityPanel.save(WSCSecurityPanel.java:241)
	at org.netbeans.modules.identity.profile.ui.WSCSectionNode.save(WSCSectionNode.java:53)
	at org.netbeans.modules.identity.profile.ui.SecurityView.save(SecurityView.java:74)
	at org.netbeans.modules.identity.profile.ui.editor.SecurityWSEditor.save(SecurityWSEditor.java:107)
[catch] at
org.netbeans.modules.websvc.core.wseditor.support.EditWSAttributesCookieImpl$1.run(EditWSAttributesCookieImpl.java:90)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Peter Liu 2007-06-21 02:12:09 UTC
Fix checked into trunk.