tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakarta Tomcat Newsgroup (@Basebeans.com) <jakarta-...@basebeans.com>
Subject javamail example in tomcat?
Date Fri, 31 May 2002 15:10:02 GMT
Subject: javamail example in tomcat?
From: "jambo" <stuart.jameson@axonglobal.com>
 ===
Anyone know why I get this error.  I'm just trying to run javamail wewb
example but the I get a XML parsing exception. I've checked the dtd and it
looks OK to me.  Is there a bug in the parser?

Apache Tomcat/4.0
PARSE error at line 38 column -1
org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet"
here.

<!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>
  <servlet>
    <servlet-name>FilterServlet</servlet-name>
    <display-name>FilterServlet</display-name>
    <description>no description</description>
    <servlet-class>FilterServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>FilterServlet</servlet-name>
    <url-pattern>compose</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>FilterServlet</servlet-name>
    <url-pattern>errordetails</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>FilterServlet</servlet-name>
    <url-pattern>login</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>FilterServlet</servlet-name>
    <url-pattern>logout</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>FilterServlet</servlet-name>
    <url-pattern>send</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>FilterServlet</servlet-name>
    <url-pattern>messageheaders</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>FilterServlet</servlet-name>
    <url-pattern>messagecontent</url-pattern>
  </servlet-mapping>
  <servlet>
    <servlet-name>AttachmentServlet</servlet-name>
    <display-name>AttachmentServlet</display-name>
    <description>no description</description>
    <servlet-class>AttachmentServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>AttachmentServlet</servlet-name>
    <url-pattern>attachment</url-pattern>
  </servlet-mapping>
  <display-name>JspDemo</display-name>
  <description>no description</description>
  <taglib>

<taglib-uri>http://java.sun.com/products/javamail/demo/webapp</taglib-uri>
    <taglib-location>lib/jtl.jar</taglib-location>
  </taglib>
</web-app>







--
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