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 145213 - Can't add JAX-RPC web service client to EJB 3.0 Module project in NetBeans 6.5
Summary: Can't add JAX-RPC web service client to EJB 3.0 Module project in NetBeans 6.5
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-RPC (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-26 20:41 UTC by rdelaplante
Modified: 2008-10-14 08:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
error message 1 (28.12 KB, image/png)
2008-08-26 20:42 UTC, rdelaplante
Details
Error message 2 (9.46 KB, image/png)
2008-08-26 20:43 UTC, rdelaplante
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rdelaplante 2008-08-26 20:41:58 UTC
Every time I try to add a web service client to the project it gives me a couple of error message boxes. I'll attach
some screenshots.   This is a regression from 6.1, which also had problems that made JAX-RPC unusable compared to NB 6.0
Comment 1 rdelaplante 2008-08-26 20:42:34 UTC
Created attachment 68377 [details]
error message 1
Comment 2 rdelaplante 2008-08-26 20:43:13 UTC
Created attachment 68378 [details]
Error message 2
Comment 3 rdelaplante 2008-08-26 20:43:54 UTC
After the second message box the output window says:

Target "FolioService1-client-wscompile" does not exist in the project "EJBModule1". 
BUILD FAILED (total time: 0 seconds)
Comment 4 rdelaplante 2008-08-26 20:45:56 UTC
Hopefully last comment... the WSDL URL uses https on port 8443 and HTTP BASIC authentication (user/password).  I can
generate and use a client from NB 6.1 and NB 6.0 for this URL.
Comment 5 Lukas Jungmann 2008-08-26 21:33:35 UTC
Support for JAXRPC clients in EJB modules was added in 6.1 but ejb modules schema has not been updated to allow
web-service-clients element therefore validation on project.xml (which was implemented ~1-2months ago) fails.

Passing to Rico and cc'ing David (maintainer of ejbjarproject) since I'm not 100% sure if this can be fixed in a
backward compatible way without updating ejbjar project's schema
Comment 6 Lukas Jungmann 2008-08-26 21:35:18 UTC
I mean "without updating a version of ejbjar project's schema"
Comment 7 David Konecny 2008-08-26 23:33:27 UTC
I cannot (or perhaps just do not know how to) reproduce it. Enhancing existing schema should resolve the problem - all
you want to do is to add this optional element there. In general Web Services should have had their own schema and data
section in project.xml.
Comment 8 Lukas Jungmann 2008-08-27 00:15:58 UTC
here are steps:
-get some 6.5 build (or use the local one build with cluster.config=j2ee)
-install JAX-RPC module from dev UC[1]
-restart the IDE
-create new EJB module
-go to new File -> Web Services -> Web Service client wizard
-switch to WSDL URL and use there: http://ws.fraudlabs.com/browserobjectwebservice.asmx?wsdl
-change JAX version combo from JAX-WS to JAX-RPC
-finish the wizard

=> fails with validation error

[1]: or get *jaxrpc* (3) + *registry (1) nbms files from
http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/extra/
Comment 9 Jaroslav Pospisil 2008-08-27 09:47:53 UTC
The problem lies somewhere else - we should never allow creation of JAX-RPC ws client for EJB,since it's impossible due
to missing support for JAX-RPC in EJB. This issue should be about fact,that Client Style dropdownlist in ws client
wizard is enabled for EJB3 module,which is wrong.There should be only JAX-WS option permanently selected and
dropdownlist disabled.
Comment 10 rdelaplante 2008-08-27 10:01:24 UTC
Are you sure about that? I asked a similar question about JAX-RPC/EJB service endpoints instead of clients the in
GlassFish users forums:  

"Can EJB 3.0 expose JAX-WS *and* JAX-RPC endpoints?" Kenneth Saks (lead architect of EJB 3.0 container) said:

From a spec perspective there's no limitation that all components in a module or application have to be one or the
other. Each stateless session bean can be implemented as either a JAX-WS or JAX-RPC endpoint. Of course, JAX-WS is the
recommended approach going forward. JAX-RPC will be a candidate for pruning from a future version of the Java EE
platform and will not be available as an option for the new EJB 3.1 Singleton component.

http://forums.java.net/jive/thread.jspa?messageID=295440
Comment 11 Milan Kuchtiak 2008-08-27 10:46:11 UTC
We need to upgrade schema file for project.xml.
It's just a luck it was working in 6.1 since there was no project.xml validation against the schema file.
Working on that for now.
Comment 12 Milan Kuchtiak 2008-08-27 11:10:57 UTC
XML schema for project.xml upgraded:
http://hg.netbeans.org/main?cmd=changeset;node=30057fd91295

We also need to update xml schema located at
http://www.netbeans.org/ns/j2ee-ejbjarproject/3.xsd
Comment 13 Lukas Jungmann 2008-08-27 11:18:20 UTC
public schema on the web updated as well:

IDE: [8/27/08 12:16 PM] Committing "3.xsd" started
Checking in 3.xsd;
/cvs/www/www/ns/j2ee-ejbjarproject/3.xsd,v  <--  3.xsd
new revision: 1.4; previous revision: 1.3
done
IDE: [8/27/08 12:16 PM] Committing "3.xsd" finished

=> f.
Comment 14 Quality Engineering 2008-08-28 06:32:42 UTC
Integrated into 'main-golden', available in build *200808280201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/30057fd91295
User: mkuchtiak@netbeans.org
Log: #145213: extend schema for project.xml
Comment 15 Martin Fousek 2008-10-14 08:17:42 UTC
Verified with NetBeans IDE Dev (Build 200810140201).