`
林凡鹤
  • 浏览: 18871 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

No services found in this location

 
阅读更多

在 tomcat 容器中可以正常发布axis2的webservice,但是更换为weblogic之后就报No services found in this location,这是因为程序没有找到WEB-INF/services/...下的services.xml所致,在加载services.xml配置在web.xml中,配置如下 <servlet>  

    <servlet>  

    <servlet-name>AxisServlet</servlet-name>  

    <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>

   <!--  <init-param> 

        <param-name>axis2.repository.path</param-name> 

        <param-value> 

         /WEB-INF

        </param-value> 

    </init-param>    -->

    <load-on-startup>1</load-on-startup> 

    

</servlet>       

<servlet-mapping>  

           <servlet-name>AxisServlet</servlet-name>  

           <url-pattern>/services/*</url-pattern>  

</servlet-mapping>

 

即使指定/WEB-INF 还是不行,<param-value>的值必须是D:\axis2tomcat\apache-tomcat-6.0.35\webapps\wt\WEB-INF  物理路径,但是由于我所处的环境为weblogic的集群环境,所以配置这种方法不可行。

那么 <init-param> 节点注释掉,让程序为默认,然后在部署发布项目的时候 weblogic不是以war形式或jar形式发布,而是以目录形式发布,然后启动项目即可加载到WEB-INF下的services.xml

 

 

 

 

 

 

附录:weblogic目录形式发布项目,进入控制台-锁定并编辑-安装,/weblogic/Oracle/Middleware/wlserver_10.3/common/templates/applications  把程序以文件夹的方式上传到此处,点击下一步下一步即可

分享到:
评论

相关推荐

    webservice接口测试

    首先在WSDL Location输入框中输入你想调用或想测试的Web Service的WSDL位置,如“http://www.somesite.com/axis/services/StockQuoteService?wsdl”,然后点“Find”按钮。wsCaller就会检查你输入的URL地址,并获取...

    drupal 6.12

    result in "Page Not Found" errors, try manually setting the $base_url variable in the settings.php file if not already set. It's currently known that servers running FastCGI can run into problems ...

    python Algorithms 2nd Edition

    seem that this problem is related to the previous one, yet this shortest path problem is one solved routinely, with no appreciable delay, by GPS software and online map services. If you give those two...

    数位板压力测试

    This specification was developed in response to a perceived need for a standardized programming inter-face to digitizing tablets, three dimensional position sensors, and other pointing devices by a ...

    php.ini-development

    SAPI module specific location. ; 2. The PHPRC environment variable. (As of PHP 5.2.0) ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) ; 4. Current working directory (except CLI...

    联想旭日420AXP系统芯片组驱动

    This software can be installed in three modes: Interactive, Silent and Unattended Preload. Interactive Mode requires user input during installation; Silent Mode and Unattended Preload do not. This...

    xplite_trial

    files then you should set the location in the preferences tab. The ideal source for filesof the same Service Pack level as your current installation is a single "Slipstreamed" CDROM that is of the ...

    AT指令返回错误大全

    - **CMEERROR:113 - Roaming not allowed in this location area**:在此位置区域不允许漫游。 - **CMEERROR:126 - Operation temporary not allowed**:操作暂时不允许。 - **CMEERROR:132 - Service operation not...

    at 命令出错汇集

    - **CMEERROR:113** - Roaming not allowed in this location area:此位置区域不允许漫游,网络策略限制了漫游功能。 - **CMEERROR:126** - Operation temporarily not allowed:暂时不允许操作,可能是为了防止...

    SimIt-ARM-3.0 ARM指令模拟器

    -m num : maximum number of instructions to simulate, in million -s config : path to config file for system-level simulation file name : the user-level ELF program to simulate args : arguments to ...

    (重要)AIX command 使用总结.txt

    当再次尝试远程登录时, 系统报错:Remote logins are not allowed for this account, 表示修改成功 //如何自动logout用户 有的用户登录后就长时间空闲,有可能导致安全上的问题,通过打开 /etc/profile 中 TMOUT 注释,...

Global site tag (gtag.js) - Google Analytics