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 132164 - Unable to create "Web Service Clients" JavaFX project
Summary: Unable to create "Web Service Clients" JavaFX project
Status: VERIFIED INVALID
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Victor Vasilyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-07 10:20 UTC by David Kaspar
Modified: 2011-10-19 12:01 UTC (History)
1 user (show)

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 David Kaspar 2008-04-07 10:20:35 UTC
Creating "Web Service Clients" are not allowed in JavaFX. The client immediately ends with on message. On JavaSE project
if works without any problem.

The workaround is to have a JavaSE project for the "Web Service Client" and set a dependency on the JavaSE project to
JavaFX project.
This issue is critically needed for JavaOne demos. Since we do not have severities, I am setting as P1.
CCing Adam Sotona who found out some commented out items from the lookup of JavaFXProject class that may be related to
the issue.
Comment 1 Martin Ryzl 2008-04-17 13:49:09 UTC
is this still P1? If not change to P3.
Comment 2 Alexei Mokeev 2008-04-18 14:38:33 UTC
I downgraded it to P3 since it is not critical for the plug-in functionality.
Victor is working on the fix now.

If this is a really stopper for any J1 activities - please make it P1 again.
Comment 3 Andrey Yamkovoy 2008-04-23 15:07:21 UTC
Changed target to M3 because looks like it's need some implementation in the module of Web Service Client outside of plugin.
Comment 4 Victor Vasilyev 2008-04-23 15:52:10 UTC
Investigation was completed for the JAX-WS Style Client only.
Issues during generation of the JAX-RPC Style Client should be additionally investigated.

To fix this issue in case of the JAX-WS Style Client we need to do the following:

1. Refactoring the org.netbeans.modules.javafx.project.classpath.JavaFXProjectClassPathModifier class, including:
1.1 fixing the import statement, the field declaration and the parameter of the constructor:
import org.netbeans.api.project.Project; -> import org.netbeans.modules.javafx.project.JavaFXProject;
private final Project project; -> private final JavaFXProject project;
public JavaFXProjectClassPathModifier(final Project project, ...) -> public JavaFXProjectClassPathModifier(final
JavaFXProject project, , ...)
1.2. fixing implementation of the private getClassPathProperty(final SourceGroup sg, final String type) method:
NOW:
final String classPathProperty =
((ClassPathProviderImpl)project.getLookup().lookup(ClassPathProviderImpl.class)).getPropertyName (sg, type);
SHOUL BE:
final String classPathProperty = project.getClassPathProvider().getPropertyName (sg, type);

2. Provide additional content in the SystemFileSystem if the WS Client Support is installed in IDE:
<filesystem>
  <folder name="Projects">
    <folder name="org-netbeans-modules-javafx-project">
      <folder name="Nodes">
        <file name="org-netbeans-modules-websvc-core-ProjectWebServiceNodeFactory.instance">
          <attr name="position" intvalue="260"/>
        </file>        
      </folder>
      <folder name="Lookup">
        <!-- populate J2SE Project Lookup with WS Client Support -->
        <file name="org.netbeans.modules.websvc.core.jaxws.projects.J2SEWSSupportLookupProvider.instance"/>
        <file name="org.netbeans.modules.websvc.jaxwsmodel.project.J2seJaxWsLookupProvider.instance"/>
      </folder>        
    </folder>
  </folder>
</filesystem> 

3. Change content of the jaxws-build.xml that will be used for the JavaFX projects:
3.1. change XML namespace:
xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" ->
xmlns:javafxproject3="http://www.netbeans.org/ns/javafx-project/3"
3.2. change all elements in the wsimport-client-compile task that use the j2seproject3 namespace:
j2seproject3:depend -> javafxproject3:depend
j2seproject3:javac -> javafxproject3:javac

Discussion:
----------
The #3 can be fixed in the org.netbeans.modules.websvc.jaxwsmodel.project.J2seJaxWsLookupProvider or a special
JavaFXJaxWsLookupProvider class can be additionally implemented. In the last case, registration of the provider
mentioned in the #2 should be also changed.
Actually, to fix #3 we need have a special version of the
JAX_WS_STYLESHEET_RESOURCE="/org/netbeans/modules/websvc/jaxwsmodel/resources/jaxws-j2se.xsl" that will be used for
generation of the jaxws-build.xml in case of the JavaFX project.

The best place to fix #2 and #3 is the WS Client Support modules (not JavaFX modules). 
Comment 5 Adam Sotona 2009-01-06 14:39:16 UTC
Java Web Services will not be supported in JavaFX project type and JavaFX Web Services are not yet specified.
Comment 6 Alexandr Scherbatiy 2009-01-12 11:31:35 UTC
verified
Comment 7 David Strupl 2011-10-19 12:01:57 UTC
Cleaning bugzilla categories ....