当前位置: 技术问答>linux和unix
[求助]关于apcche与tomcat
来源: 互联网 发布时间:2016-07-01
本文导语: 搭了一个服务器, OS:debian5 先装了JDK1.6和Tomcat5.5,跑tomcat,看到管理页,正常 装了apache2,浏览,出现it works,正常 过了几天,我开机,打开80端口的,还是出现it works,正常 但是访问tomcat的端口,就出现了错误...
搭了一个服务器,
OS:debian5
先装了JDK1.6和Tomcat5.5,跑tomcat,看到管理页,正常
装了apache2,浏览,出现it works,正常
过了几天,我开机,打开80端口的,还是出现it works,正常
但是访问tomcat的端口,就出现了错误,不知何故,是不是要改配置
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.coyote)
java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
java.security.AccessController.checkPermission(AccessController.java:546)
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1512)
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:298)
java.lang.ClassLoader.loadClass(ClassLoader.java:300)
java.lang.ClassLoader.loadClass(ClassLoader.java:300)
java.lang.ClassLoader.loadClass(ClassLoader.java:252)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:452)
org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1617)
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:967)
org.apache.coyote.Response.action(Response.java:181)
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:576)
org.apache.coyote.Response.doWrite(Response.java:560)
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:361)
org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:323)
org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverter.java:236)
sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)
sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)
java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)
org.apache.tomcat.util.buf.WriteConvertor.flush(C2BConverter.java:185)
org.apache.tomcat.util.buf.C2BConverter.flushBuffer(C2BConverter.java:128)
org.apache.catalina.connector.OutputBuffer.realWriteChars(OutputBuffer.java:536)
org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java:255)
org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:456)
org.apache.catalina.connector.CoyoteWriter.write(CoyoteWriter.java:143)
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:119)
org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:326)
org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:342)
org.apache.jsp.index_jsp._jspService(index_jsp.java:50)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
OS:debian5
先装了JDK1.6和Tomcat5.5,跑tomcat,看到管理页,正常
装了apache2,浏览,出现it works,正常
过了几天,我开机,打开80端口的,还是出现it works,正常
但是访问tomcat的端口,就出现了错误,不知何故,是不是要改配置
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.coyote)
java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
java.security.AccessController.checkPermission(AccessController.java:546)
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1512)
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:298)
java.lang.ClassLoader.loadClass(ClassLoader.java:300)
java.lang.ClassLoader.loadClass(ClassLoader.java:300)
java.lang.ClassLoader.loadClass(ClassLoader.java:252)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:452)
org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1617)
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:967)
org.apache.coyote.Response.action(Response.java:181)
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:576)
org.apache.coyote.Response.doWrite(Response.java:560)
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:361)
org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:323)
org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverter.java:236)
sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)
sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)
java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)
org.apache.tomcat.util.buf.WriteConvertor.flush(C2BConverter.java:185)
org.apache.tomcat.util.buf.C2BConverter.flushBuffer(C2BConverter.java:128)
org.apache.catalina.connector.OutputBuffer.realWriteChars(OutputBuffer.java:536)
org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java:255)
org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:456)
org.apache.catalina.connector.CoyoteWriter.write(CoyoteWriter.java:143)
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:119)
org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:326)
org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:342)
org.apache.jsp.index_jsp._jspService(index_jsp.java:50)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
|
从你给的错误描述,只能看出tomcat出问题了,或者说tomcat里面部署的应用出问题了,别的啥也看不出!呵呵!