带有weblogic 12.1.1的Listener中的IllegalArgumentException [英] IllegalArgumentException in Listener with weblogic 12.1.1

查看:75
本文介绍了带有weblogic 12.1.1的Listener中的IllegalArgumentException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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中进行任何更改还是应该包括任何罐子???

解决方案

IllegalArgumentException



参数不正确/或缺失。



请检查参考并正确添加参数。

堆栈跟踪或一段代码可以更深入地引用。

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???

解决方案

IllegalArgumentException

An argument is not ok / or missing.

Please check the reference and add the argument correctly.
A stack trace or a piece of code would be good to refer any deeper.


这篇关于带有weblogic 12.1.1的Listener中的IllegalArgumentException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆