标题: 忙了2个小时没解决问题 求大神指教 [打印本页] 作者: 謓心い謓意 时间: 2014-9-11 20:43 标题: 忙了2个小时没解决问题 求大神指教 HTTP Status 500 - Error instantiating servlet class cn.itcast.FirstServlettype Exception report messageError instantiating servlet class cn.itcast.FirstServlet descriptionThe server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error instantiating servlet class cn.itcast.FirstServlet org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) java.lang.Thread.run(Thread.java:722) root cause java.lang.IllegalAccessException: Class org.apache.catalina.core.DefaultInstanceManager can not access a member of class cn.itcast.FirstServlet with modifiers "" sun.reflect.Reflection.ensureMemberAccess(Reflection.java:95) java.lang.Class.newInstance0(Class.java:368) java.lang.Class.newInstance(Class.java:327) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) java.lang.Thread.run(Thread.java:722) noteThe full stack trace of the root cause is available in the Apache Tomcat/7.0.42 logs.