No services found in this location

本文介绍了解决在WebLogic服务器上部署Axis2 WebService遇到的Noservicesfoundinthislocation错误的方法。通过调整配置,确保正确加载WEB-INF/services/...下的services.xml文件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在 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  把程序以文件夹的方式上传到此处,点击下一步下一步即可

jin@jin-Legion-Y9000P-IRX8:~/Downloads$ bash Miniforge3-25.3.0-3-Linux-aarch64.sh WARNING: Your machine hardware does not appear to be aarch64, but you are trying to install a aarch64 version of Miniforge3. Are sure you want to continue the installation? [yes|no] [no] >>> yes Welcome to Miniforge3 25.3.0-3 In order to continue the installation process, please review the license agreement. Please, press ENTER to continue >>> Miniforge installer code uses BSD-3-Clause license as stated below. Binary packages that come with it have their own licensing terms and by installing miniforge you agree to the licensing terms of individual packages as well. They include different OSI-approved licenses including the GNU General Public License and can be found in pkgs/<pkg-name>/info/licenses folders. Miniforge installer comes with a bootstrapping executable that is used when installing miniforge and is deleted after miniforge is installed. The bootstrapping executable uses micromamba, cli11, cpp-filesystem, curl, c-ares, krb5, libarchive, libev, lz4, nghttp2, openssl, libsolv, nlohmann-json, reproc and zstd which are licensed under BSD-3-Clause, MIT and OpenSSL licenses. Licenses and copyright notices of these projects can be found at the following URL. https://github.com/conda-forge/micromamba-feedstock/tree/master/recipe. ============================================================================= Copyright (c) 2019-2022, conda-forge All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Do you accept the license terms? [yes|no] >>> Please answer 'yes' or 'no':' >>> yes Miniforge3 will now be installed into this location: /home/jin/miniforge3 - Press ENTER to confirm the location - Press CTRL-C to abort the installation - Or specify a different location below [/home/jin/miniforge3] >>> ERROR: File or directory already exists: '/home/jin/miniforge3' If you want to update an existing installation, use the -u option. 如何解决
最新发布
07-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值