Hello,
I have a button in a page ,before, it works well but today ,i got this strange exception:
When i click on button ,it does not enter to method ,and Seam throws this exception:
Exception during request processing:
Caused by
javax.servlet.ServletException with message: "value of context variable
is not an instance of the component bound to the context variable:
universityResourceReserveController. If you are using hot deploy, you
may have attempted to hot deploy a session or application-scoped
component definition while using an old instance in the session."
In my JSF page i have :
<h:commandButton action="#{universityResourceReserveController.reserveResource}" value="reserve">
</h:commandButton>
and this is my controller :
--------------------------------------------------------------------
@Name("universityResourceReserveController")
public class UniversityResourceReserveController extends
EntityController<UniversityResources> {
public String reserveResource() {
current = universityResourcesDAO.findById(current.getId());
try {
for (int i = 0; i < days.size(); i++) {
Day day = days.get(i);
List<Hour> hours
= day.getHours();
for (Hour hour : hours) {
if (hour.getBoolean1().equals(Boolean.TRUE)) {
Schedule schedule = scheduleDAO
.findScheduleByDateANDByDayNameANDByHour(day
.getDate(), day.getDayNumber(), hour
.getStartTime(), hour.getEndTime());
current.getSchedules().add(schedule);
}
}
}
universityResourcesDAO.save(current);
return "succ";
} catch (Exception e) {
return "fails";
}
}
}
--------------------------------------------------------------------
When i click on button ,it does not enter to method ,and Seam throws this exception:
Exception during request processing:
Caused by
javax.servlet.ServletException with message: "value of context variable
is not an instance of the component bound to the context variable:
universityResourceReserveController. If you are using hot deploy, you
may have attempted to hot deploy a session or application-scoped
component definition while using an old instance in the session."
Please help me.
Khosro.