2 zw 6234336 zw_6234336 于 2013.09.12 10:17 提问

自己按照网上的步骤写了一个在eclipse 写webservice的小例子 中间报错 求解

IWAB0014E Unexpected exception occurred.
The char '0x0' after 'return code: 504

Unknown Host

Unknown Host




Description: Unable to locate the server named "localhost" --- the server does not have a DNS entry. Perhaps there is a misspelling in the server name, or the server no longer exists. Double-check the name and try again.


' is not a valid XML character.

  java.lang.IllegalArgumentException: The char '0x0' after 'return code:  504
  <HEAD><TITLE>Unknown Host</TITLE></HEAD>
  <BODY BGCOLOR="white" FGCOLOR="black"><H1>Unknown Host</H1><HR>
  <FONT FACE="Helvetica,Arial"><B>
  Description: Unable to locate the server named "<em>localhost</em>" --- the server does not have a DNS entry.  Perhaps there is a misspelling in the server name, or the server no longer exists.  Double-check the name and try again.</B></FONT>
  <HR>
  <!-- default "Unknown Host" response (504) -->
  </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.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.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(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:620)
  at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
  at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
  at org.eclipse.equinox.launcher.Main.main(Main.java:1384)

1个回答

oyljerry
oyljerry   Ds   Rxr 2015.01.05 18:41

直接用127.0.0.1呢。

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!