my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "IllegalAccessError" Watch "IllegalAccessError" New topic
Author

IllegalAccessError

youngsun lee
Greenhorn

Joined: Sep 26, 2003
Posts: 4
Hi..
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(__test.java:98)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2678)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2412)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:140)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:121)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

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.
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: IllegalAccessError
 
Similar Threads
IllegalAccessError
Spring - Beanshell IllegalAccessError
jsp form validation using bean with int
Error 500--Internal Server Error
class cast exception in use bean