Previous Topic: Introduction

Next Topic: Set Up the Test Scenario

Deploy the WebLogic Sample Security Application

Add the following security constraint to the Web application deployment descriptor:

  <security-constraint>
    <web-resource-collection>
      <web-resource-name>JWS_WebService_jsp</web-resource-name>
      <url-pattern>/JWS_WebService.jsp</url-pattern>
      <http-method>GET</http-method>
      <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
      <role-name>PrivilegedUser</role-name>
    </auth-constraint>
  </security-constraint>

Deploy the sample security Web application and verify that it works properly with the authentication provider and other security settings you configured.

To verify that the sample is installed and protected correctly, use a web browser to access the following security web application resource:

http://fully_qualified_domain_name:7001/examplesWebApp/JWS_WebService.jsp

where fully_qualified_domain_name is the name of the system where WebLogic is installed. For example:

http://server1.acmewidget.com:7001/examplesWebApp/JWS_WebService.jsp

When you access this URL, WebLogic prompts you for credentials using a default realm. After the authentication and authorization process, you will be granted access to the target resource.

More Information

Set Up the Test Scenario


Copyright © 2010 CA. All rights reserved. Email CA about this topic