Jbossweb

    This page is under construction please check the documentation.

     

    jbossweb

     

    You may also have a look to Tomcat and Build native.


    Using cgi with jbossweb:

    To use cgi check that you have $JBOSS_HOME/server/default/deploy/jbossweb.sar/servlets-cgi.jar

    If not you have to copy the TC (5.5.17) servlets-cgi.renametojar to $JBOSS_HOME/server/default/deploy/jbossweb.sar/servlets-cgi.jar.

    Then you have to modify server/default/deploy/jbossweb.sar/conf/web.xml to uncomment the cgi parameters:

     

    <servlet>
    <servlet-name>cgi</servlet-name>
    <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
    
    <init-param>
    <param-name>debug</param-name>
    <param-value>6</param-value>
    </init-param>
    <init-param>
    <param-name>cgiPathPrefix</param-name>
    <param-value>WEB-INF/cgi</param-value>
    </init-param>
    
    <load-on-startup>5</load-on-startup>
    </servlet>
    
    

     

    and the mapping:

    <servlet-mapping>
    <servlet-name>cgi</servlet-name>
    <url-pattern>/cgi-bin/</url-pattern>
    </servlet-mapping>

     

     

    Make sure you copy you cgi executables at the right place: server/default/deploy/jbossweb.sar/ROOT.war/WEB-INF/cgi in the above example.

    Remeber cgi could be very insafe and uses a process to run that often forks the JVM before executing the script.