title: JSP cant find bean Class using "" modifiers
body: <p>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.</p>
  
  <pre><code>&lt;jsp:useBean id="book" class="BookBean.Book" scope="application" /&gt;
  &lt;jsp:setProperty name="book" property="*" /&gt;
  </code></pre>
  
  <p>When I run the program I get this error</p>
  
  <blockquote>
    <p>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 ""</p>
  </blockquote>
  
  <p>and</p>
  
  <pre><code>java.lang.InstantiationException: class BookBean.Book : java.lang.IllegalAccessException: Class java.beans.Beans can not access a member of class BookBean.Book with modifiers ""
  </code></pre>
  
  <p>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.</p>