tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gunnar Brading <gun...@astrogator.se>
Subject Security problem
Date Mon, 12 Sep 2005 12:51:05 GMT
When trying a recently unpacked 5.5.11, started with -security, I get an 
exception the first time I try to check the root index.jsp.
Anyone know what I am doing wrong?

Cheers,
-- Gunnar Brading

SEVERE: Servlet.service() for servlet org.apache.jsp.index_jsp threw 
exception
java.security.AccessControlException: access denied 
(java.lang.RuntimePermission accessClassInPackage.org.apache.coyote.http11)
        at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
        at 
java.security.AccessController.checkPermission(AccessController.java:427)
        at 
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at 
java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1512)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at 
org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:429)
        at 
org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1602)
        at 
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:961)
        at org.apache.coyote.Response.action(Response.java:180)
        at 
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:573)
        at org.apache.coyote.Response.doWrite(Response.java:555)
        at 
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:361)
        at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:299)
        at 
org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverter.java:235)
        at 
sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
        at 
sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
        at 
sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408)
        at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
        at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
        at 
org.apache.tomcat.util.buf.WriteConvertor.flush(C2BConverter.java:184)
        at 
org.apache.tomcat.util.buf.C2BConverter.flushBuffer(C2BConverter.java:127)
        at 
org.apache.catalina.connector.OutputBuffer.realWriteChars(OutputBuffer.java:536)
        at org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java:259)
        at 
org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:456)
        at 
org.apache.catalina.connector.CoyoteWriter.write(CoyoteWriter.java:142)
        at 
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
        at 
org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:325)
        at 
org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:341)
        at org.apache.jsp.index_jsp._jspService(index_jsp.java:50)
        at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        at 
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
        at 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
        at 
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
        at 
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)


-- 

 Gunnar Brading, Astrogator AB
 Email;   gunnar@astrogator.se
 Address; Rorstrandsgatan 30A
          113 40 STOCKHOLM
 Office:  +46 8 5456 0010
 Fax:     +46 8 5456 0011
 Mobile:  +46 70 778 2 877


Mime
View raw message