【问题标题】:Exception in creating webservices from axis2 with tomcat6 server使用 tomcat6 服务器从轴 2 创建 Web 服务时出现异常
【发布时间】:2011-09-05 09:27:38
【问题描述】:

我正在尝试从 java 应用程序创建 web 服务。 我正在使用tomcat 6服务器和axis2 ..我已经安装了axis2并在Web服务>Axis2首选项中设置了axis2的运行时位置。

这是我尝试创建网络服务时遇到的异常。

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

谁能给出解决方案?

【问题讨论】:

    标签: java web-services axis2


    【解决方案1】:

    如果您正确设置了轴 2 首选项,那么我认为您在 eclipse 中创建项目时没有正确设置配置。

    按照以下步骤..

    在 Eclipse 中转到 File-New-Dynamic Web Project..

    在配置中选择自定义并修改..

    检查 Axis2 Web 服务并单击 OK..

    之后按照正常步骤..现在应该可以工作了....

    【讨论】:

    • thanx..终于我解决了这个问题..我从我的旧工作区位置复制了axis2 exploadedwar文件夹和依赖文件。
    【解决方案2】:

    创建一个具有axis2功能的dummy动态网络项目, 然后试试你的旧项目

    转到您的服务 java 文件和

    • 右键单击并选择网络服务-->
    • 创建网络服务-->
    • 选择webservice运行时为axis2-->
    • 并继续它现在应该可以工作了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多