Tomcat启动WebService项目时报No Services have been found错误
来源:互联网 发布:怎么看淘宝店铺粉丝 编辑:程序博客网 时间:2024/06/06 03:40
今天弄了一上午都是这个问题,导师一来看就搞定啦!
错误描述:在eclipse console里面没有报任何错误,tomcat也正常启动了。。。
解决方案:多是由于web.xml文件中的spring配置没有配置好,我的是没有“加载配置”这个描述:
<!-- 加载配置 --><listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener>
多半是由于没有理解web.xml的配置,放上我自己项目完整的web.xml配置:
<?xml version="1.0" encoding="UTF-8"?><web-app id="OrderInfoDatabase" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"><!-- 定义配置文件位置 --><context-param><param-name>contextConfigLocation</param-name><param-value>WEB-INF/classes/beans.xml</param-value></context-param><!-- 加载配置 --><listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener><!-- 初始化 CXF SERVLET--><servlet><servlet-name>CXFServlet</servlet-name><servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class><load-on-startup>1</load-on-startup></servlet><servlet-mapping><servlet-name>CXFServlet</servlet-name><url-pattern>/*</url-pattern></servlet-mapping></web-app>
0 0
- Tomcat启动WebService项目时报No Services have been found错误
- No services have been found解决方案
- CXF中,出现 No services have been found.
- Maven项目运行出现错误: No goals have been specified for this build
- myeclipse启动报如下错误:java.lang.RuntimeException: No application id has been found.
- RCP 工程启动报No application id has been found 的错误
- tomcat启动时报如下错误
- 启动 tomcat 时报-Xmx512M:command not found
- soa部署项目,启动时报错:No credential mapper entry found for password indirection user
- soa部署项目,启动时报错:No credential mapper entry found for password indirection user
- 启动项目时报refresh错误
- 项目启动时报Class not found
- No Application ID has been found错误提示。
- eclipse rcp程序No application id has been found错误
- RCP项目导出--No application id has been found
- 安装CentOS 时找不到硬盘( no usable disks have been found)的解决方法
- Exsi虚拟机上安装 redhat5.5 分区时提示 No hard drives have been found
- 启动tomcat时报错“连接错误”
- 如何实现程序的重新启动(windows环境下)
- xml系列(三)------DOM解析
- spring+velocity+javamail发送模板邮件
- C++面向对象设计的经验体会
- 快速排序
- Tomcat启动WebService项目时报No Services have been found错误
- Android Camera No space left on device
- iOS文件md5
- Dojo仪表盘
- PhysX3 学习笔记2.5
- MTK pump express 快速充电原理分析
- replace into..values/select和insert into ..values/select on duplicate update 异同
- tcp/ udp/ 轮询方式和推送方式?
- fragment中填充listView后退保存位置