1 Reply Latest reply on Jul 27, 2007 3:28 PM by Mark Strecker

    Security error after enabling cgi (JBoss 4.2 w/ Jboss Native

    Mark Strecker Newbie

      Hello All,

      I am trying to enable cgi on JBoss 4.2(Windows XP)and am running into this exception : java.lang.SecurityException: Servlet of class org.apache.catalina.servlets.CGIServlet is privileged and cannot be loaded by this web application
      (The exception repeats over and over produces about 18,000 lines in the JBoss startup ... Let me know if you want more of it.)
      Here's what I did :

      JBoss 4.2 is installed and running properly with Java 1.5.0_12.
      Added JBoss Native 2.0.0 to JBOSS_HOME/lib (added JBOSS_HOME\bin and JBOSS_HOME\bin\native to my PATH and JBoss is picking up the native libs)
      Changed JBoss http from port 8080 to port 80.
      JBoss works properly up to here.
      Edited JBOSS_HOME\server\default\deploy\jboss-web.deployer\conf\web.xml and uncommented the 2 cgi sections. (Note that the cgi servlet is located here JBOSS_HOME\server\default\deploy\jboss-web.deployer\jbossweb.jar instead of the servlet-cgi.jar sited in the web.xml)

      I found a post about setting AllowSelfPrivilegedWebApps to true and this didn't work.
      Your help would be greatly appreciated.