9 Replies Latest reply on May 19, 2010 10:44 AM by jlukas

    Creation of a Web Service from a WSDL document

    rinia

      Hi,

       

      I want to create a Web Service from a WSDL document using JBossWS runtime (within JBoss AS 5.1). I look at the JBoss Tools documentation for this topic but I cannot create a Web Service because the wizard does not start by using the Eclipse New wizard (File > New >  Other > Web Services > Web Service > now the Next button does not start the wizard). But the wizard for the Web Service client works fine. Any idea?

       

      I'm using JBoss WebServices Tools 1.1.0 within JBoss Tools 3.1 on Eclipse Galileo.

        • 1. Re: Creation of a Web Service from a WSDL document
          grid.qian

          If only the wizard can't be used, it should be eclipse problem, not jboss tools.

          Anyway, could you upload the project and the error log view messages?

          • 2. Re: Creation of a Web Service from a WSDL document
            rinia

            Hi Feng,

             

            thanks for your help. The Eclipse project is attached. In the Eclipse project you will find the test WSDL in the folder

             

            WebContent/META-INF

             

            I have generated now the classes manually by using wsconsume on the command line. Hmm, the error logs? Where could I find the error logs?

            • 3. Re: Creation of a Web Service from a WSDL document
              grid.qian

              It works for me. I don't know the reason for your problem.

              You can get the error message from error log view by Window->Show View->Others-> Error Log.

              1 of 1 people found this helpful
              • 4. Re: Creation of a Web Service from a WSDL document
                rinia

                Your assumption seems to be right. It seems an Eclipse problem (Web Standard Tools). Nevertheles, do you have any idea to remedy the problem?

                 

                Here is the error log:

                 

                null
                Error
                Tue May 18 09:58:28 CEST 2010
                Unhandled event loop exception

                 

                java.lang.NullPointerException
                at org.eclipse.wst.command.internal.env.ui.widgets.DynamicWizard.getRootFragment(DynamicWizard.java:412)
                at org.eclipse.wst.command.internal.env.ui.widgets.DynamicWizard.init(DynamicWizard.java:280)
                at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizard(WorkbenchWizardNode.java:185)
                at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage.java:104)
                at org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(WorkbenchWizardSelectionPage.java:100)
                at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:823)
                at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
                at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
                at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
                at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
                at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
                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:253)
                at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:273)
                at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)
                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.Widget.sendEvent(Widget.java:1003)
                at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
                at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
                at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
                at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
                at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
                at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
                at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
                at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
                at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
                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:368)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
                at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
                at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

                • 5. Re: Creation of a Web Service from a WSDL document
                  grid.qian

                  No more ideas for this. create a new workspace to test, or download a new eclipse or jboss tools.

                  • 6. Re: Creation of a Web Service from a WSDL document
                    jlukas

                    I had similar problem when I installed JBossTools to unsupported  Eclipse variant. When I started with Eclipse IDE for Java EE Developers then  everything worked as expected. Could this be the problem?

                     

                    Note:

                    my steps were:

                     

                    -install Eclipse  Classic 3.5.2

                    -install JBossTools to it

                    -create Dynamic web  project

                    -invoke New Web Service wizard

                     

                    => got  the same error/exception

                     

                    Console also shown:

                    org.eclipse.core.runtime.CoreException:  Plug-in "org.eclipse.jst.ws.creation.ui" was unable to instantiate  class  "org.eclipse.jst.ws.internal.creation.ui.widgets.binding.ServerWidgetBinding".
                         at  org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:180)

                    ...

                     

                    seems like there's some dependency from WTP missing

                     

                    Message was edited by: Lukas Jungmann

                    • 7. Re: Creation of a Web Service from a WSDL document
                      grid.qian

                      I think you should download the jee version of eclipse, not classic

                      • 8. Re: Creation of a Web Service from a WSDL document
                        maxandersen

                        How did you install jbosstools ?

                         

                        If you used the updatesites it should have told you that it would need to get WTP dependencies which you wont have when running eclipse classic.

                         

                        I'm surprised you could even startup with JBoss Tools without errors ?

                        • 9. Re: Creation of a Web Service from a WSDL document
                          jlukas

                          {quote}How did you install jbosstools ?{quote}

                           

                          Don't know how Andreas but I did it through update site (3.1.0GA) and the only warning I saw in the update/install wizard was about unsatisfied BIRT dependencies. The start up went well, I did not notice any apparent errors but I did not run eclipse with '-debug' option nor did have opened Error Log view in the IDE.