You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kevin Ritter <ke...@jcafeinc.com> on 2001/12/06 18:57:41 UTC

Web.xml not found

Greetings, 

I am getting this error " ContextConfig[]: Missing application web.xml,
using defaults only" ... " Internal Error: File /WEB-INF/web.xml not found".

My WEB-INF directory name is all uppercase spelled actually the way I've
spelled it here. The web.xml file is a well-formed XML file. DO I have to
include the following DOCTYPE declaration or can I remove it:

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" 
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

Any help would be appreciated.

Kevin Ritter

-----Original Message-----
From: Brian Elliott [mailto:belliott@eswc.com] 
Sent: Thursday, December 06, 2001 7:17 AM
To: Tomcat Users List
Subject: Re: Can't find web.xml

Yes I did it things working. I think this fix was part of it - web-inf
was not all caps - WEB-INF.

thanks,

brian

Sriram Narayanan wrote:
> 
> Hi,
> 
> This is a blind shot, but have you checked that the WEB-INF name is in
capital ?
> 
> And that the web.xml is a valid one ? TC 4 is stricter with this file.
> 
> Sriram
> 
> 30/11/2001 5:27:01 PM, Brian Elliott <el...@ix.netcom.com> wrote:
> 
> >Brian Elliott wrote:
> >>
> >> I am trying to install Tomcat 4 with a content management system called
> >> Stellent. Stellent runs Tomcat as a service. But I am getting an error
> >> when I try to request a JSP page:
> >>
> >> Can't find WEB-INF/web.xml
> >
> >Here is more of the actual error message:
> >
> >11-29 16:48:52 StandardHost[localhost]: Installing web application at
> >context path  from URL
> >file:D:\Stellent\tomcat4\webapps\ROOT
> >2001-11-29 16:48:52 WebappLoader[]: Deploying class repositories to work
> >directory
> >D:\Stellent\tomcat4\work\localhost\_
> >2001-11-29 16:48:52 StandardManager[]: Seeding random number generator
> >class
> >java.security.SecureRandom
> >2001-11-29 16:48:52 StandardManager[]: Seeding of random number
> >generator has been completed
> >2001-11-29 16:48:52 ContextConfig[]: Missing application web.xml, using
> >defaults only
> >2001-11-29 16:48:52 StandardWrapper[:default]: Loading container servlet
> >default
> >2001-11-29 16:48:52 default: init
> >2001-11-29 16:48:52 StandardWrapper[:invoker]: Loading container servlet
> >invoker
> >2001-11-29 16:48:52 invoker: init
> >2001-11-29 16:48:52 StandardWrapper[:jsp]: Using Jasper classloader for
> >servlet jsp
> >2001-11-29 16:48:52 jsp: init
> >2001-11-29 16:48:52 StandardWrapper[:ssi]: Loading container servlet ssi
> >2001-11-29 16:48:52 ssi: init
> >2001-11-29 16:48:52 Internal Error: File /WEB-INF/web.xml not found
> >2001-11-29 16:48:52
> >----------------------------
> >
> >As for the logger, here is what I try - the catalina log works but the
> >JASPER_LOG (which I hope contains the Tomcat CLASSPATH) gives me the
> >following error:
> >
> >server.xml:
> >
> ><!-- Global logger unless overridden at lower levels -->
> >      <Logger className="org.apache.catalina.logger.FileLogger"
> >              prefix="catalina_log." suffix=".txt"
> >              timestamp="true" verbosityLevel = "DEBUG"/>
> >
> >      <Logger name="JASPER_LOG" verbosityLevel="WARNING"
> >timestamp="yes"/>
> >------------------------
> >
> >error:
> >
> >ERROR reading d:\stellent\config\server.xml
> >At Line 17 /Server/Service/Engine/Logger/ name=JASPER_LOG
> >verbosityLevel=WARNING
> > timestamp=yes
> >
> >java.lang.NullPointerException
> >        at java.lang.Class.forName0(Native Method)
> >        at java.lang.Class.forName(Class.java:120)
> >        at
> >org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
> >        at
> >org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
> >
> >--------------------------
> >
> >Any help on the why of the /WEB-INF/web.xml error or the JASPER_LOG
> >error would be appreciated.
> >
> >Brian
> >
> >--
> >To unsubscribe:   <ma...@jakarta.apache.org>
> >For additional commands: <ma...@jakarta.apache.org>
> >Troubles with the list: <ma...@jakarta.apache.org>
> >
> 
> _________________________________________________________
> 
> Do You Yahoo!?
> 
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>

-- 
Brian Elliott
President & CTO
Unplugged Systems
belliott@unpluggedsystems.com
http://www.unpluggedsystems.com
719.339.1204 (cell)
719.487.1437 (office)

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>