Now that I've discovered a reasonable work-around for the bug in Forte that
causes it to hang for 40 seconds whenever a web module using struts.jar is
launched, I went ahead and created a brief installation guide in the same
style as those linked to at
http://jakarta.apache.org/struts/installation-1.0.html under "Installing
Struts with your servlet container".

Strictly speaking, Forte isn't a servlet container, but I suspect  having an
entry for Forte that describes in one paragraph how to set up the sample
.warFiles as Forte projects will make life a lot easier for Forte users
interested in Struts.

The document is available as raw XML at
http://www.go-canes.com/installation-forte.xml, and zipped at
http://www.go-canes.com/installation-forte.zip.

Content-wise, it can be summed up below:

Forte for Java 3.0 w/built-in Tomcat

These instructions address a known bug in Forte 3 as of January 2002. A
future release of Forte might fix the underlying problem and render this
work-around unnecessary.

To use any of the sample web applications bundled with Struts, simply unzip
the .warFile into a subdirectory, create a new project within Forte itself,
and mount the subdirectory into which the .warFile was unzipped as a
directory filesystem. At that point, Forte should recognize it as a web
module.

If Forte hangs for approximately 40 seconds when starting Tomcat, then
reports "The Tomcat Server is not running correctly", load the web
application's deployment descriptor (web.xml) and comment out or remove the
"debug" and "detail" init-param elements of the "servlet" element for the
"action" servlet:

<web-app>
  <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>application</param-name>
      <param-value>ApplicationResources</param-value>
    </init-param>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
<!-- The offending elements that cause Forte to hang:

    <init-param>
      <param-name>debug</param-name>
      <param-value>1</param-value>
    </init-param>

    <init-param>
      <param-name>detail</param-name>
      <param-value>1</param-value>
    </init-param>

-->

    <init-param>
      <param-name>validate</param-name>
      <param-value>true</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
  </servlet>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to