标题中的报错是在写一个webservices例子时候报的错误,我直接访问http://localhost:8080/ibatisSpringDemo/ws/testWS?wsdl  后 tomcat中总是报那个错误,后来发现原因原来是,web.xml配置文件的问题,启动tomcat容器后没有加载spring的application.xml文件,也就不会加载spring cxf的三个配置,<import resource="classpath:META-INF/cxf/cxf.xml"/>                
       <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>                
       <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>

tomcat正常启动后控制台应该打印出这三个文件的加载信息,如果未加载说明,application.xml未正确加载。

我的application.xml文件放到了src目录下,如下是错误写法:

<context-param>
       <param-name>contextConfigLocation</param-name>
       <param-value>classpath*:applicationcontext*.xml</param-value>
   </context-param>
   <listener>
       <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
   </listener>

如下是正确写法:

<context-param>
       <param-name>contextConfigLocation</param-name>
       <param-value>classpath*:*/applicationcontext*.xml</param-value>
   </context-param>
   <listener>
       <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
   </listener>

转载于:https://blog.51cto.com/andy0202/1390464

警告: Can't find the request for http://localhost:8080/ibatisSpringDemo/ws/testWS's Observer相关推荐

  1. Proxy error: Could not proxy request /api/ from localhost:8080 to http://localhost:80

    很多扯淡的,找了半天,终于在stackoverflow找到答案. 1.先保证格式正确, 2.请求地址正确且可访问, 3.加上'http://' ` // 错误示范 devServer: {proxy: ...

  2. Proxy error: Could not proxy request /students from localhost:8080 to http://localhost:5000/.See ht

    正在练习怎么跨区代理,按步骤一样的写,npm run serve 之后就出现错误 浏览器运行报错: 终端报错: 原因: 这个里面给的文件没有打开,打开之后就正常了

  3. Proxy error: Could not proxy request /getInfo from localhost:81 to http://localhost:8080/.

    Proxy error: Could not proxy request /getInfo from localhost:81 to http://localhost:8080/. 项目启动时,我的登 ...

  4. requests库提示警告:InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate ver

    相信你们肯定遇到过这样的问题: requests库提示警告:InsecureRequestWarning: Unverified HTTPS request is being made. Adding ...

  5. pytest文档46-关于https请求警告问题(InsecureRequestWarning: Unverified HTTPS request is being made)

    前言 使用 pytest 执行 https 请求用例的时候,控制台会出现警告:InsecureRequestWarning: Unverified HTTPS request is being mad ...

  6. 【解决】Requests库的SSL警告:InsecureRequestWarning: Unverified HTTPS request is being made.

    Requests库的SSL警告:InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate v ...

  7. POST http://localhost:8080/XXX/XXX 400 (Bad Request)

    基于SSM框架实现项目时,前端数据传递出现了如下图的错误 POST http://localhost:8080/SSMStudent/changeAdminsPerson 400 (Bad Reque ...

  8. ResourceAccessException: I/O error on POST request for “http://localhost:9411/api/v2/spans“

    异常处理:org.springframework.web.client.ResourceAccessException: I/O error on POST request for "htt ...

  9. I/O error on POST request for “http://localhost:9411/api/v2/spans“

    报错信息展示 整合微服务架构的时候,控制台出现报错信息: I/O error on POST request for "http://localhost:9411/api/v2/spans& ...

  10. I/O error on POST request for “http://localhost:9411/api/v2/spans”

    完整报错为: org.springframework.web.client.ResourceAccessException: I/O error on POST request for "h ...

最新文章

  1. 对Reformer的深入解读
  2. 函数与导数题目类型和解法思路的总结
  3. 【转】MVVM大比拼小结
  4. css文本省略(······)行高错位(bug)- 解决办法
  5. C# HttpWebRequest 绝技 【转】
  6. 英特尔第十代处理器为什么不支持win7_Intel最新CPU和主板不能装Win7怎么办
  7. 手机微信开发上传图片到服务器,微信开发之通过微信接口上传图片到本地服务器...
  8. 3DGIS地理信息系统设计方案
  9. PADS——原理图的绘制
  10. 第2章 Linux内核模块
  11. 多个桌面Deskspace如何使用
  12. 教你一招快速清理DNS缓存
  13. python批量分割音频-无bug完美运行
  14. java时间日期获得0点0分0秒(本地时间(时区)),获取当天零点零分时间(本地时间(时区))
  15. Linux中系统进程的详细管理
  16. 鸟哥的Linux私房菜——第十章
  17. 用py编一个枪战游戏
  18. 科普:24时区,GMT,UTC,DST,CST时间详解
  19. vb数据库编程精华例题分享
  20. css中style怎么用,css中style标签的使用方法

热门文章

  1. 强烈推荐Seam实战
  2. 【读书笔记】钢铁是怎么炼成的
  3. 设置finder窗口大小的5个小技巧!速看?
  4. VirtualBox 虚拟 CentOS 7 磁盘扩容
  5. iOS 开发应用内跳转到App Store
  6. 利用EasyRecovery深度扫描功能将桌面误删文件恢复
  7. Spring Cloud实战(六)-Spring Cloud Netflix Bus
  8. VMware安装CentOS过程(初学linux)
  9. AC日记——单词替换 1.7 21
  10. 详解Javascript的继承实现