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 54986

Summary: Failed to create Web Service Client
Product: webservices Reporter: L Martinek <lmartinek>
Component: CodeAssignee: Milan Kuchtiak <mkuchtiak>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P1    
Version: 4.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE.log

Description L Martinek 2005-02-15 13:56:57 UTC
[Build 200502142300, JDK 1.5.0_02]

I tried to create Web Service Client of type J2EE
1.4 (JSR-109), but exceptions were thrown and
client was not created.

java.lang.RuntimeException: CommonDDAccess.addBean
unexpected exception:
, package =
org.netbeans.modules.j2ee.dd.impl.web.model_2_4,
beanName = ServiceRef
java.lang.ClassNotFoundException:
org.netbeans.modules.j2ee.dd.api.web.ServiceRef:
org.netbeans.modules.j2ee.dd.api.web.ServiceRef 

My test case:
1. I created Enterprise Application with EJB
Module and Web Application. 
2. I created session bean in EJB Module.
3. I created web service in Web Application, which
call EJB.
4. I created new Web Application and tried to
create Web Service client.
Comment 1 L Martinek 2005-02-15 13:57:28 UTC
Created attachment 20351 [details]
IDE.log
Comment 2 _ pcw 2005-02-15 16:07:26 UTC
This appears to be fallout from migration of ServiceRef from web/ejb
model to common ddbean model.  Exception is on invocation of
addBean("ServiceRef", propName, PropValues, keyProp) and model is
attempting to create bean using the old package location
(org.netbeans.modules.j2ee.dd.api.web.ServiceRef)
Comment 3 Milan Kuchtiak 2005-02-16 13:47:59 UTC
The issue was fixed yesterday :
http://j2ee.netbeans.org/source/browse/j2ee/ddapi/src/org/netbeans/modules/j2ee/dd/impl/common/CommonDDAccess.java.diff?r1=1.3&r2=1.4

(before Beta branch)
Comment 4 L Martinek 2005-02-16 13:59:39 UTC
verified