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币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
自己写的一个小例子,自用
自己写的一个小例子,自己写的一个小例子,自己写的一个小例子,自用
用eclipse创建一个WebService Step by Step
用eclipse创建一个WebService应用非常方便,步骤如下: 1.安装WebService插件。www.eclipse.org网站上有下载,我下载的是wtp-all-in-one-sdk-R-1.5.4-win32,里面就包括了。 2.安装一个web服务器。我这里用的是Tomcat。 3.创建一个Webservice服务。在eclipse中创建一个动态的web工程。New->Proj
一个简单的Java开发WebService实例
一个简单的服务器端和客户端的小程序,带你进入WebService的世界。
webservice xfire实现的一个超简单的例子
在网上查了各种资料,实验了好多次,总是有些小地方耽误了,最后终于成功搭建出了xfire,回想起来其实很简单,但是看别人的笔记,难免会有些地方理解的不到位,所以抽了点时间简单的记录了下,自己做的笔记才最易懂,方便下次做的时候查看,不过可能有些忽略掉了的地方~ 一、需要下载的工具: 1、xfire(可以在网上搜,也可以去我的资源里下,本例为1.2.6) 2、tomcat(本例为7.0.27)
Servlet入门----创建第一个自己的Servlet小程序
Servlet入门----创建第一个自己的Servlet小程序 使用开发工具创建第一步: 打开Myeclipse或者Eclipse,新建一个Web project,然后新建一个类Demo01.java,勾选如下图所示位置,并选择实现接口javax.servlet.Servlet,点击Finish: 第二步:编写Servlet实现类 点击完成后,工具会自动生成,如下图所示代码,我们的目的
Eclipse+webservice简单实例搭建
文章作为学习笔记和分享用。 准备工作:下载安装eclipse和axis2-1.5.4-bin.zip(最新版本的搭建有问题就选择了此版本,下载本地找一个目录解压) 1.指定axis2路径:Window->Preferences->Web Services->Axis2 Preferences,在Axis2 Runtime界面点击Browse…选择Axis2 解压包路径。 2.新建一个web
用php写的一个超简单的webservice
这是我电某专业课上留的小作业,写一个简单的webservice,我这里就用
用eclipse创建WebService Step by Step
用eclipse创建一个WebService应用非常方便,步骤如下: 1.安装WebService插件。www.eclipse.org网站上有下载,我下载的是wtp-all-in-one-sdk-R-1.5.4-win32,里面就包括了。 2.安装一个web服务器。我这里用的是Tomcat。 3.创建一个Webservice服务。在eclipse中创建一个动态的web工程。New->Proj
自定义类用Carray的例子
刚写的用MFC的Carray加入自定义类用的例子.在网上找了很久没找到一个例子,自己写了一个.
用eclipse写一个webservice
     最近在弄所谓的appcan,公司让用webservice,但是本身net不是特别熟悉,所以百度了一下eclipse上的webservice         需要的工具eclipse-jee(一定要是j2ee版的,集成了web开发的好多东西,之前我用原版照着教程找了半天T_T)     服务器用tomcat(百度就有)     还要一个axis2(自行百度)     然后配