Java 轴故障字符串
我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个问题的解决方案非常简单。
最初的项目是 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...)