[jdom-interest] problem with web.xml

Peter Barraud peterb at interrait.com
Mon Jun 25 01:27:35 PDT 2001


Hi,
I wanted to use jdom to make some changes to the web.xml file in my tomcat
but when I try to access the file using the SAXBuilder it waits some time
and then says
"org.jdom.JDOMException: Error in building: Operation timed out: no further
information"
I took the web.xml file that comes along with the jdom-b7 zip file and that
works ok
here is the contents of my web.xml file (the one that gives the error) can
anybody tell me what's wrong.

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

    <security-constraint>
      <web-resource-collection>
         <web-resource-name>Protected Area</web-resource-name>
         <url-pattern>/contextAdmin/*</url-pattern>
	 <http-method>DELETE</http-method>
         <http-method>GET</http-method>
         <http-method>POST</http-method>
	 <http-method>PUT</http-method>
      </web-resource-collection>
      <auth-constraint>
         <role-name>admin</role-name>
      </auth-constraint>
    </security-constraint>

    <login-config>
      <auth-method>BASIC</auth-method>
      <realm-name>Admin</realm-name>
    </login-config>


</web-app>




More information about the jdom-interest mailing list