2 Replies Latest reply: Oct 25, 2012 11:55 AM by 970713 RSS

    How to run Standard OAF Page in Local

    939787
      Hi,

      I want to run Supplier Create Page in "Payables, Vision Operations (USA)" responsibility (AP) at my local jdeveloper. To realize this;
      0- I used anil's tutorial : http://anilpassi.com/demo/oa_framework/runPageFromjDev/prepare_environment_etc1/prepare_environment_etc1.html
      1- I found page url (/oracle/apps/*pos*/supplier/webui/SuppCrtPG) from about this page link.
      2- For copying classes files , I copied files /ORACLE/app/DEMO/apps/apps_st/comn/java/classes/oracle/apps/pos to my local.(C:\OAF\FOX_DEMO\p8431482_R12_GENERIC\jdevhome\jdev\myclasses\oracle\apps\pos)
      3- For mds files, I copied files /ORACLE/app/DEMO/apps/apps_st/appl/pos/12.0.0/mds to my local (C:\OAF\FOX_DEMO\p8431482_R12_GENERIC\jdevhome\jdev\myprojects\oracle\apps\pos\)
      4- I opened jdeveloper and create a project, I found SuppCrtPG.xml in oracle.apps.pos.supplier.webui package and run.

      Also , I didn't tell that DBC connection and project configuration(application short name,responsibility .. etc). These are correct,I think.

      But at the first run, I get an error like this ;
      Where is my fault to run a standard oaf page in my local? Can you help me?

      Thanks in advance,
      Murat

      Error Page
      Exception Details.
      oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition oracle.apps.ar.hz.components.party.organization.server.HzPuiOrganizationProfileQuickAM of type ApplicationModule not found
           at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
           at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
           at OA.jspService(_OA.java:71)
           at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
           at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
           at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
           at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
           at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
           at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
           at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
           at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
           at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
           at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
           at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
           at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
           at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
           at java.lang.Thread.run(Thread.java:595)
      ## Detail 0 ##

      Edited by: 936784 on May 25, 2012 7:26 AM

      Edited by: 936784 on May 25, 2012 7:28 AM
        • 1. Re: How to run Standard OAF Page in Local
          919822
          Hi,

          I think, all class files need to be converted into java files before running OAF page in local Jdevloper if JDevleoper cannot convert them automatically. Because of this may be you are getting error like HzPuiOrganizationProfileQuickAM of type ApplicationModule not found
          Use JAD to convert class files to java files. (No guarantee that JAD is 100% accurate)

          Thanks,
          Venkat.

          Edited by: 916819 on May 28, 2012 1:30 AM
          • 2. Re: How to run Standard OAF Page in Local
            970713
            That is not always true . The biggest problem with supplier page is you need different class files from different locations . to run supplier page from Jdeveloper you need to copy 7 folders from JAVA_TOP/oracle/apps/ locations.

            THe folders are AR,POS,PO,pos,ego,jtf,zx,fnd ... and follow the standard procedure

            1) copy all the java_top folders mentioned above ... move them to jdevhome/jdeve/myclasses .

            2) make another copy clear the .class files and copy files from root directory (for AR it would be $AR_TOP/mds) add them to the existing folder and copy whole file in my projects do it for all 7 folders .

            3) in project properties remove select compiler and in java uncheck the xml validation (it will throw error while compiling )

            4) now run the page you want .. it willl mostly work... takes between 30-50 min for a single compilation .... it will throw some exception just select ok to them .

            This will let you run hte page from the jdeveloper .

            Pavan.