eclipse 关于运行时位置的轴错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2230168/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 19:11:11  来源:igfitidea点击:

Axis error about runtime location

eclipseweb-servicesideaxis2axis

提问by Ayrad

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.

读取或写入文件时发生异常{0}无法安装 Axis2 facet,因为尚未设置 Axis2 运行时位置。转至 Web 服务首选项页面并在 Axis2 Preferences 下设置 Axis2 运行时位置。

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?

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

I am using Axis2 1.4.1 and eclipse.

我正在使用 Axis2 1.4.1 和 Eclipse。

回答by VonC

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

重新检查与 Eclipse 一起使用的轴版本(确保),如此线程所示

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

并尝试此处描述的过程,并由本教程进行说明。

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

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

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

其实我们发现如果你只是用Axis2创建一个虚拟的web服务,问题也会消失

Or:

或者:

It happens when your org.apache.axi2.facetplugin 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.

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

Axis2 Preferences

Axis2 首选项

回答by Israelm

Dobedani,

多贝达尼,

First download this file Apache Axis 2 Runtime Binaryextract 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.

首先下载此文件Apache Axis 2 Runtime Binary提取文件内容,转到窗口 -> 首选项 -> Web 服务 -> Axis 2 首选项并查找解压缩的文件夹,确保选择包含 bin 文件夹的文件夹。

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.

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

That's it.

就是这样。

回答by abualy

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

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

回答by Dane

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

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

回答by Jayku

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..

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

回答by Dobedani

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

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