{"id":42,"date":"2008-01-29T00:31:05","date_gmt":"2008-01-29T00:31:05","guid":{"rendered":"http:\/\/ibizsoftinc.com\/blogs\/oracle-ebusiness-suite-r12\/r12-compiling-custom-jsps"},"modified":"2008-02-06T15:02:35","modified_gmt":"2008-02-06T15:02:35","slug":"r12-compiling-custom-jsps","status":"publish","type":"post","link":"https:\/\/www.ibizsoftinc.com\/blog\/r12-compiling-custom-jsps\/","title":{"rendered":"Release 12 &#8211; Compiling Custom JSPs"},"content":{"rendered":"<p>In Release 11i deployment of a custom JSP or JSPs, in general, was done as follows:<\/p>\n<p>   1. Copy the file (for example: mycustom.jsp) to the server in the $OA_HTML directory<br \/>\n   2. Using the browser URL, enter the following http:\/\/<hostname.domainname>:<port>\/OA_HTML\/mycustom.jsp<\/p>\n<p>You will notice mycustom.jsp compiled in the cache directory of the middle tier server, as follows<\/p>\n<p>cd $OA_HTML\/..\/_pages\/_oa__html<\/p>\n<p>Listing this directory will display<\/p>\n<p>_mycustom.class<br \/>\n_mycustom.java<\/p>\n<p><!--more--><\/p>\n<p>Performing the same steps in Release 12 environment  just shows a blank screen &#8211; result mycustom.jsp does not get compiled. <\/p>\n<p>In Release 12 the (automatic) compilation of JSP is disabled and on runtime, only the pre-compiled JSP&#8217;s are picked up and displayed in the browser. This is the case with 11i as well, however, in 11i it was easier to deploy custom JSPs. <\/p>\n<p>In cases where development activities are in abundance and JSP pages change often the default setting makes things a bit cumbersome to use and deployment takes a longer time. Each time a JSP is deployed a manual compilation, using the ojspCompile.pl, is needed. OC4J process needs to be restarted to pick up the modifications done to the custom JSP. <\/p>\n<p>Follow the steps below to:<\/p>\n<p>    * Automatically have the JSP recompile when JSP code has changed (or at least the time stamp has changed)<br \/>\n    * See the new JSP, in a browser window, without having the need to restart the OC4J process.<\/p>\n<p>The objective is to change the setting for main_mode from <strong>justrun<\/strong> to <strong>recompile<\/strong> in<\/p>\n<p>    $INST_TOP directory<\/p>\n<p>\/ora\/10.1.3\/j2ee\/oacore\/application-deployments\/oacore\/html\/orion-web.xml<\/p>\n<p>This can be achieved by the following steps<\/p>\n<p>    * Use the Context editor to change the value for &#8220;s_jsp_main_mode&#8221; in the <SID>.xml file used by Autoconfig and change value from justrun to recompile<br \/>\n    * Run Autoconfig to propagate the changes to the configuration files<br \/>\n    * Verify that <\/p>\n<p>$INST_TOP\/ora\/10.1.3\/j2ee\/oacore\/application-deployments\/oacore\/html\/orion-web.xml  file<\/p>\n<p> has the following lines, under the <strong>init-param <\/strong>tag<\/p>\n<p>main_mode<br \/>\nrecompile<\/p>\n<p>    * Restart the Middle Tier services<\/p>\n<p>    * Request a JSP in the browser which is compiled.<\/p>\n<p>Notice that a new _<jspname>.class is created in _pages or $OA_HTML\/..\/_pages\/_oa__html (cache directory)<\/p>\n<p>    * Make a change to the JSP file<\/p>\n<p>    * Refresh the JSP file in the browser window. Notice that _<jspname>.class is &#8216;refreshed&#8217; in the cache directory and the<br \/>\nchange can be noticed in the browser<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Release 11i deployment of a custom JSP or JSPs, in general, was done as follows: 1. Copy the file (for example: mycustom.jsp) to the server in the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-42","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.ibizsoftinc.com\/blog\/wp-json\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ibizsoftinc.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ibizsoftinc.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ibizsoftinc.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ibizsoftinc.com\/blog\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":0,"href":"https:\/\/www.ibizsoftinc.com\/blog\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ibizsoftinc.com\/blog\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ibizsoftinc.com\/blog\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ibizsoftinc.com\/blog\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}