如何排除Axis 2错误 [英] How to troubleshoot Axis 2 Error

查看:150
本文介绍了如何排除Axis 2错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了WSDL,我想将AXIS 2用作我的Web服务器.

I have created a WSDL and I wanted to make use of AXIS 2 as my web server.

我将其下载到了C:\ axis2-1.6.1中,并设置了所有必需的安装参数.

I downloaded it into my C:\axis2-1.6.1 and set all the required installation parameters.

我的问题是,我将我的* .aar文件部署到了repository/services文件夹和axis2server中 能够解压缩它,当我导航到

My question is, I deployed my *.aar file into the repository/services folder and the axis2server was able to decompressed it and I see my web service when I navigate into the

http://localhost:8080

当我使用SOAPUI来测试我的服务时,我只会收到此错误.

When I used SOAPUI to test my service, I am only getting this error.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Server</faultcode>
         <faultstring>unknown</faultstring>
         <detail/>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>

不确定,但在Axis控制台上看不到任何错误吗?

Not sure but I do not see any error on the Axis console?

在哪里可以找到解决此问题的任何相关信息?

Where can I find any relevant info to solve this problem?

推荐答案

此链接包含一些有关配置轴以在故障消息中包括堆栈跟踪的建议:

This link contains a couple of pieces of advice on configuring axis to include stacktraces in the fault message:

http://www.mail-archive. com/axis-user@ws.apache.org/msg41600.html

万一它被删除,下面是基思·查普曼的建议:

In case it gets removed, here's Keith Chapman's suggestion reproduced:

尝试在axis2.xml中设置这两个参数

Try setting these two parameters in your axis2.xml

<parameter name="sendStacktraceDetailsWithFaults">true</parameter>
<parameter name="DrillDownToRootCauseForFaultReason">true</parameter>

这不是知道错误输出的去向的替代方法,但可以解决当前的问题.

It's not a replacement for knowing where your error output is going, but it may help with the immediate problem.

这篇关于如何排除Axis 2错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆