Hi All,

I am new to webservices.I am using eclipse,tomacat6 and axis2.

When i was converting a class to webservice upto WSDL creation

was done.After that i was getting error like

IWAB0014E Unexpected exception occurred.

and details are

IWAB0014E Unexpected exception occurred.
  The char '0x0' after 'return code:  502
<HEAD><TITLE>Connection refused</TITLE></HEAD>
<BODY BGCOLOR="white" FGCOLOR="black"><H1>Connection refused</H1><HR>
<FONT FACE="Helvetica,Arial"><B>
Description: Connection refused</B></FONT>
<HR>
<!-- default "Connection refused" response (502) -->
</BODY>
' is not a valid XML character.

      java.lang.IllegalArgumentException: The char '0x0' after 'return code:  502
      <HEAD><TITLE>Connection refused</TITLE></HEAD>
      <BODY BGCOLOR="white" FGCOLOR="black"><H1>Connection refused</H1><HR>
      <FONT FACE="Helvetica,Arial"><B>
      Description: Connection refused</B></FONT>
      <HR>
      <!-- default "Connection refused" response (502) -->
      </BODY>
      ' is not a valid XML character.
      at org.apache.axis.components.encoding.AbstractXMLEncoder.encode(AbstractXMLEncoder.java:110)
      at org.apache.axis.utils.XMLUtils.xmlEncodeString(XMLUtils.java:131)
      at org.apache.axis.utils.DOM2Writer.normalize(DOM2Writer.java:344)
      at org.apache.axis.utils.DOM2Writer.print(DOM2Writer.java:246)
      at org.apache.axis.utils.DOM2Writer.print(DOM2Writer.java:208)
      at org.apache.axis.utils.DOM2Writer.serializeAsXML(DOM2Writer.java:77)
      at org.apache.axis.utils.DOM2Writer.serializeAsXML(DOM2Writer.java:60)
      at org.apache.axis.utils.DOM2Writer.nodeToString(DOM2Writer.java:49)
      at org.apache.axis.utils.XMLUtils.privateElementToString(XMLUtils.java:433)
      at org.apache.axis.utils.XMLUtils.ElementToString(XMLUtils.java:442)
      at org.apache.axis.utils.XMLUtils.getInnerXMLString(XMLUtils.java:542)
      at org.apache.axis.AxisFault.dumpToString(AxisFault.java:388)
      at org.apache.axis.tools.ant.axis.AdminClientTask.executeInCurrentVM(AdminClientTask.java:363)
      at org.apache.axis.tools.ant.axis.AdminClientTask.execute(AdminClientTask.java:316)
      at org.eclipse.jst.ws.internal.axis.consumption.core.command.AxisDeployCommand.executeAntTask(AxisDeployCommand.java:128)
      at org.eclipse.jst.ws.internal.axis.consumption.core.command.AxisDeployCommand.execute(AxisDeployCommand.java:89)
      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.performFinish(WizardPageManager.java:262)
      at org.eclipse.wst.command.internal.env.ui.widgets.DynamicWizard.performFinish(DynamicWizard.java:382)
      at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:811)
      at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:430)
      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.Widget.sendEvent(Widget.java:1053)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
      at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
      at org.eclipse.jface.window.Window.open(Window.java:801)
      at org.eclipse.wst.command.internal.env.ui.widgets.popup.DynamicPopupWizard.run(DynamicPopupWizard.java:130)
      at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
      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:1053)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
      at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
      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(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:620)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1408)

Please help me out.And if was going wrong tell the the requirements

and procedure to convert a class into webservice on eclipse ide.

Thanks.

Please guide me how to configure apache axis with eclipse.

I did but i have doubt whether i was going in the right path.

Since error i was getting when i deploying to axis

Hi,

Here is a suggestion for you. I was also facing the same problem, but this solution worked for me. Just try.

Upto WSDL creation, u have done rite?

Just right click on the Java file which you have created for WS.

Select WEb Services --> Create Web Service

Now select the Web Service type as " Bottom Up" approach.

Select the Client type bar selection upto "Test Client" (full).

Now give Finish and check.

This article has been dead for over six months. Start a new discussion instead.