|
Question : URGENT Help: OC4J Deployment Problem
|
|
Hi Expert, I am not able to deploy a particular EJB Stateless Session bean. We had a function called addTest() in a bean, taking 3 parameters. This bean was deployed first. Later, we added one more paramter to the same function and tried deploying it. And we got the following error while deploying...
Fatal Error: Bean implementation of public abstract void com.sciatl.svt.ejb.testplanning.ModifyTestPlanSLS.addTest(java.lang.String,java.lang.String,java.lang.String) throws java.rmi.RemoteException (bean method signature should be public void com.sciatl.svt.ejb.testplanning.impl.ModifyTestPlanSLSBean.addTest(...)) not found Auto-unpacking /oracleas_root/j2ee/home/applications/ModifyTestPlan.ear... done. Auto-deploying ModifyTestPlan (New server version detected)... com.evermind.server.ejb.compilation.BeanMethodNotFoundException: Bean implementation of public abstract void com.sciatl.svt.ejb.testplanning.ModifyTestPlanSLS.addTest(java.lang.String,java.lang.String,java.lang.String) throws java.rmi.RemoteException (bean method signature should be public void com.sciatl.svt.ejb.testplanning.impl.ModifyTestPlanSLSBean.addTest(...)) not found at com.evermind.server.ejb.compilation.BeanMethodCompilation.getBeanMethod(BeanMethodCompilation.java:152) at com.evermind.server.ejb.compilation.BeanMethodCompilation.(BeanMethodCompilation.java:45) at com.evermind.server.ejb.compilation.StatelessSessionBeanMethodCompilation.nit>(StatelessSessionBeanMethodCompilation.java:24) at com.evermind.server.ejb.compilation.StatelessSessionBeanCompilation.compileMethod(StatelessSessionBeanCompilation.java:90) at com.evermind.server.ejb.compilation.ClassCompilation.compileMethods(ClassCompilation.java:106) at com.evermind.server.ejb.compilation.StatelessSessionBeanCompilation.compile(StatelessSessionBeanCompilation.java:37) at com.evermind.server.ejb.compilation.Compilation.compile(Compilation.java:238) at com.evermind.server.administration.ServerApplicationInstallation.finish(ServerApplicationInstallation.java:473) at java.lang.reflect.Method.invoke(Native Method) at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:80) at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
Later we added a function with same name with 3 parameters, so that we have now two functions called addTest(), one taking 3 parameters and the other taking 4 parameters. We then deployed it. The deployment did not report any errors, however, we are not able to invoke addTest function with 4 parameters. Whenever a call is made to addTest with 4 parameters, we get a NoSuchMethod exception thrown by the Server. We are not sure if the deployment was successful. Though it did not report any errors, it is not recognising the function with 4 parameters..
Any idea why the noSuchMethod Exception could be thrown in this situation?
Note: We were able to deploy other beans without any problems.
Thanks.
|
Answer : URGENT Help: OC4J Deployment Problem
|
|
chowdry, the problem was wioth the application-deployments directory (if reinstallation solved it). OC4J generates stubs and skeletons which map to the specific EJB you create. Maybe there was something wrong during deployment, maybe you moved the clock of the machine backwards. This is usually the most common problem
|
|
|
|