javaweb测试HttpSessionBindingListener接口无法部署(部署错误)
来源:互联网 发布:js获取当前日期前一天 编辑:程序博客网 时间:2024/05/16 10:44
今天实验了HttpSessionBindingListener接口,但是单独实现这个接口后却无法部署到weblogic
提示大概如下的错误:
<BEA-101164> <User defined class com.xxx.xxx is not a listener, as it does not implement the correct interface(s).> <Error> <HTTP> <BEA-101163> <Could not load user defined listener: com.xxx.xxxjava.lang.IllegalArgumentException: [HTTP:101164]User defined class com.xxx.xxx is not a listener, as it does not implement the > Error is: "weblogic.application.ModuleException: java.lang.IllegalArgumentException: [HTTP:101164]User defined class com.xxx.xxx is not a listener, as it does not implement the correct interface(s)."weblogic.application.ModuleException: java.lang.IllegalArgumentException: [HTTP:101164]User defined class com.xxx.xxx is not a listener, as it does not implement the correct interface(s).Caused By: java.lang.IllegalArgumentException: [HTTP:101164]User defined class com.xxx.xxx is not a listener, as it does not implement the correct interface(s).> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 7 task for the application "_auto_generated_ear_" on [partition-name: DOMAIN].> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating start task for application "_auto_generated_ear_".> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004weblogic.application.ModuleException: java.lang.IllegalArgumentException: [HTTP:101164]User defined class com.xxx.xxx is not a listener, as it does not implement the correct interface(s).Caused By: java.lang.IllegalArgumentException: [HTTP:101164]User defined class com.xxx.xxx is not a listener, as it does not implement the correct interface(s).
最后解决方案。将我实现HttpSessionBindingListener接口的类再实现一个接口,我是再实现了HttpSessionListener接口。最后就成功部署到了weblogic并运行了。具体问题的原因我也是不知道。
2016-4-24修改:今天知道了又有一个解决方案,就是如果只继承HttpSessionBindingListener接口的话,不需要在web.xml中配置listener。如果配置就会出现上述错误。
1 0
- javaweb测试HttpSessionBindingListener接口无法部署(部署错误)
- javaweb部署
- 【SAE 部署 JavaWeb 项目报 404 错误】
- NetBeans无法部署struts2项目,尚未部署该模块错误
- HttpSessionBindingListener接口
- HttpSessionBindingListener接口
- jsp部署无法找到类错误
- 【JavaWeb】部署war包到Tomcat根目录(测试有效)
- javaweb项目部署文件
- Javaweb环境部署总结
- javaweb热部署详解
- linux 部署javaweb项目
- nginx tomcat javaweb部署
- Javaweb程序服务器部署
- Javaweb程序服务器部署
- Javaweb程序服务器部署
- linux部署javaweb应用
- Javaweb程序服务器部署
- worldwide_d的一身雅好
- opencv绘图函数
- python常见问题与解答
- hover加边框或边框加粗元素不抖动
- Android 视图,控件,组件概念
- javaweb测试HttpSessionBindingListener接口无法部署(部署错误)
- LeetCode *** 18. 4Sum (Two Pointers)
- 银行信用卡批准——模型评估ROC&AUC
- REST服务介绍
- Warning[Pa082]: undefined behavior: the order of volatile accesses is undefined in this statement
- WindowsServer 2008 配置
- Android中的diglog对话框
- CGI环境变量
- 深入理解okio的优化思想