Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

IllegalAccessError  RSS feed

Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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(
Author and ninkuma
Posts: 66425
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!