关于运行时位置的轴错误

发布于 2024-08-20 10:11:14 字数 273 浏览 14 评论 0原文

错误是:

读取时发生异常或 写入文件{0}Axis2 方面 由于 Axis2 无法安装 运行时位置尚未设置。去 到 Web 服务首选项页面 并设置Axis2运行时位置 在 Axis2 首选项下。

在提到的首选项中,位置设置正确,事实上,在加载正确的运行时位置后,它显示“Axis2 运行时加载成功”。那么到底是怎么回事呢?除了重新安装 eclipse 或创建新工作区之外还有其他解决方案吗?

我正在使用 Axis2 1.4.1 和 eclipse。

The error is:

Exception occurred while reading or
writing file {0}The Axis2 facets
cannot be installed since the Axis2
runtime location has not been set. Go
to the Web Services preference page
and set the Axis2 runtime location
under Axis2 Preferences.

In the preferences mentioned, the location is set correctly and in fact, it says "Axis2 runtime loaded successfully" after loadign the correct runtime location. So what's going on? Any solutions other than re-installing eclipse or creating a new workspace?

I am using Axis2 1.4.1 and eclipse.

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

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

发布评论

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

评论(7

不奢求什么 2024-08-27 10:11:14

重新检查 Eclipse 使用的轴版本(当然),如 此线程

并尝试此处描述的过程,并由本教程

在 Eclipse 对话框中选择 Axis2 war 文件的文件夹位置:

Window -> Preferences -> Web Services -> Axis2 Emitter 

或者如果仍然不起作用:

实际上我们发现,如果您简单地使用 Axis2 创建一个虚拟 Web 服务,问题也会消失

或者:

当您的 org.apache.axi2.facet 插件目录损坏(缺少 exploadedwar?)时,就会发生这种情况。
解决此问题的最佳方法是将另一个工作区(创建一个新的)的良好副本复制到现有工作区。您可以在 /.metadata/.plugins/org.apache.axis2.facet 中找到该目录。

Axis2 首选项

Re-check your axis version used with Eclipse (to be sure), as illustrated by this thread.

And try the procedure described here, and illustrated by this tutorial.

Choose the Axis2 war file's folder location in the Eclipse dialog at:

Window -> Preferences -> Web Services -> Axis2 Emitter 

Or if it still does not work:

Actually we found out that if you simply create a dummy web service with Axis2, the problem will also go away

Or:

It happens when your org.apache.axi2.facet plugin directory is corrupted (missing exploadedwar?).
The best way to fix this is copy over a good copy of that from another workspace (create a new one) over your existing workspace. You can find the directory at /.metadata/.plugins/org.apache.axis2.facet.

Axis2 Preferences

独留℉清风醉 2024-08-27 10:11:14

Dobedani,

首先下载此文件 Apache Axis 2 运行时二进制文件
提取文件内容,转到窗口 ->偏好->网络服务-> Axis 2 首选项并查找提取的文件夹,确保选择包含 bin 文件夹的文件夹。

哦,我忘了提到您必须将 Axis 2 面添加到您的项目中才能完成修复,转到项目属性 ->项目事实->修改项目并添加在上一步中安装的 Axis 2 Facets。

就是这样。

Dobedani,

First download this file Apache Axis 2 Runtime Binary
extract the file contents, goto window -> preferences -> web services -> Axis 2 preferences and look for the extracted folder, make sure you select the folder that contains the bin folder.

Ohh, i forgot to mention you have to add the Axis 2 facetes to your project to complete the fix, goto project properties -> project factes -> Modify project and add the Axis 2 Facets which were installed on the prior step.

That's it.

衣神在巴黎 2024-08-27 10:11:14

刚刚创建了一个新的动态 Web 项目并创建了一个类,然后从中创建了一个新的 Web 服务,然后导入了这次工作的旧 Web 服务

just created a new dynamic web project and created a class then created a new web service from it, then imorted the old web service which worked this time

挽袖吟 2024-08-27 10:11:14

我遇到了类似的问题并按照此处的说明进行操作,但仍然有问题,我最终检查了 Window->Preference->WebService->Server and Runtime 并更改为读取 Axis 2 并将 Web 服务运行时更改为 Apache Axis2

I had a similar problem and followed the instructions here, but still had problem, I finally checked Window->Preference->WebService->Server and Runtime and changed to read Axis 2 and change Web service runtime to Apache Axis2

幸福还没到 2024-08-27 10:11:14

它对我的工作方式略有不同。复制 exploadedwar 文件夹后,我从 \lib 中删除了所有与轴相关的 jar 文件,并从原始 axis2-1.6.1\lib 中复制了它们。它起作用了..

The way it worked for me is slightly different. After I copied the exploadedwar folder I deleted all axis related jar files from \lib and copied them from original axis2-1.6.1\lib. It worked..

許願樹丅啲祈禱 2024-08-27 10:11:14

抱歉,我在网上没有找到很清楚的解释。对于像我这样不太书呆子的开发人员,我想补充一点,Axis2 无法通过 Eclipse 更新管理器安装:您确实需要自己下载并安装 Axis2。不过,还有其他可用的插件可以通过更新管理器安装:Axis2 Tools & SDK。顺便说一句,我在我的插件文件夹中找到了一个目录 org.apache.axis_1.4.0.v200905122109 但那是旧东西。华泰
亲切的问候,
多贝达尼

Sorry, but I didn't find the explanations on the web very clear. For less nerdy developers like myself I would like to add that Axis2 cannot be installed via the Eclipse update manager: you need to indeed download and install Axis2 yourself. There are additional plugins available though that can be installed with the update manager: Axis2 Tools & SDK. BTW, I found a directory org.apache.axis_1.4.0.v200905122109 in my plugins folder but that is old stuff. HTH
Kind regards,
Dobedani

孤独岁月 2024-08-27 10:11:14

如果您已正确配置 axis2。尝试创建一个新的动态Web项目,创建一个测试类,创建一个Web服务,这样做eclipse会自动“调整”axis2。就是这样。现在只需返回到原始项目并尝试再次创建。

If you already configured axis2 correctly. Try to create a new dynamic web project, create a test class, create a web service, doing this eclipse will automatically "adjust" axis2. That's it. Now just go back to your original project and try to create again.

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