Vinay Vishal | 7c4c4fc | 2019-01-28 12:01:04 +0530 | [diff] [blame] | 1 | type=page |
| 2 | status=published |
| 3 | title=unset-web-context-param |
| 4 | next=unset-web-env-entry.html |
| 5 | prev=unset.html |
| 6 | ~~~~~~ |
| 7 | unset-web-context-param |
| 8 | ======================= |
| 9 | |
| 10 | [[unset-web-context-param-1]][[GSRFM00248]][[unset-web-context-param]] |
| 11 | |
| 12 | unset-web-context-param |
| 13 | ----------------------- |
| 14 | |
| 15 | unsets a servlet context-initialization parameter of a deployed web |
| 16 | application or module |
| 17 | |
| 18 | [[sthref2242]] |
| 19 | |
| 20 | Synopsis |
| 21 | |
| 22 | [source,oac_no_warn] |
| 23 | ---- |
| 24 | asadmin [asadmin-options] unset-web-context-param [--help] |
| 25 | --name=context-param-name application-name[/module] |
| 26 | ---- |
| 27 | |
| 28 | [[sthref2243]] |
| 29 | |
| 30 | Description |
| 31 | |
| 32 | The `unset-web-context-param` subcommand unsets a servlet |
| 33 | context-initialization parameter of one of the following items: |
| 34 | |
| 35 | * A deployed web application |
| 36 | * A web module in a deployed Java Platform, Enterprise Edition (Java EE) |
| 37 | application |
| 38 | |
| 39 | When a parameter is unset, its value reverts to the value, if any, that |
| 40 | is set in the application's deployment descriptor. |
| 41 | |
| 42 | The application must already be deployed. Otherwise, an error occurs. |
| 43 | |
| 44 | The parameter must have previously been set by using the |
| 45 | `set-web-context-param` subcommand. Otherwise, an error occurs. |
| 46 | |
| 47 | |
| 48 | [NOTE] |
| 49 | ======================================================================= |
| 50 | |
| 51 | Do not use the `unset-web-context-param` subcommand to change the value |
| 52 | of a servlet context-initialization parameter that is set in an |
| 53 | application's deployment descriptor. Instead, use the |
| 54 | link:set-web-context-param.html#set-web-context-param-1[`set-web-context-param`(1)] |
| 55 | subcommand for this purpose. |
| 56 | |
| 57 | ======================================================================= |
| 58 | |
| 59 | |
| 60 | This subcommand enables you to change the configuration of a deployed |
| 61 | application without the need to modify the application's deployment |
| 62 | descriptors and repackage and redeploy the application. |
| 63 | |
| 64 | This subcommand is supported in remote mode only. |
| 65 | |
| 66 | [[sthref2244]] |
| 67 | |
| 68 | Options |
| 69 | |
| 70 | asadmin-options:: |
| 71 | Options for the `asadmin` utility. For information about these |
| 72 | options, see the link:asadmin.html#asadmin-1m[`asadmin`(1M)] help page. |
| 73 | `--help`:: |
| 74 | `-?`:: |
| 75 | Displays the help text for the subcommand. |
| 76 | `--name`:: |
| 77 | The name of the servlet context-initialization parameter that is to be |
| 78 | unset. This parameter must have previously been set by using the |
| 79 | `set-web-context-param` subcommand. Otherwise, an error occurs. |
| 80 | |
| 81 | [[sthref2245]] |
| 82 | |
| 83 | Operands |
| 84 | |
| 85 | application-name:: |
| 86 | The name of the application. This name can be obtained from the |
| 87 | Administration Console or by using the |
| 88 | link:list-applications.html#list-applications-1[`list-applications`(1)] |
| 89 | subcommand. + |
| 90 | The application must already be deployed. Otherwise, an error occurs. |
| 91 | module:: |
| 92 | The relative path to the module within the application's enterprise |
| 93 | archive (EAR) file. The path to the module is specified in the |
| 94 | `module` element of the application's `application.xml` file. + |
| 95 | module is required only if the servlet context-initialization |
| 96 | parameter applies to a web module of a Java EE application. If |
| 97 | specified, module must follow application-name, separated by a slash |
| 98 | (/). + |
| 99 | For example, the `application.xml` file for the `myApp` application |
| 100 | might specify the following web module: + |
| 101 | [source,oac_no_warn] |
| 102 | ---- |
| 103 | <module> |
| 104 | <web> |
| 105 | <web-uri>myWebModule.war</web-uri> |
| 106 | </web> |
| 107 | </module> |
| 108 | ---- |
| 109 | :: |
| 110 | The module would be specified as the operand of this command as |
| 111 | `myApp/myWebModule.war`. |
| 112 | |
| 113 | [[sthref2246]] |
| 114 | |
| 115 | Examples |
| 116 | |
| 117 | [[GSRFM783]][[sthref2247]] |
| 118 | |
| 119 | Example 1 Unsetting a Servlet Context-Initialization Parameter for a |
| 120 | Web Application |
| 121 | |
| 122 | This example unsets the servlet context-initialization parameter |
| 123 | `javax.faces.STATE_SAVING_METHOD` of the web application `basic-ezcomp`. |
| 124 | The parameter reverts to the value, if any, that is defined in the |
| 125 | application's deployment descriptor. |
| 126 | |
| 127 | [source,oac_no_warn] |
| 128 | ---- |
| 129 | asadmin> unset-web-context-param |
| 130 | --name=javax.faces.STATE_SAVING_METHOD basic-ezcomp |
| 131 | |
| 132 | Command unset-web-context-param executed successfully. |
| 133 | ---- |
| 134 | |
| 135 | [[sthref2248]] |
| 136 | |
| 137 | Exit Status |
| 138 | |
| 139 | 0:: |
| 140 | command executed successfully |
| 141 | 1:: |
| 142 | error in executing the command |
| 143 | |
| 144 | [[sthref2249]] |
| 145 | |
| 146 | See Also |
| 147 | |
| 148 | link:asadmin.html#asadmin-1m[`asadmin`(1M)] |
| 149 | |
| 150 | link:list-applications.html#list-applications-1[`list-applications`(1)], |
| 151 | link:list-web-context-param.html#list-web-context-param-1[`list-web-context-param`(1)], |
| 152 | link:set-web-context-param.html#set-web-context-param-1[`set-web-context-param`(1)] |
| 153 | |
| 154 | |