Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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.
Reply With Quote
  #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.

Reply With Quote
  #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/
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:30 PM.


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