2 Replies Latest reply on Nov 11, 2008 1:46 AM by Stefan Woerner

    call/ start bpel process from web application

    Stefan Woerner Newbie

      hello,

      i have created my own bpel process, deployed it use an ant script and tested it using soap ui. it seems that so far everything works fine.
      now i have created an web application in eclipse (dynamic web project) and i want to call/ invoke/ start the bpel process from an servlet inside the web application. therefore i want to create a web service client in eclipse (new -> other -> web services -> web service client). i typed in the address of the bpel process wsdl

      configuration:
      - server: jboss v4.2
      - web service runtime: apache axis

      and clicked finish, but then i get the following error:

      IWAB0014E Unexpected exception occurred.
      
       java.lang.NullPointerException
       at org.eclipse.jst.ws.internal.axis.consumption.ui.task.Stub2BeanCommand.execute(Stub2BeanCommand.java:121)
       at org.eclipse.jst.ws.internal.axis.consumption.ui.task.ClientCodeGenOperation$ClientWSModifyOperation.execute(ClientCodeGenOperation.java:110)
       at org.eclipse.jst.ws.internal.axis.consumption.ui.task.ClientCodeGenOperation.execute(ClientCodeGenOperation.java:61)
       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:369)
       at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
       at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
       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.performFinish(WizardPageManager.java:262)
       at org.eclipse.wst.command.internal.env.ui.widgets.DynamicWizard.performFinish(DynamicWizard.java:380)
       at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
       at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
       at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:618)
       at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
       at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
       at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
       at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
       at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
       at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
       at org.eclipse.jface.window.Window.open(Window.java:796)
       at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:182)
       at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
       at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
       at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
       at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
       at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
       at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
       at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
       at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
       at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
       at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
       at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
       at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
       at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
       at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
       at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
       at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
       at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
       at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
       at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
       at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
       at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
       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:508)
       at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
       at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
      


      if i do that procedure with other web services i works fine. can't i access the bpel process that way? what do i have to do, to start the bpel process form the servlet and to get the response of the process and present it in an jsp.

      thanks for your help!!!
      greetings stefan