Hey, I use Netbeans for my IDE and I get an error message when I try to start an EJB program. I get an error when I declare and pass the class path in my JSP to the bean.
<jsp:useBean id="book" class="BookBean.Book" scope="application" />
<jsp:setProperty name="book" property="*" />
When I run the program, I get this error
javax.servlet.ServletException: java.lang.InstantiationException: class BookBean.Book: java.lang.IllegalAccessException: class java.beans.Beans cannot access a member of the class BookBean.Book with modifiers ""
and
java.lang.InstantiationException: class BookBean.Book : java.lang.IllegalAccessException: Class java.beans.Beans can not access a member of class BookBean.Book with modifiers ""
I removed the "" and set '' to see if this works, but it doesn’t. Any ideas? I also set a breakpoint there, and he determined. is the root of the problem. Thank.
source
share