Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Developer's Guide

- Previous: The sun-application.xml File
- Next: The sun-ejb-jar.xml File

# The sun-web.xml File

The element hierarchy in the `sun-web.xml` file is as follows:

    sun-web-app
    .  context-root
    .  security-role-mapping
    .  .  role-name
    .  .  principal-name
    .  .  group-name
    .  servlet
    .  .  servlet-name
    .  .  principal-name
    .  .  webservice-endpoint
    .  .  .  port-component-name
    .  .  .  endpoint-address-uri
    .  .  .  login-config
    .  .  .  .  auth-method
    .  .  .  message-security-binding
    .  .  .  .  message-security
    .  .  .  .  .  message
    .  .  .  .  .  .  java-method
    .  .  .  .  .  .  .  method-name
    .  .  .  .  .  .  .  method-params
    .  .  .  .  .  .  .  .  method-param
    .  .  .  .  .  .  operation-name
    .  .  .  .  .  request-protection
    .  .  .  .  .  response-protection
    .  .  .  transport-guarantee
    .  .  .  service-qname
    .  .  .  tie-class
    .  .  .  servlet-impl-class
    .  idempotent-url-pattern
    .  session-config
    .  .  session-manager
    .  .  .  manager-properties
    .  .  .  .  property (with attributes)
    .  .  .  .  .  description
    .  .  .  store-properties
    .  .  .  .  property (with attributes)
    .  .  .  .  .  description
    .  .  session-properties
    .  .  .  property (with attributes)
    .  .  .  .  description
    .  .  cookie-properties
    .  .  .  property (with attributes)
    .  .  .  .  description
    .  ejb-ref
    .  .  ejb-ref-name
    .  .  jndi-name
    .  resource-ref
    .  .  res-ref-name
    .  .  jndi-name
    .  .  default-resource-principal
    .  .  .  name
    .  .  .  password
    .  resource-env-ref
    .  .  resource-env-ref-name
    .  .  jndi-name
    .  service-ref
    .  .  service-ref-name
    .  .  port-info
    .  .  .  service-endpoint-interface
    .  .  .  wsdl-port
    .  .  .  .  namespaceURI
    .  .  .  .  localpart
    .  .  .  stub-property
    .  .  .  .  name
    .  .  .  .  value
    .  .  .  call-property
    .  .  .  .  name
    .  .  .  .  value
    .  .  .  message-security-binding
    .  .  .  .  message-security
    .  .  .  .  .  message
    .  .  .  .  .  .  java-method
    .  .  .  .  .  .  .  method-name
    .  .  .  .  .  .  .  method-params
    .  .  .  .  .  .  .  .  method-param
    .  .  .  .  .  .  operation-name
    .  .  .  .  .  request-protection
    .  .  .  .  .  response-protection
    .  .  call-property
    .  .  .  name
    .  .  .  value
    .  .  wsdl-override
    .  .  service-impl-class
    .  .  service-qname
    .  .  .  namespaceURI
    .  .  .  localpart
    .  cache
    .  .  cache-helper
    .  .  .  property (with attributes)
    .  .  .  .  description
    .  .  default-helper
    .  .  .  property (with attributes)
    .  .  .  .  description
    .  .  property (with attributes)
    .  .  .  description
    .  .  cache-mapping
    .  .  .  servlet-name
    .  .  .  url-pattern
    .  .  .  cache-helper-ref
    .  .  .  dispatcher
    .  .  .  timeout
    .  .  .  refresh-field
    .  .  .  http-method
    .  .  .  key-field
    .  .  .  constraint-field
    .  .  .  .  constraint-field-value
    .  class-loader
    .  .  property (with attributes)
    .  .  .  description
    .  jsp-config
    .  locale-charset-info
    .  .  locale-charset-map
    .  .  parameter-encoding
    .  property (with attributes)
    .  .  description
    .  parameter-encoding
    .  message-destination
    .  .  message-destination-name
    .  .  jndi-name
    .  webservice-description
    .  .  webservice-description-name
    .  .  wsdl-publish-location

Here is a sample `sun-web.xml` file:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Application
    Server 8.1 Servlet 2.4//EN'
    'http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd'>
    <sun-web-app>
       <session-config>
          <session-manager/>
       </session-config>
       <resource-ref>
          <res-ref-name>mail/Session</res-ref-name>
          <jndi-name>mail/Session</jndi-name>
       </resource-ref>
       <jsp-config/>
    </sun-web-app>

- Previous: The sun-application.xml File
- Next: The sun-ejb-jar.xml File

- © 2010, Oracle Corporation and/or its affiliates