tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Smith" <nat...@labpro2000.com>
Subject Re: Tomcat 3.3.1 Problem
Date Mon, 06 Jan 2003 21:17:35 GMT
Tomcat 3.3.1 can only use WEB.XML file that uses the servlet 2.2 dtd.
To be  more clear the top of your web.xml file should contain the following:

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

The web-apps_2_2.dtd in the url above is the file that basically describes
how the web.xml should be formatted.
Tomcat 3.3.1 implements the Servlet 2.2 API and so does not understand the
web-app_2.3.dtd.

Hope this sheds some light on the problem.

Nathan.


----- Original Message -----
From: "Sarah Stevens" <help@stevenssoftware.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Tuesday, January 07, 2003 9:09 AM
Subject: Re: Tomcat 3.3.1 Problem


> Thanks, Larry and Paul.  (Paul, I don't think I got your whole message,
> it seemed to be truncated)
>
> The '-' at the beginning or some lines are *not* in the actual file.  I
> run tomcat from a window so that I can have live debugging on my
> development computer instead of running it as a service....in the Tomcat
> window, it shows ContextXMLReader:  Context
> config=$Tomcat_Home\conf\apps-BS.xml
> AutoWebApp:  Loaded from config:  DEFAULT:/BS
> ContextManager:  Tomcat configured and in stable state
> ContextManager:  Adding DEFAULT:/BS
>
> So that all looks good....but then there is an error...
> XMLMapper:  Can't find resource for entity: -//Sun Microsystems,
> Inc.//DTD Web Application 2.3//EN
> -->http://java.sun.com/dtd/web-app_2.3.dtd "null"
>
> What does this error mean?
>
> Thanks a lot!
>
> Sarah
>
>
> Larry Isaacs wrote:
>
> >There doesn't appear to be anything wrong with the XML below,
> >assuming the '-' at the beginning of some lines are *not* in the
> >actual file.
> >
> >Check the log output of Tomcat to make sure no problems are being
> >reported at startup and when tomcat receives the browser request.
> >
> >Cheers,
> >Larry
> >
> >
> >
> >>-----Original Message-----
> >>From: Sarah Stevens [mailto:help@stevenssoftware.com]
> >>Sent: Monday, January 06, 2003 12:12 PM
> >>To: tomcat-user@jakarta.apache.org
> >>Subject: Tomcat 3.3.1 Problem
> >>
> >>
> >>Hello!
> >>
> >>I am having a problem with Tomcat 3.3.1 running with Apache.
> >>I have set
> >>up an xml file named apps-BS.xml under the conf directory as is shown
> >>with the apps-examples.xml file.  However, I am still unable
> >>to access
> >>the BS app from a browser.  Basically, I copied the apps-examples.xml
> >>file.....but my XML file text is shown below.  Am I missing something
> >>simple here?
> >>
> >> <?xml version="1.0" encoding="ISO-8859-1" ?>
> >>- <webapps>
> >>- <!--
> >> Setting special properties for /examples
> >>         ( as an example of overriding the defaults )
> >>
> >>
> >>  -->
> >>- <Context path="/BS" docBase="webapps/BS" debug="0"
> >>reloadable="true">
> >>  <SimpleRealm filename="conf/users/BS-users.xml" />
> >>  </Context>
> >>  </webapps>
> >>
> >>Thanks,
> >>
> >>Sarah
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:
> >><mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> >>For
> >>additional commands,
> >>e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> >>
> >>
> >>
> >>
> >
> >--
> >To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> >For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>
> >
> >
> >
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>
>
>
>
>



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message