----- Original Message -----

> From: "Mark Thomas" <ma...@apache.org>
> To: "Tomcat Users List" <users@tomcat.apache.org>
> Sent: Wednesday, August 13, 2014 1:05:58 AM
> Subject: Re: HTTP Status 500 - Error instantiating servlet class
> org.apache.jsp.index_jsp

> On 12/08/2014 23:56, Dennis Longnecker wrote:

> > I'm thinking it has something to do with the web.xml in the web-inf
> > file...which looks like:

> You are correct.

> > <?xml version="1.0" encoding="ISO-8859-1"?>
> > <!--
> > Copyright 2004 The Apache Software Foundation
> >
> > Licensed under the Apache License, Version 2.0 (the "License");
> > you may not use this file except in compliance with the License.
> > You may obtain a copy of the License at
> >
> > http://www.apache.org/licenses/LICENSE-2.0
> >
> > Unless required by applicable law or agreed to in writing, software
> > distributed under the License is distributed on an "AS IS" BASIS,
> > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> > See the License for the specific language governing permissions and
> > limitations under the License.
> > -->
> >
> > <web-app xmlns="http://java.sun.com/xml/ns/j2ee";
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
> > version="2.4">
> >
> > <display-name>Welcome to Tomcat</display-name>
> > <description>
> > Welcome to Tomcat
> > </description>
> >

> Remove everything starting with this line
> > <!-- JSPC servlet mappings start -->
> >
> > <servlet>
> > <servlet-name>org.apache.jsp.index_jsp</servlet-name>
> > <servlet-class>org.apache.jsp.index_jsp</servlet-class>
> > </servlet>
> >
> > <servlet-mapping>
> > <servlet-name>org.apache.jsp.index_jsp</servlet-name>
> > <url-pattern>/index.jsp</url-pattern>
> > </servlet-mapping>
> >
> > <!-- JSPC servlet mappings end -->

> and ending with this line.

> The app is expecting the JSPs to be pre-compiled and they aren't. The
> simplest solution is to remove this, get the app working and then look
> at pre-compiling the JSPs for Tomcat 8 if you need to.

> Mark

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

I changed the web.xml as described. I delete delete the work directory and 
restarted the web server. 

These files reside in the /external-references directory under webappl. The 
main purpose is to display files in the different directories. In the 
/external-references/META-INF there is a file called context.xml, and it has a 
single line that says: <Context docBase="C:\WikiShare" reloadable="true"/> 

So if someone types in http:/devwiki:8080/external-references/docs/fred.txt, it 
is suppossed to display the file in c:\WikiShare\docs\fred.txt. However, when I 
do that, I get: 

HTTP Status 404 - /external-references/docs/fred.txt 
type Status report 

message /external-references/docs/fred.txt 

description The requested resource is not available. 

The only log entry is in localhost_access_log is: 
206.194.128.141 - - [13/Aug/2014:10:57:05 -0700] "GET 
/external-references/docs/fred.txt HTTP/1.1" 404 1058 

Reply via email to