Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 4th, 2006, 03:52 PM
Friend of Wrox
 
Join Date: Oct 2003
Location: Portsmouth, Hampshire, United Kingdom.
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aadz5
Default Beginners Error!

Hi,

I am trying to run a sample application in Tomcat 4.1. I am using a context entry within the hosts tag of the server.xml. I however get this error when ever I run tomcat:

-constraint" must match "(web-resource-collection+,auth-constraint?,user-data-co
nstraint?)".
org.xml.sax.SAXParseException: The content of element type "security-constraint"
 must match "(web-resource-collection+,auth-constraint?,user-data-constraint?)".

Any ideas what it means.

Any help would be excellent.

Thanks

Adz - Its all about the JSPs baby!
__________________
Adz - Learning The J2EE Ways.
  #2 (permalink)  
Old February 4th, 2006, 05:46 PM
Authorized User
 
Join Date: Jan 2006
Location: , , USA.
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to longjava
Default

The error seems to me that your server.xml file is not a valid document. In other words, the nested elements that you have added did not match with the one defined in the DTD file.

Check your server.xml file to see if you misspell the tag names you have specified.

  #3 (permalink)  
Old February 13th, 2006, 05:06 AM
Friend of Wrox
 
Join Date: Jan 2006
Location: San Francisco, CA, USA.
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Longjava is correct: your server.xml is invalid. The error message is indicating that you have a <security-constraint> tag in your server.xml that is not ended by a </security-contraint> tag, or that you put elements inside the <security-constraint> element that do not belong there.

Jon Emerson
http://www.jonemerson.net/


Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ projects for beginners 132591 C++ Programming 5 September 2nd, 2011 02:41 AM
A better book for beginners alexmbr BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 2 August 10th, 2007 04:52 AM
Beginners question Hudson40 Excel VBA 1 January 20th, 2005 08:37 AM
Beginners book on CSS? larry HTML Code Clinic 3 January 13th, 2004 05:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.