Updating Resources Added After Extending Your Domain

3-10 Getting Started With JAX-WS Web Services for Oracle WebLogic Server Save and close the domain updateDomain closeDomain

3.2.5 Updating Resources Added After Extending Your Domain

Once you have created or extended a domain using the Weblogic Advanced Web Services for JAX-WS Extension template, if you then modify the resources in your domain, you can update the configuration of those resources quickly and easily using the following WLST script. After updating the script and executing it against your domain, all resources will be configured for advanced Web service features. Review the comments provided in the sample for more information. For more information about the WLST commands described, see the Oracle WebLogic Scripting Tool. Example 3–2 WLST Script for Updating Resources Added After Extending Your Domain Read the domain. readDomaindomain_dir Optionally configure the JMS module as a Uniform Distributed Destination Recommended setDistDestTypeWseeJaxwsJmsModule, UDD Target WseeJaxwsJmsModule to the desired servers and clusters. assignJMSSystemResource, WseeJaxwsJmsModule, Target, server_or_cluster_name Repeat assign call for other servers and clusters in the environment. Unassign the resource from the Administration Server. unassignJMSSystemResource, WseeJaxwsJmsModule, Target, Administration_Server_name sys.path.appenddomain_dir Import the wls_webservice_complete_update_utils.py script. This script is added to the domain directory when you extend the domain using the Web services extension template. import wls_webservice_complete_update_utils as update update.doWseeFixupglobals Save and close the domain. updateDomain 3.2.6 Troubleshooting Problems When Applying the WebLogic Advanced Web Services for JAX-WS Extension Template When creating or extending a domain using the WebLogic Advanced Web Services for JAX-WS Extension template wls_webservices_jaxws.jar, you may encounter an exception during the execution of the final.py script, similar to the following: Note: The wls_webservice_complete_update_utils.py script used at the end of this example is added to the domain directory when you extend the domain using the Web services extension template. Developing WebLogic Web Services 3-11 2011-02-24 15:36:26,730 WARN [Thread-32] com.oracle.cie.domain.script.ScriptExecutor - warn: set obj126 attribute Targets to new_Cluster_1, new_Cluster_2, new_Cluster_3, new_Cluster_4, new_Cluster_5, new_Cluster_6 com.oracle.cie.domain.script.ScriptException: Unable to find attribute Targets ... To workaround this issue, perform the following steps: 1. Back up the following file to a directory other than WL_ HOMEcommontemplatesapplications : WL_HOMEcommontemplatesapplicationswls_webservices_ jaxws.jar For example, copy the file to WL_ HOMEcommontemplatesapplicationsbackup . 2. Remove the scriptfinal.py file from the WL_ HOMEcommontemplatesapplicationswls_webservices_jaxws.jar file. You can do this using a graphical tool, such as Winzip, or from the command line as follows: a. Make a temp directory under the WL_ HOMEcommontemplatesapplications directory.

b. cd