wood burning stoves 2.0*
The moose likes Servlets and the fly likes IllegalAccessError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "IllegalAccessError" Watch "IllegalAccessError" New topic


Matt Siegel
Ranch Hand

Joined: Jul 18, 2000
Posts: 55
I'm getting a wierd exception when I try to use a class in my jsp page.
javax.servlet.ServletException: Exception thrown on line '35' from page 'D:\\Inetpub\\wwwroot\\main.jsp'.
java.lang.IllegalAccessError: try to access class Customer from class jrun__main2ejsp9
at jrun__main2ejsp9._jspService(jrun__main2ejsp9.java:66)
at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:175)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:107)
at allaire.jrun.ThreadPool.run(ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(WorkerThread.java:75)
Sheldon Rego

Joined: Nov 03, 2000
Posts: 12
Hi there,
Its better if U specify the exact code of how U have specified the servlet as I cannot interpret the error just by what U have written.
Matt Siegel
Ranch Hand

Joined: Jul 18, 2000
Posts: 55
Here's the best, quickest example that I could give you.
<%! private Test1 test1 = new Test1(); %>
<%= test1.getString() %>
I have a class named Test1 that I created that contains a String. I just can't do anything with any classes that I created, unless I am just calling a static method on the class.
I agree. Here's the link: http://aspose.com/file-tools
subject: IllegalAccessError
Similar Threads
java.io.IOException: Broken pipe when dispatching page
JSP NullPointerException in the next morning
Don't where to put bean class while using Jrun
where to place jsp pages & class files in Jrun in which folders