I looked at this some more, and then went to have a beer. There was an 
error in the sequence of by <web-app> tags, but the error message did not 
say that.

Next time I'll check that the error message is telling the whole truth.

William


On Monday, July 8, 2002, at 03:00  pm, William Moore wrote:

> Here's what I have in the Cocoon web-xml file (inside the <web-app> 
> element):
>
>> <security-constraint>
>>   <web-resource-collection>
>>     <web-resource-name>Infibail Application</web-resource-name>
>>     <url-pattern>/infibail/*</url-pattern>
>>   </web-resource-collection>
>>   <auth-constraint>
>>     <role-name>Administrator</role-name>
>>   </auth-constraint>
>> </security-constraint>
>>
>> <login-config>
>>   <auth-method>FORM</auth-method>
>>   <realm-name>Infibail</realm-name>
>>   <form-login-config>
>>     <form-login-page>/login.html</form-login-page>
>>     <form-error-page>/error.html</form-error-page>
>>   </form-login-config>
>> </login-config>
>
> and here is what Tomcat says:
>
>> PARSE error at line 256 column 28
>> org.xml.sax.SAXParseException: The content of element type 
>> "web-resource-collection" must match "(web-resource-
>> name,description?,url-pattern*,http-method*)".
>
> If I put the same thing inside the Tomcat examples web.xml file, it works 
> fine. Do you have any idea what I should change to make it work? Perhaps 
> you could send me some samples of how you have implemented this so I can 
> discover where I am going wrong.
>
> Thanks
>
> William
>
> On Monday, July 8, 2002, at 02:09  pm, Nicola Ken Barozzi wrote:
>
>>
>> William Moore wrote:
>>> Last year I used Cocoon on a project for a client. User authentication 
>>> was achieved using the tools demonstrated in the http://localhost:8080/
>>> cocoon/
>>> protected/ sample.
>>> Now the client has decided he wants to use an LDAP Directory for 
>>> authentication. I tried using Tomcat's Realm implementation with Cocoon,
>>>  but I could not get that to work (if I put a <security-constraint> in 
>>> Cocoon's web.xml, Tomcat says it's incorrectly formed).
>>
>> It works here.
>> Maybe you didn't use the correct order as per web.xml DTD spec.
>>
>>> Please can someone suggest an effective/efficient way to achieve to 
>>> user-authentication with LDAP in Cocoon.
>>
>> -- Nicola Ken Barozzi                   [EMAIL PROTECTED]
>>             - verba volant, scripta manent -
>>    (discussions get forgotten, just code remains)
>> ---------------------------------------------------------------------
>>
>>
>> ---------------------------------------------------------------------
>> Please check that your question  has not already been answered in the
>> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>>
>> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
>> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>>
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to