JSP cant find bean Class using "" modifiers
Posted
by
Ravana
on Stack Overflow
See other posts from Stack Overflow
or by Ravana
Published on 2011-02-17T23:11:33Z
Indexed on
2011/02/17
23:25 UTC
Read the original article
Hit count: 212
Hey I'm using Netbeans for my IDE and I'm getting an error when I try to run my EJB program. I get an error when I declare and give the path of the class in my JSP to a 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 can not access a member of 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 put in '' to see if that works, but it doesn't. Any idea? I also put a breakpoint there and it def. is the root of the problem. Thanks.
© Stack Overflow or respective owner