tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marek Dolgos <>
Subject RE: login-config / security-constraint problem
Date Mon, 29 Oct 2001 05:41:01 GMT
Just to answer my own question:

Order matters! And its:


Sorry for the wasted bandwidth


-----Original Message-----
From: Marek Dolgos []
Sent: Sunday, October 28, 2001 1:37 AM
To: Tomcat-User (E-mail)
Subject: login-config / security-constraint problem

I am getting the following error in my catalina.out file when I try to
access any file/servlet in my webapp. I don't understand why this is
happening. I don't believe that there are any syntax errors in my web.xml
file. I have JSSE set up and working. I confirmed this by removing the
<login-config> and <security-constraint> tags and accessed the server and
various html file I have in this webapp just fine via https on port 8443.

Stopping service Tomcat-Standalone
Starting service Tomcat-Standalone
Apache Tomcat/4.0
PARSE error at line 17 column -1
org.xml.sax.SAXParseException: Element "web-app" does not allow
"login-config" here.

I have the following <Realm> and <Context> in the server.xml file:

<Realm className="org.apache.catalina.realm.MemoryRealm" />


<Context path="/FileTransfer" docBase="GLExtractFileTransfer.war"

And here is the actual web.xml file:

<!DOCTYPE web-app 
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" 

    <display-name>GL Extract File Transfer</display-name>




            <web-resource-name>File Transfer</web-resource>

In this web.xml file the <security-constraint> is commented out but I have
tried with it uncommented and get a similar parse error for it too. I do
have a user entry in tomcat-users.xml which belongs tot he filetransfer
role. Does any one have ideas as to what I'm doing wrong?


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message