You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by mike markovich <mi...@amyskitchen.net> on 2002/09/30 17:31:15 UTC

RE: Porting webapp from 3.1 to 4.1.12

Hi Karl,

This was passed on to me yesterday and it may relate to your problem:

Jacob Kjome wrote:

>
> The default servlet invoker was disabled by default for security 
> reasons which is why you are getting a 404 error.  It can be 
> re-enabled by uncommenting the mapping for the url pattern /servlet/* 
> in $TOMCAT_HOME/conf/web.xml.  You will need to restart Tomcat after 
> doing this.
>
> <!--
>     <servlet-mapping>
>         <servlet-name>invoker</servlet-name>
>         <url-pattern>/servlet/*</url-pattern>
>     </servlet-mapping>
> -->
>

Good Luck,
Mike

-----Original Message-----
From: Karl Hauth [mailto:karlhauth@hotmail.com]
Sent: Monday, September 30, 2002 8:32 AM
To: tomcat-user@jakarta.apache.org
Subject: Porting webapp from 3.1 to 4.1.12


Hello all!  Zoinks this list is busier than I expected!  Thank you for
making yourselves available to us!

I am porting an application from Tomcat 3.1 to 4.1.12.

I am able to see http://dew:8080/index.jsp and the JSP and servlet examples 
all work.  Browsing to http://dew:8080/examples shows me a directory listing 
from my $TOMCAT_HOME/webapps/examples directory.  Clicking links works as 
expected.

My application is housed in /home/webapps/ebonds and is made up of html & 
class files.  No WAR file.  There is /home/webapps/ebonds/index.html file.  
I have recompiled my application with a new XXXX.jar file.  I have not 
changed any code.

When I browse http://dew:8080/ebonds I get:
    HTTP Status 404 - /ebonds
    --------------------------------
    type Status report
    message /ebonds
    description The requested resource (/ebonds) is not available.
    --------------------------------
    Apache Tomcat/4.1.12
Browsing http://dew:8080/ebonds/index.html yields a similar response.

I thought perhaps something didn't like not being inside $TOMCAT_HOME, so I 
copied $TOMCAT_HOME/webapps/examples to /home/webapps/exs and added a 
Context to my server.xml file.  Browsing http://dew:8080/exs works just as 
I'd like.  But I can't find any significatn differences between 
/home/webapps/exs & /home/webapps/ebonds.

I hope I'm overlooking something obvious.
Thanks in advance!
Karl

Here's my server.xml file:
<Server port="8005" shutdown="SHUTDOWN" debug="0">
  <Service name="Tomcat-Standalone">

    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="8080" minProcessors="1" maxProcessors="75"
               enableLookups="false" acceptCount="10" debug="0"
               />

    <Engine name="StandaloneEngine" defaultHost="dew" debug="0">
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="engine_log." suffix=".txt"
              timestamp="true"/>

      <Host name="dew" debug="0" appBase="webapps" unpackWARs="true">
        <Valve className="org.apache.catalina.valves.AccessLogValve"
               directory="logs"  prefix="dew_access_log." suffix=".txt"
               pattern="common"/>
        <Logger className="org.apache.catalina.logger.FileLogger"
                directory="logs"  prefix="dew_log." suffix=".txt"
                timestamp="true" verbosity="1" />

        <Context path=""                 docBase="ROOT"                 />
        <Context path="/examples"        docBase="examples"             />
        <Context path="/exs"             docBase="/home/webapps/exs"    />
        <Content path="/ebonds"          docBase="/home/webapps/ebonds" />

        <Realm className="org.apache.catalina.realm.MemoryRealm" />

      </Host>
    </Engine>
  </Service>
</Server>


_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>