File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP 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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "IllegalAccessError" Watch "IllegalAccessError" New topic


youngsun lee

Joined: Sep 26, 2003
Posts: 4
During I write a simple jsp page, I'm getting an IllegalAccessError.
If anyone knows, please help me..
I checked my classpath and import path..
My code and concrete error message are following..
--jsp code-------------------------------------
<%@ page import="mypackage.ChannelBean" %>
ChannelBean channel = new ChannelBean();
-- ChannelBean code----------------------------
public class ChannelBean{
public ChannelBean(){
System.out.println("ChannelBean is initialized");
-- Error Message in jsp page -------------------
Error 500--Internal Server Error
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request

-- Error Messagcons in console ---------------------
<2003-11-19 오전 10시23분17초> <Error> <HTTP> <[WebAppServletContex] Servlet failed with Exception
java.lang.IllegalAccessError: try to access class mypackage.Chann
elBean from class jsp_servlet.__test
at jsp_servlet.__test._jspService(
at weblogic.servlet.jsp.JspBase.service(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(
at weblogic.servlet.internal.ServletRequestImpl.execute(
at weblogic.kernel.ExecuteThread.execute(
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

Perhaps this could help (first hit on a google). Sounds like the classes you compiled against and the classes you are running against may be out of synch.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: IllegalAccessError
It's not a secret anymore!