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 72093 - REGRESSION: Cannot create Web Service from existing sources in webapps
Summary: REGRESSION: Cannot create Web Service from existing sources in webapps
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-31 22:35 UTC by _ pcw
Modified: 2006-08-21 16:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
web project w/ POJO to help reproduce this bug. (12.26 KB, application/octet-stream)
2006-01-31 22:40 UTC, _ pcw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ pcw 2006-01-31 22:35:58 UTC
I just tried to create a web service from existing sources in a web application
but I can't.  The file chooser on the second page only allows selection of
session beans, rather than session beans and existing classes.

Steps:

New Web app.
Create a java class w/ a POJO containing various getter's & setter's (or use the
attached project w/ com.service.MyClass.
Invoke <New Web Service Wizard>
Set the com.service package
Check [use existing code] box.
Select <Next>

Note panel only allows selection of session beans (of which there won't be any
if this is the only project open.)

This is a regression from NB 4.1 and is caused by the fix for bug #65946 which
disabled selection of java classes that were not session beans.  As far as I can
tell, the fix for 65946 should have only been for EJB Projects, not Web Apps,
but this code is shared so as written, the change affects both project types.
Comment 1 _ pcw 2006-01-31 22:40:13 UTC
Created attachment 28686 [details]
web project w/ POJO to help reproduce this bug.
Comment 2 Lukas Jungmann 2006-02-01 10:37:21 UTC
   We decided to disable this posibility because we found it useless. The
implementation only created new websvc and added package protected field of type
<selectedClass> into the new websvc. What's the diference here between creating
new websvc from scratch and adding field manually? I think only less typing,
which is not so significant when you're using abbrevs + CC. Or overlooked we(I)
something important/hidden?

   I've filed issue #59664 long time age to improve this use case, maybe it was
overlooked - simply it has not been implemented yet.

   Milane, do you have some other comments?
Comment 3 Milan Kuchtiak 2006-03-07 17:56:23 UTC
The feature is now working for session beans (Delegator to existing Session Bean
option in Web Service wizard) :
Fix :
http://websvc.netbeans.org/source/browse/websvc/dev/src/org/netbeans/modules/websvc/dev/wizard/Attic/WebServiceCreator.java?r1=1.1.2.6&r2=1.1.2.7

However, the selection of regular classes in WS wizard will not be supported as
this feature will be replaced by "Convert to Web Service" action available for
java classes.
Comment 4 Jaroslav Pospisil 2006-08-21 16:39:11 UTC
VERIFIED