You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by John Cox <jo...@yahoo.com> on 2000/07/11 11:34:17 UTC

web.xml Error

Anyone seen this one before:

I'm trying to run a webapp under Tomcat 3.1
on NT4 sp6 with jdk1.2.2 and JSDK2.0.  I've customized
the sample web.xml
file but when I try to start Tomcat, I get the
following error:

ERROR reading <path>\app\WEB_INF\web.xml
At Document root element missing

ERROR reading <path>\app\WEB_INF\web.xml
java.lang.NullPointerException
at org.apache.tomcat.util.xml.XmlMapper.readXML

The web.xml looks like this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">

<web-app>
<!-- body -->
</web-app>

Can anyone give me any sort of explaination/solution
for this?  I've tried re-typing the entire web.xml
(rather than copy/paste) in three different text
editors just incase the encoding was wrong or there
was any white space/invisible characters screwing
things up but nothing helps...


JC


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail � Free email you can access from anywhere!
http://mail.yahoo.com/

Newbie - where to get Tomcat install?

Posted by Bill Campbell <bi...@oh.verio.com>.
Hi,

   Sorry for the very basic question here but I can't figure out where to
get the installation for Tomcat. Between the Sun page and the Jakarta page,
everything directs me to the Binary page which has 4 dll's under Tomcat.
Isn't there a full installation somewhere? The full FAQ isn't available and
I can't figure out where to start. Thanks in advance!

Bill