警告: Can't find the request for http://localhost:8080/ibatisSpringDemo/ws/testWS's Observer
标题中的报错是在写一个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相关推荐
- Proxy error: Could not proxy request /api/ from localhost:8080 to http://localhost:80
很多扯淡的,找了半天,终于在stackoverflow找到答案. 1.先保证格式正确, 2.请求地址正确且可访问, 3.加上'http://' ` // 错误示范 devServer: {proxy: ...
- Proxy error: Could not proxy request /students from localhost:8080 to http://localhost:5000/.See ht
正在练习怎么跨区代理,按步骤一样的写,npm run serve 之后就出现错误 浏览器运行报错: 终端报错: 原因: 这个里面给的文件没有打开,打开之后就正常了
- 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/. 项目启动时,我的登 ...
- requests库提示警告:InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate ver
相信你们肯定遇到过这样的问题: requests库提示警告:InsecureRequestWarning: Unverified HTTPS request is being made. Adding ...
- pytest文档46-关于https请求警告问题(InsecureRequestWarning: Unverified HTTPS request is being made)
前言 使用 pytest 执行 https 请求用例的时候,控制台会出现警告:InsecureRequestWarning: Unverified HTTPS request is being mad ...
- 【解决】Requests库的SSL警告:InsecureRequestWarning: Unverified HTTPS request is being made.
Requests库的SSL警告:InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate v ...
- POST http://localhost:8080/XXX/XXX 400 (Bad Request)
基于SSM框架实现项目时,前端数据传递出现了如下图的错误 POST http://localhost:8080/SSMStudent/changeAdminsPerson 400 (Bad Reque ...
- 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 ...
- 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& ...
- 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 ...
最新文章
- 对Reformer的深入解读
- 函数与导数题目类型和解法思路的总结
- 【转】MVVM大比拼小结
- css文本省略(······)行高错位(bug)- 解决办法
- C# HttpWebRequest 绝技 【转】
- 英特尔第十代处理器为什么不支持win7_Intel最新CPU和主板不能装Win7怎么办
- 手机微信开发上传图片到服务器,微信开发之通过微信接口上传图片到本地服务器...
- 3DGIS地理信息系统设计方案
- PADS——原理图的绘制
- 第2章 Linux内核模块
- 多个桌面Deskspace如何使用
- 教你一招快速清理DNS缓存
- python批量分割音频-无bug完美运行
- java时间日期获得0点0分0秒(本地时间(时区)),获取当天零点零分时间(本地时间(时区))
- Linux中系统进程的详细管理
- 鸟哥的Linux私房菜——第十章
- 用py编一个枪战游戏
- 科普:24时区,GMT,UTC,DST,CST时间详解
- vb数据库编程精华例题分享
- css中style怎么用,css中style标签的使用方法