Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-27188

Cannot create Web Service Client using CXF 3.3.5 and wildfly 18 on Java 11

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 4.17.0.Final
    • 4.15.0.AM1
    • webservices
    • None
    • Sprint #190 Sep 2020
    • 5
    • Hide

      Environment:

      • Fedora 31
      • Apache CXF 3.3.5 or similar which should be supported on Java 11.
      • Wildfly 18
      • openjdk 11.0.6
      • Red Hat CodeReady Studio 12.15.0.AM1

      1. Download and create new CXF runtime (latest is 3.3.5) for web services

      • Preferences -> Web Services -> CXF 2.x Preferences -> CXF Runtime -> Add -> Paste a path to the cxf libraries, ie: ~/apache-cxf-2.x/apache-cxf-3.3.5

      2. Create wf 18 server adapter, Start the server
      3. Create EAR project with Dynamic web project associated with it, use wf 18 for the project and set dyn. web project facet to java 11.
      4. Start creating using wizard: Web Service Client through File -> New -> Other -> Web service Client
      5. On a wizard page, set service definition, ie. http://dneonline.com/calculator.asmx?wsdl
      6. Client type: Java proxy
      7. Set slider to deploy client
      8. Configuration
      9. Server runtime: choose wf 18
      10. Web Service runtime: Apache CFX 2.x (with cxf 3.3.5) -> Here might come the issue, we actually do not provide 3.x runtime settings..?
      11. Set the rest of configuration in your best opinion, or let default value, finish the wizard.
      12. Assert: Web service client is created
      Actual result: No web service is crated and console contains:

      -Djava.endorsed.dirs=/home/odockal/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/target/requirements/apache-cxf-2.x/apache-cxf-3.3.5 is not supported. Endorsed standards and standalone APIs
      in modular form will be supported via the concept of upgradeable modules.
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.
      
      Show
      Environment: Fedora 31 Apache CXF 3.3.5 or similar which should be supported on Java 11. Wildfly 18 openjdk 11.0.6 Red Hat CodeReady Studio 12.15.0.AM1 1. Download and create new CXF runtime (latest is 3.3.5) for web services Preferences -> Web Services -> CXF 2.x Preferences -> CXF Runtime -> Add -> Paste a path to the cxf libraries, ie: ~/apache-cxf-2.x/apache-cxf-3.3.5 2. Create wf 18 server adapter, Start the server 3. Create EAR project with Dynamic web project associated with it, use wf 18 for the project and set dyn. web project facet to java 11. 4. Start creating using wizard: Web Service Client through File -> New -> Other -> Web service Client 5. On a wizard page, set service definition, ie. http://dneonline.com/calculator.asmx?wsdl 6. Client type: Java proxy 7. Set slider to deploy client 8. Configuration 9. Server runtime: choose wf 18 10. Web Service runtime: Apache CFX 2.x (with cxf 3.3.5) -> Here might come the issue, we actually do not provide 3.x runtime settings..? 11. Set the rest of configuration in your best opinion, or let default value, finish the wizard. 12. Assert: Web service client is created Actual result: No web service is crated and console contains: -Djava.endorsed.dirs=/home/odockal/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/target/requirements/apache-cxf-2.x/apache-cxf-3.3.5 is not supported. Endorsed standards and standalone APIs in modular form will be supported via the concept of upgradeable modules. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

    Description

      When trying to create Web Service client I get:

      -Djava.endorsed.dirs=/home/odockal/git/jbosstools-integration-tests/tests/org.jboss.tools.ws.ui.bot.test/target/requirements/apache-cxf-2.x/apache-cxf-3.3.5 is not supported. Endorsed standards and standalone APIs
      in modular form will be supported via the concept of upgradeable modules.
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.
      

      Attachments

        Issue Links

          Activity

            People

              jmaury@redhat.com Jeff MAURY
              odockal@redhat.com Ondrej Dockal
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: