Home > java lang instantiationexception bean > java.lang.instantiationexception bean error not found within scope

Java.lang.instantiationexception Bean Error Not Found Within Scope

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up java.lang.InstantiationException: bean [name] not found within scope up vote 4 down vote favorite 2 I am learning how to use jsp and beans now, and can't understand what the issue I'm having. I am trying to create a bean like this: ... and am getting the error: java.lang.InstantiationException: bean reservation not found within scope I have looked around online, and most people seem to recommend using class="..." instead of type="...", or using an import statement. I am already doing the former and tried the latter...any ideas? This is the bean: package homework10; public class Reservation { private int groupSize; private String status; private double cost; private boolean triedAndFailed; public Reservation(){ } public void setGroupSize(int gs) { groupSize = gs; } public int getGroupSize() { return groupSize; } public void setStatus(String str) { this.status = str; } public String getStatus() { return status; } public void setCost(double cost) { this.cost = cost; } public double getCost() { return cost; } public void setTriedAndFailed(boolean bool) { this.triedAndFailed = bool; } public boolean isTriedAndFailed() { return triedAndFailed; } } and this is the beginning of the jsp page: