问题描述
我在weblogic 12.1.1.0中部署ear文件时得到了java.lang.IllegalArgumentException
这是因为web.xml中的监听器而发生的。
如果我发表评论听众,部署是可能的。但是我无法理解什么是问题?
有人可以提供一些提示。!!!
旧的Weblogic版本:10.3.3
新的weblogic版本:12.1.1
使用Struts框架工作。 />
SessionObject类:
公共类SessionObject实现HttpSessionBindingListener {
public void valueBound(HttpSessionBindingEvent事件)
{}
public voind valueUnbound( HttpSessionBindingEvent事件)
{}
}
web.xml:
< listener>
< listener-class> com.ab.util.SessionObject< /听众-C lass>
< listener>
我想知道这就是为什么我得到 java.lang.IllegalArgumentException:[HTTP:101164]用户定义的类com.ab.util.session对象不是监听器,因为它没有实现正确的接口在版本10.1.3下正常工作时,在12.1.1版本下部署ear文件时出错。
我应该在web.xml中进行任何更改还是应该包括任何罐子???
Im getting java.lang.IllegalArgumentException while deploying ear files in weblogic 12.1.1.0
This is happeneing because of listener in web.xml.
If i comment out listener, deployment is possible.But im not able to understand whats the issue with??
Can some one give some hints on this please.!!!
Old Weblogic version: 10.3.3
New weblogic version:12.1.1
Using Struts frame work.
SessionObject class:
public class SessionObject implements HttpSessionBindingListener{
public void valueBound( HttpSessionBindingEvent event)
{ }
public voind valueUnbound (HttpSessionBindingEvent event)
{ }
}
web.xml:
<listener>
<listener-class>com.ab.util.SessionObject</listener-class>
<listener>
I want to know that why im getting " java.lang.IllegalArgumentException:[HTTP:101164] User defined class com.ab.util.session object is not a listener as it doesnt implement the correct interface" error while deploying the ear file under version 12.1.1 when it is working fine with version 10.3.3.
Should i make any changes in web.xml or should i include any jars???
这篇关于带有weblogic 12.1.1的Listener中的IllegalArgumentException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!