• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IllegalAccessError

 
youngsun lee
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64959
86
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.
bear
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic