tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Hansen <>
Subject Enabling CGIServlet causes SecurityException in Tomat 6
Date Wed, 02 Jun 2010 23:07:31 GMT
Hey All,

We are using Tomcat 6 on a RedHat box.

Today I installed AWStats and AWStats needs CGI. So I enabled the
CGIServlet in the Tomcat's web.xml file. When I restarted Tomcat, I
got the following error message:
SEVERE: Error deploying web application directory docs
java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.CGIServlet is privileged and cannot be
loaded by this web application

How do I get around this issue? Please advise. Thanks for reading.

Thank you,

Our Tomcat's server.xml file has two Virtual Hosts defined:
<Host name="localhost" appBase="webapps" unpackWARs="true"
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">

<Host name="" appBase="/home/hosts/ourwebsite/webapps"
unpackWARs="true" autoDeploy="true" xmlValidation="false"

/home/hosts/ourwebsiet/webapps/ROOT/META-INF/context.xml file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<Context privileged="true">
<loader delegate="false" />
<ResourceLink global="jdbc/MySQLDatabase" name="jdbc/MySQLDatabase"
type="javax.sql.DataSource" />

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message