Home > Default > Java.lang.IllegalArgumentException for listener in web.xml with weblogic12.1.1

Java.lang.IllegalArgumentException for listener in web.xml with weblogic12.1.1

October 11Hits:4
Advertisement
Hi.
Im trying to upgrade the weblogic version from 10 to 12 for my application.
Im getting below mentioned error while deploying ear file in weblogic 12 which works fine with version10.
" java.lang.IllegalArgumentException:[HTTP:101164] User defined class com.ab.util.session object is not a listener as it doesnt implement the correct interface."
Deployment is getting failed because of this error.
If i comment out listener, deployment is success.

Answers

HI Timo,
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???

Read other 8 answers

Tags:

Related Articles

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.770 s.