{"id":19553,"date":"2022-10-31T09:49:49","date_gmt":"2022-10-31T08:49:49","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/?p=19553"},"modified":"2024-09-10T17:26:17","modified_gmt":"2024-09-10T15:26:17","slug":"fusion-middleware-weblogic-domain-creation-fails-with-opss-error","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\/","title":{"rendered":"Fusion Middleware WebLogic domain creation fails with OPSS error"},"content":{"rendered":"\n<p>Working with YaK core, we created a YaK component to deploy WebLogic Domains, Fusion Middleware Forms &amp; Reports and Fusion Middleware ADF infrastructure. The idea is to be able to deploy such kind of infrastructure in different Clouds or on-Premise without any line change at component level. During the development phase I run in an issue I never saw before. The ansible automatic deployment of a Fusion Middleware Forms &amp; Reports infrastructure failed during the WebLogic domain creation with the following error:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; highlight: [19,20,39]; title: ; notranslate\" title=\"\">\nInitializing WebLogic Scripting Tool (WLST) ...\n\nWelcome to WebLogic Server Administration Scripting Shell\n\nType help() for help on available commands\n\nLoad properties file\n\/u01\/app\/weblogic\/admin\/etc\/\/fr-domain\/domain.properties\n&amp;gt;&amp;gt;&amp;gt;Domain template loaded: \/u01\/app\/weblogic\/12c\/Middleware\/wlserver\/common\/templates\/wls\/wls.jar\nSAVE DOMAIN\n&amp;gt;&amp;gt;&amp;gt;Domain updated.\nREAD DOMAIN\n&amp;gt;&amp;gt;&amp;gt;Domain readed.\nError: runCmd() failed. Do dumpStack() to see details.\nProblem invoking WLST - Traceback (innermost last):\n  File &quot;\/u01\/app\/weblogic\/admin\/etc\/fr-domain\/CreateDomain.py&quot;, line 191, in ?\n  File &quot;\/tmp\/WLSTOfflineIni7805615143527482407.py&quot;, line 143, in updateDomain\n  File &quot;\/tmp\/WLSTOfflineIni7805615143527482407.py&quot;, line 19, in command\n64254: Error occurred in &quot;OPSS Processing&quot; phase execution\n64254: Encountered error: SecurityContext:\n Domain Name: fr-domain\n JDBC URL: opss-audit-DBDS:jdbc:oracle:thin:@\/\/vm08.it.dbi-services.com:1521\/MD\n JDBC URL: opss-data-source:jdbc:oracle:thin:@\/\/vm08.it.dbi-services.com:1521\/MD\n JNDI Name: opss-audit-DBDS:jdbc\/AuditAppendDataSource\n JNDI Name: opss-data-source:jdbc\/OpssDataSource\n Driver Name: opss-audit-DBDS:oracle.jdbc.OracleDriver\n Driver Name: opss-data-source:oracle.jdbc.OracleDriver\n Persistence Type: DATABASE\n Platform: WLS\n Scratch Dir: scratch\n Reconfig Domain: false\n Shared Secret Store: null\n Extension: true\n DisableManagementOperations: falseJDBC Properties:\nuser:vm12FR_IAU_APPEND\nusername:vm12FR_IAU_APPENDJDBC Properties:\nuser:vm12FR_OPSS\nusername:vm12FR_OPSS\n64254: Check log for more detail.\nnull\n        at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:69)\n        at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:3085)\n        at com.oracle.cie.domain.script.jython.WLScriptContext.runCmd(WLScriptContext.java:738)\n        at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source)\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n        at java.lang.reflect.Method.invoke(Method.java:498)\n\ncom.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.jython.WLSTException: Error updating domain:\n64254: Error occurred in &quot;OPSS Processing&quot; phase execution\n64254: Encountered error: SecurityContext:\n Domain Name: fr-domain\n JDBC URL: opss-audit-DBDS:jdbc:oracle:thin:@\/\/vm08.it.dbi-services.com:1521\/MD\n JDBC URL: opss-data-source:jdbc:oracle:thin:@\/\/vm08.it.dbi-services.com:1521\/MD\n JNDI Name: opss-audit-DBDS:jdbc\/AuditAppendDataSource\n JNDI Name: opss-data-source:jdbc\/OpssDataSource\n Driver Name: opss-audit-DBDS:oracle.jdbc.OracleDriver\n Driver Name: opss-data-source:oracle.jdbc.OracleDriver\n Persistence Type: DATABASE\n Platform: WLS\n Scratch Dir: scratch\n Reconfig Domain: false\n Shared Secret Store: null\n Extension: true\n DisableManagementOperations: falseJDBC Properties:\nuser:vm12FR_IAU_APPEND\nusername:vm12FR_IAU_APPENDJDBC Properties:\nuser:vm12FR_OPSS\nusername:vm12FR_OPSS\n64254: Check log for more detail.\nnull\n\n<\/pre><\/div>\n\n\n<p>The following WLST command was called in ansible to create the WebLogic domain <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n \/u01\/app\/weblogic\/12c\/Middleware\/oracle_common\/common\/bin\/wlst.sh CreateDomain.py fr-domain\n<\/pre><\/div>\n\n\n<p>The issue is that a first run of the ansible code created partially the WebLogic Domain and registered it to the OPSS layer. The only solution is to drop the repository created and the WebLogic domain files and start again the deployment.<br>To create and drop the Fusion Middleware repository, the Repository Creation utility is used in silent mode. The following template is used in ansible and the resulting script is called to drop the Fusion Middleware repository from the database.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#!\/bin\/bash\nSCRIPT=$(readlink -f $0)\nSCRIPT_PATH=$(dirname $SCRIPT)\n\nJAVA_HOME={{ pv_java_home }}\nexport JAVA_HOME\n\n{{ pv_mw_home }}\/oracle_common\/bin\/rcu \\\n  -silent \\\n  -dropRepository \\\n  -databaseType ORACLE \\\n  -connectString {{ pv_weblogic_domain_details.dbserver_name }}:{{ pv_weblogic_domain_details.dbserver_port }}\/{{ pv_weblogic_domain_details.dbserver_service }} \\\n  -dbUser sys \\\n  -dbRole SYSDBA \\\n  -schemaPrefix {{ pv_weblogic_domain_details.repository_prefix }} \\\n  -component IAU \\\n  -component IAU_APPEND \\\n  -component IAU_VIEWER \\\n  -component OPSS \\\n  -component STB \\\n  -component MDS \\\n  -f &lt; {{ pv_domain_config_location }}\/passwords.txt\n\n<\/pre><\/div>\n\n\n<p>The ansible command line to delete the repository using the  YaK core  is shown below:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nansible-playbook components\/weblogic_domain\/playbooks\/linux\/deploy_fr.yml -t fmw-repository-deletion -e target=aws_dbi_test\/srv-rhel8-wls\/FMW_FR\n\n<\/pre><\/div>\n\n\n<p>We have the same kind of template for the Fusion Middleware repository creation. Once the Fusion Middleware Repository has been dropped, the new ansible deployment with Fusion Middleware domain creation worked without any issue.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nansible-playbook components\/weblogic_domain\/playbooks\/linux\/deploy_fr.yml -t all -e target=aws_dbi_test\/srv-rhel8-wls\/FMW_FR\n\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Working with YaK core, we created a YaK component to deploy WebLogic Domains, Fusion Middleware Forms &amp; Reports and Fusion Middleware ADF infrastructure. The idea is to be able to deploy such kind of infrastructure in different Clouds or on-Premise without any line change at component level. During the development phase I run in an [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197,59],"tags":[],"type_dbi":[],"class_list":["post-19553","post","type-post","status-publish","format-standard","hentry","category-application-integration-middleware","category-oracle"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Fusion Middleware WebLogic domain creation fails with OPSS error - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fusion Middleware WebLogic domain creation fails with OPSS error\" \/>\n<meta property=\"og:description\" content=\"Working with YaK core, we created a YaK component to deploy WebLogic Domains, Fusion Middleware Forms &amp; Reports and Fusion Middleware ADF infrastructure. The idea is to be able to deploy such kind of infrastructure in different Clouds or on-Premise without any line change at component level. During the development phase I run in an [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-31T08:49:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-10T15:26:17+00:00\" \/>\n<meta name=\"author\" content=\"Middleware Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Middleware Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\\\/\"},\"author\":{\"name\":\"Middleware Team\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/8d8563acfc6e604cce6507f45bac0ea1\"},\"headline\":\"Fusion Middleware WebLogic domain creation fails with OPSS error\",\"datePublished\":\"2022-10-31T08:49:49+00:00\",\"dateModified\":\"2024-09-10T15:26:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\\\/\"},\"wordCount\":234,\"commentCount\":0,\"articleSection\":[\"Application integration &amp; Middleware\",\"Oracle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\\\/\",\"name\":\"Fusion Middleware WebLogic domain creation fails with OPSS error - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"datePublished\":\"2022-10-31T08:49:49+00:00\",\"dateModified\":\"2024-09-10T15:26:17+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/8d8563acfc6e604cce6507f45bac0ea1\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fusion Middleware WebLogic domain creation fails with OPSS error\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/8d8563acfc6e604cce6507f45bac0ea1\",\"name\":\"Middleware Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"caption\":\"Middleware Team\"},\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/middleware-team\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Fusion Middleware WebLogic domain creation fails with OPSS error - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\/","og_locale":"en_US","og_type":"article","og_title":"Fusion Middleware WebLogic domain creation fails with OPSS error","og_description":"Working with YaK core, we created a YaK component to deploy WebLogic Domains, Fusion Middleware Forms &amp; Reports and Fusion Middleware ADF infrastructure. The idea is to be able to deploy such kind of infrastructure in different Clouds or on-Premise without any line change at component level. During the development phase I run in an [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\/","og_site_name":"dbi Blog","article_published_time":"2022-10-31T08:49:49+00:00","article_modified_time":"2024-09-10T15:26:17+00:00","author":"Middleware Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Middleware Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\/"},"author":{"name":"Middleware Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"headline":"Fusion Middleware WebLogic domain creation fails with OPSS error","datePublished":"2022-10-31T08:49:49+00:00","dateModified":"2024-09-10T15:26:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\/"},"wordCount":234,"commentCount":0,"articleSection":["Application integration &amp; Middleware","Oracle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\/","url":"https:\/\/www.dbi-services.com\/blog\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\/","name":"Fusion Middleware WebLogic domain creation fails with OPSS error - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2022-10-31T08:49:49+00:00","dateModified":"2024-09-10T15:26:17+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/fusion-middleware-weblogic-domain-creation-fails-with-opss-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Fusion Middleware WebLogic domain creation fails with OPSS error"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1","name":"Middleware Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","caption":"Middleware Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/19553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=19553"}],"version-history":[{"count":13,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/19553\/revisions"}],"predecessor-version":[{"id":20251,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/19553\/revisions\/20251"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=19553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=19553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=19553"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=19553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}