This week's book giveaways are in the iOS and Features new in Java 8 forums. We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line! See this thread and this one for details.
I am using Servlets and EJB in my application with Hibernate as persistence Technique .
I am setting Data inside Hibernate POJO annotated class an sending it to EJB Layer to do persistence . This is my code .
My EJB Interface :
// My EJB Class
This is my servlet where i am setting Data and directly sending the POJO class to EJB
I am getting this Exception
Root cause of ServletException.
Truncated. see log file for complete stacktrace
About the NoSuchMethodError is
Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed.
Can anyboody please tell me why this error is coming and how can i execute successfully .
Double check if you don't have an outdated (i.e. without all required methods) HelloEjb.class or HelloEjbBean.class files on your classpath. Clean, refresh your resources, make sure to delete all jars/ears you're building and deploying.