You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Not Zippy <no...@gmail.com> on 2006/04/11 19:24:50 UTC

Adding a new JSP to an existing unpacked and deployed web app = 404 error

Hi

I am upgrading from a Tomcat 4.1.27 to a Tomcat 5.5.16 enviorment.
After an application is "started" any files that are added (to the
folder that contained the started web application) when accessed from
the browser reports a 404 error, be it a jsp or a gif. Is this normal
? Im also having a problem with jsp's not recompiling (but perhaps it
is the same issue)
For example
Start tomcat
Rename (tomcat_home)/webapps/ROOT/tomcat.gif to tomcat1.gif.
Go to http://localhost:8080/tomcat.gif  (Logo shows)
Go to http://localhost:8080/tomcat1.gif  (Receive 404 error)

Im probably missing something obvious Any help would be appreciated..

Here are my config files...

web.xml:(partial)
    <servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        <init-param>
            <param-name>fork</param-name>
            <param-value>false</param-value>
        </init-param>
        <init-param>
            <param-name>xpoweredBy</param-name>
            <param-value>false</param-value>
        </init-param>
        <!-- development mode settings -->
        <init-param>
            <param-name>checkInterval</param-name>
            <param-value>1</param-value>
        </init-param>
        <init-param>
            <param-name>modificationTestInterval</param-name>
            <param-value>0</param-value>
        </init-param>
        <init-param>
            <param-name>development</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param>
            <param-name>trimSpaces</param-name>
            <param-value>false</param-value>
        </init-param>
        <init-param>
            <param-name>reloading</param-name>
            <param-value>true</param-value>
        </init-param>
        <load-on-startup>3</load-on-startup>
    </servlet>

context.xml:(full)
<Context antiJARLocking="true" antiResourceLocking="true"
cachingAllowed="false" cacheTTL="1">

    <!-- Default set of monitored resources -->
    <WatchedResource>WEB-INF/web.xml</WatchedResource>

	
    <!-- Uncomment this to disable session persistence across Tomcat
restarts -->
    <!--
    <Manager pathname="" />
    -->

</Context>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org