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

Cannot create Web Service from a wsdl definition using wildfly 22 and Apache CXF 3.3.5+

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • LATER
    • 4.19.0.AM1
    • upstream, webservices
    • None
    • Hide

      1. Create WildFly 22 (24+) server runtime and have it started
      2. Add Apache CXF at least 3.3.5 (3.4.3) runtime into Eclipse prefs (Preferences -> Web Services -> CXF 2.x Preferences -> Add), can be downloaded at [1]
      3. Create Dynamic web project to host new Web Service
      4. File -> New -> Other... -> Web services -> Web Service
      5. Fill in some online wsdl (ie. http://www.dneonline.com/calculator.asmx?wsdl) - top down Java Bean web service
      6. Choose WF as server runtime
      7. Web service runtime -> choose CXF 2.x
      8. Select project created
      9. Next
      10. ASSERT: You can continue creating client
      Actual result, error posted in description.

      [1]: http://cxf.apache.org/download.html

      Show
      1. Create WildFly 22 (24+) server runtime and have it started 2. Add Apache CXF at least 3.3.5 (3.4.3) runtime into Eclipse prefs (Preferences -> Web Services -> CXF 2.x Preferences -> Add), can be downloaded at [1] 3. Create Dynamic web project to host new Web Service 4. File -> New -> Other... -> Web services -> Web Service 5. Fill in some online wsdl (ie. http://www.dneonline.com/calculator.asmx?wsdl ) - top down Java Bean web service 6. Choose WF as server runtime 7. Web service runtime -> choose CXF 2.x 8. Select project created 9. Next 10. ASSERT: You can continue creating client Actual result, error posted in description. [1] : http://cxf.apache.org/download.html
    • Workaround Exists
    • Hide

      Option1: Instead of going for CXF runtime try using Apache Axis (Deprecated) or JBossWS which will let you continue with service client definition.

      Option 2:
      Update order of source/src folder in Dyn. Web Project -> Properties -> Java Build Path -> Order and export, so that src folder is at the top.

      Show
      Option1: Instead of going for CXF runtime try using Apache Axis (Deprecated) or JBossWS which will let you continue with service client definition. Option 2: Update order of source/src folder in Dyn. Web Project -> Properties -> Java Build Path -> Order and export, so that src folder is at the top.
    • Undefined

      I failed to create web service client from wsdl definition when using WildFly server 22 as runtime for webservices.

      I got this error when handling Web Service wizard:

      IWAB0014E Unexpected exception occurred.
        
            java.lang.NullPointerException
            at org.eclipse.jst.ws.jaxws.core.utils.JDTUtils.getJavaProjectSourceDirectoryPath(JDTUtils.java:159)
            at org.eclipse.jst.ws.jaxws.core.utils.JDTUtils.getJavaProjectSourceDirectoryPath(JDTUtils.java:146)
            at org.eclipse.jst.ws.internal.cxf.consumption.core.commands.WSDL2JavaClientDefaultingCommand.execute(WSDL2JavaClientDefaultingCommand.java:85)
            at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:421)
            at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:361)
            at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:256)
            at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(SimpleCommandEngineManager.java:296)
            at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:436)
            at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:352)
            at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1033)
            at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:266)
            at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:93)
            at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(WizardPageManager.java:156)
            at org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizardPage.getNextPage(SimpleWizardPage.java:138)
            at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:910)
            at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:468)
            at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:619)
            at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84)
            at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
            at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5831)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1427)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1453)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1436)
            at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1225)
            at org.eclipse.reddeer.core.handler.WidgetHandler$3.run(WidgetHandler.java:150)
            at org.eclipse.reddeer.common.util.Display$VoidResultRunnable.run(Display.java:196)
            at org.eclipse.reddeer.common.util.Display$VoidResultRunnable.run(Display.java:1)
            at org.eclipse.reddeer.common.util.Display$ErrorHandlingRunnable.run(Display.java:162)
            at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
            at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
            at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:5067)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4573)
            at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
            at org.eclipse.jface.window.Window.open(Window.java:799)
            at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:263)
            at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:283)
            at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283)
            at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
            at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.base/java.lang.reflect.Method.invoke(Method.java:566)
            at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
            at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:319)
            at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:253)
            at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
            at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
            at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
            at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
            at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
            at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:389)
            at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:142)
            at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:580)
            at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:414)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
            at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5831)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1427)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1453)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1436)
            at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1225)
            at org.eclipse.reddeer.core.handler.MenuItemHandler$4.run(MenuItemHandler.java:109)
            at org.eclipse.reddeer.common.util.Display$VoidResultRunnable.run(Display.java:196)
            at org.eclipse.reddeer.common.util.Display$VoidResultRunnable.run(Display.java:1)
            at org.eclipse.reddeer.common.util.Display$ErrorHandlingRunnable.run(Display.java:162)
            at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
            at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
            at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:5067)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4573)
            at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1157)
            at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
            at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
            at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
            at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
            at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
            at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
            at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
            at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
            at org.eclipse.reddeer.jdt.junit.UITestApplication.start(UITestApplication.java:69)
            at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
            at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.base/java.lang.reflect.Method.invoke(Method.java:566)
            at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
            at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
            at org.eclipse.equinox.launcher.Main.run(Main.java:1461)
            at org.eclipse.equinox.launcher.Main.main(Main.java:1434)
      

              stephane.bouchet Stephane Bouchet
              odockal@redhat.com Ondrej Dockal
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: