i am working with EJB20 using weblogic6.1 I successfully could run my servlet which was retrieving my session bean. Now i added a new method in my session bean ,and compiled it successfully and deployed it . But at run time an error come up saying java.lang.NoSuchMethodError.
java.lang.NoSuchMethodError at numbergroup.client.Client_cascadeDelete.doGet(Client_cascadeDelete.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
This error is coming when i call my newly added remote method in the session bean.Other methods called in the session bean are working fine in the same code. 2) Which ID is best suited for debuggind EJB's and which can integrate with Weblogic6.1? can somebody guide me ! Thanx Nuts
This problem is usually caused if you have an older version of class file lying somewhere in your directory structure. It seems that your CLASSPATH is such that Class Loader is giving preference to the older version of the class file where the method you are trying to invoke does not exist and hence java.lang.NoSuchMethodError is raised. Search for the older version of the class file in your directory structure and delete it to solve this problem. HTH, Milind [ July 28, 2002: Message edited by: Milind V. Kulkarni ]
posted 17 years ago
Hi milind, I have generated a jar file , with all the container required files (using ant utility).What i did was extracted that jar file , and saw if the new method was in that bean class to check if the older version of my class file was lying there. But the bean and the container generated both have the new method. I can't figure out the problem. can u please elaborate what u meant in ur previous mail. Thanx in advance Nitin.