Fusion Middleware Documentation
Advanced Search


Developing Web Applications, Servlets, and JSPs for Oracle WebLogic Server
Close Window

Table of Contents

Show All | Collapse

C Support for GlassFish Deployment Descriptors

WebLogic Server offers support for a subset of GlassFish deployment descriptors so that basic Web applications which deploy and run on GlassFish Server can be deployed on WebLogic Server.

If a Web application has both weblogic.xml and glassfish-web.xml or sun-web.xml, WebLogic Server will use weblogic.xml and ignore the GlassFish deployment descriptors. If a Web application has both glassfish-web.xml and sun-web.xml, WebLogic Server will use glassfish-web.xml and ignore sun-web.xml.

If the GlassFish element is on the list of supported deployment descriptors described in Table C-1, WebLogic Server will use the settings of its counterpart element in weblogic.xml. If the element is not on the list of supported deployment descriptors, WebLogic Server will ignore the element.

When glassfish-web.xml or sun-web.xml is being used, WebLogic Server emits an INFO level log message including whether individual settings are being used or ignored. WebLogic Server will not generate or persist the corresponding weblogic.xml descriptor elements.

Table C-1 Supported GlassFish Deployment Descriptors

glassfish-web.xml Element Name Corresponding weblogic.xml Element Name

context-root

context-root

security-role-mapping

  • role-name

  • principal-name

  • group-name

security-role-assignment

  • role-name

  • principal-name

  • principal-name

session-config

  • session-manager:manager-properties:reapIntervalSeconds

  • session-manager:manager-properties:maxSessions

  • session-manager:store-properties:directory

  • session-properties:timeoutSeconds

session-descriptor

  • invalidation-interval-seconds

  • max-in-memory-sessions

  • persistent-store-dir

  • timeout-secs

ejb-ref

  • ejb-ref-name

  • jndi-name

ejb-reference-description

  • ejb-ref-name

  • jndi-name

resource-ref

  • res-ref-name

  • jndi-name

resource-description

  • res-ref-name

  • jndi-name

resource-env-ref

  • resource-env-ref-name

  • jndi-name

resource-env-description

  • resource-env-ref-name

  • jndi-name

class-loader

  • delegate

container-descriptor

  • prefer-web-inf-classes

jsp-config

  • checkInterval

  • keepgenerated

  • scratchdir

jsp-descriptor

  • page-check-seconds

  • keepgenerated

  • working-dir