Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Security with tomcat 5.5

Status
Not open for further replies.

qojote

Programmer
May 27, 2006
1
DE
Hi,

I am a beginner trying to configure Tomcat and my applikation to use container security.
But i don't get this working.

For testing the app is simple only and there are only 3 Pages.
/finaltest/final.html
/finaltest/index.html
/finaltest/sec.html

Here my web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns=" xmlns:xsi=" xsi:schemaLocation=" <display-name>
finaltest</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<security-constraint>
<web-resource-collection>
<web-resource-name>finaltest</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint></auth-constraint>

</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>realm</realm-name>
</login-config>
</web-app>

I thought so there can't anyone access the 3 pages.
But I still can without login access the pages.

Must i configure something more ?
I have searched for an solution in various books but all themes to be ok.

Thanks for any help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top