Wendy Smoak wrote:
> 
> > From: [EMAIL PROTECTED]
> > An trying to convert a simple servlet of the HelloWorld
> > variety (pure HTML -- no JSP, EJB, JDBC, etc) from
> > tomcat 3.2.3 to 4.1.30.  It works fine with tomcat 3.2.3
> > in standalone mode but gives a 404 error in 4.1.30 with
> > both netscape and mozilla.
> 
> What URL are you visiting when you get the 404 error?  Any chance it has
> /servlet/ in it?  If so, read here:
> http://test.javaranch.com/wiki/view?InvokerServlet


Probably not the problem.

The following <Context>'s were added to the end of the 
distro server.xml:

        <!-- JReality contexts >
             <!-- equiv to apache htdocs -- 
             this one works and gives 4.1.30 access to the vanilla html pages -->

        <Context path="/jreality" docBase="jreality" debug="0"
                 reloadable="true" crossContext="true">
          <Logger className="org.apache.catalina.logger.FileLogger"
                     prefix="jreality_log." suffix=".txt"
              timestamp="true"/>
        </Context>


        <!-- for support of an applet, not a servlet --
             does not work, but one problem at a time! -->

        <Context path="/surveyor" docBase="surveyor" debug="0"
                 reloadable="true" crossContext="true">
          <Logger className="org.apache.catalina.logger.FileLogger"
                     prefix="surveyor_log." suffix=".txt"
              timestamp="true"/>
        </Context>


        <!-- the Stubborn Simple Servlet -->

        <Context path="/ship_pix" docBase="ship_pix" debug="0"   
                 reloadable="true" crossContext="true">
          <Logger className="org.apache.catalina.logger.FileLogger"
                     prefix="ship_pix_log." suffix=".txt"
              timestamp="true"/>
        </Context>


The above pairs with the following in the servlet web.xml file:

    <servlet>
      <servlet-name>LdjServlet</servlet-name>
      <description>
        Generates dynamic pages for the LDJ web site.  Currently this
        consists of frame list pages for displaying selected ship photos.
        The pages generated have the names
          pix_dir.html
        for the list of ship photo subdirectories (the upper left list
        of the photo frame) and
          pix_[subdir].html
        for the list of photos in one subdirectory (the lower left list
        of the photo frame).
      </description>
      <servlet-class>com.jreality.ldj.l_ships.LdjServlet</servlet-class>
    </servlet>

    <servlet-mapping>
      <servlet-name>LdjServlet</servlet-name>
      <url-pattern>*.pxhtml</url-pattern>
    </servlet-mapping>


The above does not appear to match the 'invoker' patterns shown 
in the referenced URL's.  The above works in tomcat 3.2.3.


-- 
Rick Lutowski
Principal, JReality
[EMAIL PROTECTED]
http://www.jreality.com

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

Reply via email to