Java 轴故障字符串

发布于 2024-10-15 01:05:46 字数 350 浏览 5 评论 0原文

我正在使用 Axis 生成单个方法类的 Web 服务。 该方法实例化另一个类,该类导入我已添加到构建路径中的 jar 文件中包含的库。

我创建了一个测试类来测试该方法,一切都按预期工作。

通过从客户端运行生成的 Web 服务,我收到如下错误字符串:

<faultcode>soapenv:Server</faultcode>
<faultstring>class on the jar file</faultstring>

我尝试将 jar 文件放置在多个位置,但没有成功。

有什么建议吗?

提前致谢...

I'm using Axis to generate a Web Service of a single method class.
That method instantiates another class that imports a librarys that are contained on a jar file I already added to the build path.

I've created a test class to test from the method and everithing works as expected.

By running the generated web service from a client I get an error string like this:

<faultcode>soapenv:Server</faultcode>
<faultstring>class on the jar file</faultstring>

I've tried placing the jar file on several places but with no luck.

Any suggestion?

Thanks in advance...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

慵挽 2024-10-22 01:05:46

这个问题的解决方案非常简单。

最初的项目是 EAR 项目的一部分。

我刚刚将 JAR 文件添加到 EAR 项目依赖项中,瞧,问题解决了(尽管理解它,原始项目已经在 EAR 项目依赖项中,但是......无论如何......)

The solution for this was quite simple.

The original project was part of an EAR project.

I just added the JAR file to the EAR project dependencies and voilá, problem solved (despite making sense of it the original project was already on the EAR project dependencies, but... whatever...)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文