{"id":4458,"date":"2013-10-24T13:24:23","date_gmt":"2013-10-24T17:24:23","guid":{"rendered":"https:\/\/pitss.org\/us\/2013\/10\/24\/how-to-modify-custom-jar-files-with-permissions-and-codebase-attributes\/"},"modified":"2017-06-27T11:19:53","modified_gmt":"2017-06-27T15:19:53","slug":"how-to-modify-custom-jar-files-with-permissions-and-codebase-attributes","status":"publish","type":"post","link":"https:\/\/pitss.org\/us\/2013\/10\/24\/how-to-modify-custom-jar-files-with-permissions-and-codebase-attributes\/","title":{"rendered":"How to Modify Custom Jar Files with Permissions and Codebase Attributes"},"content":{"rendered":"<p><strong>Updated: May 15, 2014<\/strong><\/p>\n<p>Due to the latest Java security patches beginning with JRE 1.7.0_25 and higher (especially JRE 1.7.0_45), all jar files have to be updated with the codebase and permissions attributes (and also the Application-Name attribute starting with JRE 1.7.0_45 although not mandatory at this time). For any jar files supplied by Oracle, please install Oracle Patch 16837591. <strong>NOTE: Do NOT update the Oracle jar files yourself! PITSS will not be held responsible if the Oracle jar files are tampered with.<\/strong> For steps on how to install the patch, please review our KB article at <a href=\"https:\/\/pitss.org\/us\/2013\/09\/26\/missing-required-permissions-manifest-attribute-in-main-jar\/\">https:\/\/pitss.org\/us\/2013\/09\/26\/missing-required-permissions-manifest-attribute-in-main-jar\/<\/a>.<\/p>\n<p>To update any custom-made jar files (or even jacob.jar) to include these parameters in the Java code, you may follow these steps:<\/p>\n<p>NOTE: In this example, MIDDLEWARE_HOME is C:\\Oracle\\Middleware (\/oracle\/middleware) and the ORACLE_HOME for Forms\/Reports is C:\\Oracle\\Middleware\\as_1 (\/oracle\/middleware\/as_1)<\/p>\n<ol>\n<li>Navigate to %ORACLE_HOME%\\forms\\java ($ORACLE_HOME\/forms\/java).<\/li>\n<li>Create a new file called mymanifest.txt using a text editor.<\/li>\n<li>Add the following values into the text file:\n<ul>\n<li>Permissions: all-permissions<\/li>\n<li>Codebase: *<\/li>\n<li>Application-Name: OracleForms<\/li>\n<li><a class=\"thickbox\" href=\"https:\/\/pitss.org\/files\/2013\/10\/image11.png\"><img loading=\"lazy\" decoding=\"async\" style=\"padding-left: 0px;padding-right: 0px;padding-top: 0px;border-width: 0px\" title=\"image\" src=\"https:\/\/pitss.org\/files\/2013\/10\/image_thumb11.png\" alt=\"image\" width=\"335\" height=\"150\" border=\"0\" \/><\/a><\/li>\n<li>IMPORTANT: Please add a line below the Application-Name attribute. Otherwise, this attribute will not be added to the manifest file!<\/li>\n<\/ul>\n<\/li>\n<li>Save and close the file.<\/li>\n<li>In Command Prompt (Windows) or your SSH client (Unix), echo your PATH environment variable to make sure your JDK is in the PATH. Example: C:\\Program Files\\Java\\jdk1.7.0_45\\bin;\u2026 If it is not there, update the PATH variable as follows (using JDK 1.7.0_45 as an example):\n<ul>\n<li>Windows: set PATH=C:Program Files\\Java\\jdk1.7.0_45\\bin;%PATH%<\/li>\n<li>Unix: export PATH=\/oracle\/jdk1.7.0_45\/bin:$PATH<\/li>\n<\/ul>\n<\/li>\n<li>Make sure you are in %ORACLE_HOME%\\forms\\java ($ORACLE_HOME\/forms\/java) and run the following command:\n<ul>\n<li>jar \u2013ufm name_of_jar.jar mymanifest.txt<\/li>\n<li>Example: jar \u2013ufm jacob.jar mymanifest.txt<\/li>\n<\/ul>\n<\/li>\n<li>Repeat step 6 for any other custom-made jar files.<\/li>\n<li>Resign any jar files you have updated in steps 6 and 7.<\/li>\n<li>Restart WLS_FORMS<\/li>\n<li>Close all browser windows and start a new browser window. Launch your Forms application.<\/li>\n<\/ol>\n<p>If successful, you should no longer see the \u201cMissing permissions manifest\u2026\u201d and \u201cMissing codebase manifest\u2026\u201d errors for your custom-made jar files.<\/p>\n<p><strong>Source: Oracle Support note 1583119.1<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Updated: May 15, 2014 Due to the latest Java security patches beginning with JRE 1.7.0_25 and higher (especially JRE 1.7.0_45), all jar files have to be updated with the codebase and permissions attributes (and also the Application-Name attribute starting with JRE 1.7.0_45 although not mandatory at this time). For any jar files supplied by Oracle, [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[26,22,4,14,19,71,10],"tags":[11,16,25,3,23,44,40],"class_list":["post-4458","post","type-post","status-publish","format-standard","hentry","category-development","category-forms","category-install-config","category-resolve-issues","category-unix-linux","category-weblogic-software","category-windows","tag-11g","tag-11gr2","tag-customer-support-request","tag-faq","tag-forms","tag-java","tag-weblogic"],"_links":{"self":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/4458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/comments?post=4458"}],"version-history":[{"count":6,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/4458\/revisions"}],"predecessor-version":[{"id":9441,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/posts\/4458\/revisions\/9441"}],"wp:attachment":[{"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/media?parent=4458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/categories?post=4458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pitss.org\/us\/wp-json\/wp\/v2\/tags?post=4458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}