[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-6771) Exception creating top-down web service implementation class

Jeff DeLong (JIRA) jira-events at lists.jboss.org
Wed Aug 18 12:20:12 EDT 2010


    [ https://jira.jboss.org/browse/JBIDE-6771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12545682#action_12545682 ] 

Jeff DeLong commented on JBIDE-6771:
------------------------------------

I think this must be a problem related to attempting to create the Web service multiple times in the same Dynamic Web project. Once your have created it, the web.xml has been updated. The next time you try, it complains. This even happens if your server is not started, and you get the point in the wizard where you are asked to start the server. If you start the server outside Eclipse, and use the Back button, when you move forward again, you see the error.

This brings up another related issue, that the wizard complains that the Server is not started if you have started it outside of Eclipse. But why should the server be running in order to create a Web service? It appears that it is only required if you want to publish the Web server to UDDI. But even it you have not checked Publish Web service in earlier screen in the wizard, it still forces you to start the server in Eclipse. If you don't and go back, or cancel, it appears that all the artifacts have been created correctly, but gives the impression that the wizard did not complete successfully.

However, if one is careful and avoids these pitfalls, the wizard does create a web service that can be deployed.

> Exception creating top-down web service implementation class
> ------------------------------------------------------------
>
>                 Key: JBIDE-6771
>                 URL: https://jira.jboss.org/browse/JBIDE-6771
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Webservices
>    Affects Versions: 3.2.0.M1
>         Environment: Mac Eclipse 3.6 
>            Reporter: Jeff DeLong
>            Assignee: Feng Qian
>             Fix For: 3.2.x
>
>         Attachments: creditAgency.xsd, PurchaseGoodsProcess_CreditAgency.wsdl, PurchaseGoodsProcess_CreditAgency.wsdl, store.xsd
>
>
> I tried to create a top down web service from a WSDL generated by Savara plugins. When I got to the JBoss Web Service Code Generation Configuration, I go the following error
> Failed to generate implementation class
>     org.eclipse.core.runtime.CoreException: Failed to Generate Web Service code, please check the log for more details
>     at org.jboss.tools.ws.creation.core.commands.ImplementationClassCreationCommand.getCompilationUnitForInterface(ImplementationClassCreationCommand.java:446)
>     at org.jboss.tools.ws.creation.core.commands.ImplementationClassCreationCommand.generateImplClass(ImplementationClassCreationCommand.java:133)
>     at org.jboss.tools.ws.creation.core.commands.ImplementationClassCreationCommand.execute(ImplementationClassCreationCommand.java:97)
>     at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:419)
>     at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:359)
>     at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:254)
>     at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(SimpleCommandEngineManager.java:294)
>     at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
>     at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
>     at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1008)
>     at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:264)
>     at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:91)
>     at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(WizardPageManager.java:154)
>     at org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizardPage.getNextPage(SimpleWizardPage.java:136)
>     at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:887)
>     at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:426)
>     at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
>     at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
>     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3776)
>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367)
>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390)
>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
>     at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1187)
>     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3622)
>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3277)
>     at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
>     at org.eclipse.jface.window.Window.open(Window.java:801)
>     at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:254)
>     at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:274)
>     at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
>     at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
>     at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
>     at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
>     at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
>     at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
>     at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
>     at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
>     at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
>     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3776)
>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367)
>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390)
>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
>     at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1187)
>     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3622)
>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3277)
>     at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
>     at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
>     at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
>     at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
>     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>     at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
>     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>     at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
>     at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
>     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
>     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
>     at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
> eclipse.buildId=I20100608-0911
> java.version=1.6.0_20
> java.vendor=Apple Inc.
> BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
> Framework arguments:  -product org.eclipse.epp.package.jee.product -keyring /Users/jdelong/.eclipse_keyring -showlocation
> Command-line arguments:  -os macosx -ws cocoa -arch x86 -product org.eclipse.epp.package.jee.product -keyring /Users/jdelong/.eclipse_keyring -showlocation
> Error
> Tue Aug 03 16:41:40 MDT 2010
> Failed to Generate Web Service code, please check the log for more details
> org.eclipse.core.runtime.CoreException: Failed to Generate Web Service code, please check the log for more details
> at org.jboss.tools.ws.creation.core.commands.ImplementationClassCreationCommand.getCompilationUnitForInterface(ImplementationClassCreationCommand.java:446)
> at org.jboss.tools.ws.creation.core.commands.ImplementationClassCreationCommand.generateImplClass(ImplementationClassCreationCommand.java:133)
> at org.jboss.tools.ws.creation.core.commands.ImplementationClassCreationCommand.execute(ImplementationClassCreationCommand.java:97)
> at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:419)
> at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:359)
> at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:254)
> at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(SimpleCommandEngineManager.java:294)
> at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
> at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1008)
> at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:264)
> at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:91)
> at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(WizardPageManager.java:154)
> at org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizardPage.getNextPage(SimpleWizardPage.java:136)
> at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:887)
> at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:426)
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3776)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1187)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3622)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3277)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
> at org.eclipse.jface.window.Window.open(Window.java:801)
> at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:254)
> at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:274)
> at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
> at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
> at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
> at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
> at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
> at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
> at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
> at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
> at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3776)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1187)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3622)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3277)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
> at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
> My server is JBoss EAP and I used JBossWS as web services runtime. I will attach the WSDL file and XSDs.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list