Hi,
Had posted this in the
Struts section, but decided this was a better forum to address this issue.
I have an action class ProfileDetailAction, which implements the getter/setter methods related to Profiles. I have 2 classes RegistrationAction and AlterProfileAction extending from it.
I have an
EJB 3.0 entity class called ProfileDetail which is mapped to an underlying table in MySQL.
ProfileDetailAction.java:
RegistrationAction.java:
ProfileDetail.java:
The firstName variable in ProfileDetail action is getting filled properly (I am able to see them in debug mode.)
When setFirstName() gets called in RegistrationAction, I get the following error:
java.lang.NoSuchMethodError: com.justbooks.entities.ProfileDetail.setFirstName(Ljava/lang/String
I am not sure whether this is a classloader problem, or I am doing something wrong. I am using
JBoss, with MySQL DB. I am using Eclipse, and the
IDE does not throw up any errors too.
I have only one
Java version on my laptop, jdk1.5.0_01, which is being used by both Eclipse (my IDE) and JBoss (my App Server). I saw quite a number of posts on the net indicating it might be a version mismatch. But I dont think that applies to this situation.
Any clue welcome...