Java IWAB0014E 创建 Web 服务时发生意外异常
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20246239/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
IWAB0014E Unexpected exception occurred while creating web service
提问by nitesh.kodle123
I'm trying to create a web service, as I am new to web service development I followed the following post. I am using Ecplise Helios,Windows 7 32 bit,Tomcat v6.0
我正在尝试创建一个 Web 服务,因为我是 Web 服务开发的新手,所以我关注了以下帖子。我正在使用 Ecplise Helios,Windows 7 32 位,Tomcat v6.0
There are three steps: 1.Create Dynamic Web project. 2. Create Web Service Provider Java Class. 3.Create a Web Service.
共有三个步骤: 1. 创建动态 Web 项目。2. 创建 Web 服务提供者 Java 类。3.创建一个网络服务。
At point 3.create a Web service I am getting two error:
在点 3.create a Web service 我收到两个错误:
1.Several ports (8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
1. Tomcat v6.0 Server at localhost需要的几个端口(8080、8009)已经在使用。服务器可能已经在另一个进程中运行,或者系统进程可能正在使用该端口。要启动此服务器,您需要停止其他进程或更改端口号。
This error has been resolved using one of the community post.
此错误已使用社区帖子之一解决。
2.IWAB0014E Unexpected exception occurred. The char '0x0' after 'return code: 400 Cycle Detected
2.IWAB0014E 发生意外异常。'return code: 400 Cycle Detected 后的字符'0x0'
Cycle Detected
检测到循环
Description: Your request is prohibited because it would cause a cycle.描述:您的请求被禁止,因为它会导致循环。
' 不是有效的 XML 字符。
java.lang.IllegalArgumentException: The char '0x0' after 'return code: 400
<HEAD><TITLE>Cycle Detected</TITLE></HEAD>
<BODY BGCOLOR="white" FGCOLOR="black"><H1>Cycle Detected</H1><HR>
<FONT FACE="Helvetica,Arial"><B>
Description: Your request is prohibited because it would cause a cycle.</B></FONT>
This error is some what similar to this postbut the error code returned is different in my case it is "400"
这个错误与这篇文章有些类似,但返回的错误代码在我的情况下是“400”
Any tips on how to resolve this would be greatly appreciated.
任何有关如何解决此问题的提示将不胜感激。
采纳答案by ARIJIT
This is happening because of improper setup of Axis2.
发生这种情况是因为 Axis2 设置不当。
Steps:
脚步:
- Download Axis2 : Link--> http://ws.apache.org/axis2/download.cgi
- Point the Axis2 runtime dir in eclipse : Menu--> Windows--> Preference --> Web Services--> Axis2 Preferences
- 下载Axis2:链接--> http://ws.apache.org/axis2/download.cgi
- 在 Eclipse 中指向 Axis2 运行时目录:Menu--> Windows--> Preference --> Web Services--> Axis2 Preferences
Follow this link for more details: http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html
点击此链接了解更多详情:http: //www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html