简体   繁体   English

使用tomcat6服务器从axis2创建Web服务时出现异常

[英]Exception in creating webservices from axis2 with tomcat6 server

I am trying to create a webservice from java application. 我正在尝试从Java应用程序创建Web服务。 I am using tomcat 6 server and axis2 ..i had installed axis2 and set the runtime location for axis2 inside Web services>Axis2 preferences. 我正在使用tomcat 6服务器,而axis2 ..i已安装axis2并在Web服务> Axis2首选项内设置axis2的运行时位置。

This is the exception am getting when am trying to create a webservice.. 尝试创建Web服务时,这是一个例外。

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.

Can anyone give a solution for this? 谁能为此提供解决方案?

hi check this post for this error may be you get the solution from this post 嗨,检查此帖子是否有此错误,可能是您从此帖子中获得了解决方案

Axis error about runtime location 有关运行时位置的轴错误

If u have set axis 2 preferences properly then i think u have not set the configuration properly while creating the project in eclipse. 如果您已正确设置了第2轴首选项,那么我认为您在Eclipse中创建项目时尚未正确设置配置。

Follow the below steps.. 请执行以下步骤。

In eclipse go to File- New- Dynamic Web Project.. 在eclipse中,转到File-New-Dynamic Web Project。

In configuration select custom and modify.. 在配置中,选择“定制”并进行修改。

Check the Axis2 Web Services and click OK.. 检查Axis2 Web服务,然后单击确定。

Follow normal steps afterwards.. It should work now.... 然后按照正常步骤进行操作。现在应该可以使用了。

Create a dummy dynamic webproject with axis2 feature and , then try the old project of yours 创建一个带有axis2功能的虚拟动态Web项目,然后尝试您的旧项目

Go to your services java file and 转到您的服务Java文件,然后

  • right click and choose webservices --> 右键单击并选择Web服务->
  • create webservice --> 创建Web服务->
  • choose webservice runtime to axis2 --> 选择webservice runtime到axis2- >
  • and continue it should work now 并继续它应该现在工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM