• Post Reply Bookmark Topic Watch Topic
  • New Topic

weblogic ejb problem  RSS feed

 
satyendra adhikari
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi;
i am learning ejb on weblogic.
i am facing a strange problem for some days.i had got a ejb which shows database record of employees based on different finder methods. which worked fine.later on i modified it to create new employee record bye calling ejbcreate(.....) method which too worked well. after that i wrote a method to modify existing database data for that i wrote a method which i am calling on some bean which i am finding based upon some criteria supplied bye user.
now the problem is that when i am calling this method which i named modifyData(...............)
it gives error message unable to compile jsp ...method modifyData(.......) not found in remote.
although i have written the method in remote and implemented in bean class but the problem remains same. i even tried bye writing a interface for my business methods and then extending it in remote and implementing in bean class.
can any one please suggest where is the problem.

another problem which continues from above is that ,, i tried isModified() method in above ejb . i regisstered it in weblogic-ejb-jar.xml
<is-modified-method-name>isModified</is-modified-method-name>
and now when i am calling ejbc on my jar
the error is
ERROR: error from ejbc
......
......
isModified() method either does not exist in your bean class or has the wrong signature.
the signature of the method is ok
public boolean isModified()
{
return someBoolean;
}
please help!!!
thanks in anticipation.
satyendra adhikari
new delhi
 
namita pa
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
this should work fine .but while you are adding the class file of the bean to the jar you should close theweblogic server and then again restart,may be then it would take the changes you made .Its better if you try redeploying your bean using EJB deployer.there it will show you if some problem is there and some class file is missing.
reply if problem persists

------------------
 
satyendra adhikari
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi; Namita
thanks!
basically i use deploy and undeploy via commands (weblogic.deploy ....and weblogic.undeploy...)only so no real need to start the server again after changing it.
but i got it solved bye changing all class names and ejb name. and when i was deploying it a message appeared on server console " dropping unknown bean Emp(name of my previous bean)".
which i could not understand still.
i am surprised nobody faced that problem before!!
bye

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!