8 Replies Latest reply: Feb 15, 2013 11:21 AM by Michael Ferrante-Oracle RSS

    How Can I run Oracle 11g Form without OC4J

    985927
      Dear All,

      I was installed Oracle Data Base and Forms 11g but when I try to run the Form I can't because there's no OC4J.


      Thanks
      Eyad
        • 1. Re: How Can I run Oracle 11g Form without OC4J
          Ady Keeling
          11g works with weblogic instead. You need to start your weblogic server, before you can run the form.

          The downside is that weblogic grabs a load of ram, probably better to run weblogic on a development server and run your forms on that instead.

          Edited by: Ady Keeling on Feb 3, 2013 7:56 PM
          • 2. Re: How Can I run Oracle 11g Form without OC4J
            985927
            Thank you, but when I start weblogic

            from { d:\Oracle\Middleware\user_projects\domains\ClassicDomain }, it's ask me about for username and password.

            but Unfortunately forget it. How can I reset it ? or How can I make another username and pass word

            {
            .
            .
            JAVA Memory arguments: -Xms256m -Xmx512m -XX:MaxPermSize=512m
            .
            WLS Start Mode=Production
            .
            CLASSPATH=D:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;d
            :\Oracle\MIDDLE~1\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic
            patch.jar;d:\Oracle\MIDDLE~1\patchocp371\profiles\default\sys_manifest_classpa
            th\weblogic_patch.jar;C:\PROGRA~1\Java\JDK17~1.0_1\lib\tools.jar;D:\Oracle\MIDDL
            E~1\WLSERV~1.3\server\lib\weblogic_sp.jar;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\l
            ib\weblogic.jar;d:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3
            .6.0.jar;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;d:\Oracle\MIDD
            LE~1\modules\ORGAPA~1.1/lib/ant-all.jar;d:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/
            lib/ant-contrib.jar;D:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;d
            :\Oracle\Middleware\oracle_common\modules\oracle.dms_11.1.1\dms.jar;d:\Oracle\Mi
            ddleware\oracle_common\modules\oracle.jmx_11.1.1\jmxframework.jar;d:\Oracle\Midd
            leware\oracle_common\modules\oracle.jmx_11.1.1\jmxspi.jar;d:\Oracle\Middleware\o
            racle_common\modules\oracle.odl_11.1.1\ojdl.jar;d:\Oracle\Middleware\Oracle_FRHo
            me1\opmn\lib\nonj2eembeans.jar;d:\Oracle\Middleware\Oracle_FRHome1\jdbc\lib\ojdb
            c6.jar;d:\Oracle\Middleware\Oracle_FRHome1\opmn\lib\optic.jar;d:\Oracle\Middlewa
            re\Oracle_FRHome1\opmn\lib\iasprovision.jar;d:\Oracle\Middleware\oracle_common\m
            odules\oracle.ldap_11.1.1\ldapjclnt11.jar;d:\Oracle\Middleware\oracle_common\jli
            b\rcucommon.jar;d:\Oracle\Middleware\Oracle_FRHome1\opmn\lib\opmneditor.jar;d:\O
            racle\Middleware\Oracle_FRHome1\opmn\lib\wlfullclient.jar;d:\Oracle\Middleware\o
            racle_common\modules\oracle.adf.share_11.1.1\commons-el.jar;d:\Oracle\Middleware
            \Oracle_FRHome1\jlib\dfc.jar;d:\Oracle\Middleware\Oracle_FRHome1\dvt\lib\dvt-jcl
            ient.jar;d:\Oracle\Middleware\Oracle_FRHome1\dvt\lib\dvt-utils.jar;d:\Oracle\Mid
            dleware\oracle_common\jlib\ewt3.jar;d:\Oracle\Middleware\oracle_common\modules\o
            racle.iau_11.1.1\fmw_audit.jar;d:\Oracle\Middleware\Oracle_FRHome1\oui\jlib\http
            client.jar;d:\Oracle\Middleware\oraclecommon\modules\oracle.idm_11.1.1\identit
            ystore.jar;d:\Oracle\Middleware\oracle_common\modules\oracle.idm_11.1.1\identity
            utils.jar;d:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jaccprovi
            der.jar;d:\Oracle\Middleware\oracle_common\modules\oracle.jps_11.1.1\jacc-spi.ja
            r;d:\Oracle\Middleware\Oracle_FRHome1\ord\jlib\jai_codec.jar;d:\Oracle\Middlewar
            e\Oracle_FRHome1\ord\jlib\jai_core.jar;d:\Oracle\Middleware\oracle_common\module
            s\oracle.oc4j-obsolete_11.1.1\jazn.jar;d:\Oracle\Middleware\oracle_common\module
            s\oracle.oc4j-obsolete_11.1.1\jazncore.jar;d:\Oracle\Middleware\oracle_common\jl
            ib\jewt4.jar;d:\Oracle\Middleware\Oracle_FRHome1\jlib\jta.jar;d:\Oracle\Middlewa
            re\oracle_common\modules\oracle.ldap_11.1.1\ldapjclnt11.jar;d:\Oracle\Middleware
            \Oracle_FRHome1\lib\mail.jar;d:\Oracle\Middleware\Oracle_FRHome1\jlib\netcfg.jar
            ;d:\Oracle\Middleware\Oracle_FRHome1\jlib\oracle_ice.jar;d:\Oracle\Middleware\or
            acle_common\jlib\share.jar;d:\Oracle\Middleware\Oracle_FRHome1\jlib\zrclient.jar
            ;d:\Oracle\Middleware\Oracle_FRHome1\reports\jlib\aolj.jar;d:\Oracle\Middleware\
            Oracle_FRHome1\reports\jlib\confmbean.jar;d:\Oracle\Middleware\Oracle_FRHome1\re
            ports\jlib\runtimembean.jar;d:\Oracle\Middleware\Oracle_FRHome1\reports\jlib\rwa
            dmin.jar;d:\Oracle\Middleware\Oracle_FRHome1\reports\jlib\rwenv.jar;d:\Oracle\Mi
            ddleware\Oracle_FRHome1\reports\jlib\rwrun.jar;d:\Oracle\Middleware\Oracle_FRHom
            e1\reports\jlib\rwxdo.jar;d:\Oracle\Middleware\Oracle_FRHome1\jlib\rts2.jar;d:\O
            racle\Middleware\Oracle_FRHome1\common\wlst\lib\adf-share-mbeans-wlst.jar;d:\Ora
            cle\Middleware\Oracle_FRHome1\common\wlst\lib\mdswlst.jar;d:\Oracle\Middleware\O
            racle_FRHome1\common\wlst\resources\auditwlst.jar;d:\Oracle\Middleware\Oracle_FR
            Home1\common\wlst\resources\jps-wlst.jar;d:\Oracle\Middleware\Oracle_FRHome1\com
            mon\wlst\resources\jrf-wlst.jar;d:\Oracle\Middleware\Oracle_FRHome1\common\wlst\
            resources\oamap_help.jar;d:\Oracle\Middleware\Oracle_FRHome1\common\wlst\resourc
            es\oamAuthnProvider.jar;d:\Oracle\Middleware\Oracle_FRHome1\common\wlst\resource
            s\ossoiap_help.jar;d:\Oracle\Middleware\Oracle_FRHome1\common\wlst\resources\oss
            oiap.jar;d:\Oracle\Middleware\Oracle_FRHome1\common\wlst\resources\sslconfigwlst
            .jar;d:\Oracle\Middleware\Oracle_FRHome1\common\wlst\resources\wsm-wlst.jar;D:\O
            racle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;D:\Oracle\MIDDLE~1\WLS
            ERV~1.3\common\derby\lib\derbyclient.jar;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\li
            b\xqrl.jar
            .
            PATH=d:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\native;d:\Oracle\MIDDLE~1
            \patch_ocp371\profiles\default\native;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\nativ
            e\win\x64;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;d:\Oracle\MIDDLE~1\modules\OR
            GAPA~1.1\bin;C:\PROGRA~1\Java\JDK17~1.0_1\jre\bin;C:\PROGRA~1\Java\JDK17~1.0_1\b
            in;d:\Oracle\MIDDLE~1\ORACLE~2\BIN;d:\OracleDB\product\112~1.0\dbhome_1\BIN;C:\P
            ROGRA~1\COMMON~1\MICROS~1\WINDOW~1;C:\PROGRA~2\COMMON~1\MICROS~1\WINDOW~1;C:\PRO
            GRA~2\Intel\ICLSCL~1\;C:\PROGRA~1\Intel\ICLSCL~1\;C:\PROGRA~2\AMDAPP~1\bin\x86_6
            4;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WI
            NDOW~1\v1.0\;C:\PROGRA~2\ATITEC~1\ATI.ACE\CORE-S~1;C:\PROGRA~1\Intel\INTEL(~1\DA
            L;C:\PROGRA~1\Intel\INTEL(~1\IPT;C:\PROGRA~2\Intel\INTEL(~1\DAL;C:\PROGRA~2\Inte
            l\INTEL(~1\IPT;C:\PROGRA~1\Sony\VAIOIM~1\;C:\PROGRA~2\Sony\VAIOST~1;C:\PROGRA~2\
            WIC4A1~1\Shared;d:\Oracle\MIDDLE~1\ORACLE~2\opmn\bin;d:\Oracle\MIDDLE~1\ORACLE~2
            \opmn\lib;d:\Oracle\MIDDLE~1\ORACLE~2\perl\bin;D:\Oracle\MIDDLE~1\WLSERV~1.3\ser
            ver\native\win\x64\oci920_8
            .
            ***************************************************
            * To start WebLogic Server, use a username and *
            * password assigned to an admin-level user. For *
            * server administration, use the WebLogic Server *
            * console at http:\\hostname:port\console *
            ***************************************************
            starting weblogic with Java version:
            java version "1.7.0_11"
            Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
            Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
            Starting WLS with line:
            C:\PROGRA~1\Java\JDK17~1.0_1\bin\java -server -Xms256m -Xmx512m -XX:MaxPermSi
            ze=512m -Dweblogic.Name=AdminServer -Djava.security.policy=D:\Oracle\MIDDLE~1\WL
            SERV~1.3\server\lib\weblogic.policy -Dweblogic.ProductionModeEnabled=true -da
            -Dplatform.home=D:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=D:\Oracle\MIDDLE~1\WLS
            ERV~1.3\server -Dweblogic.home=D:\Oracle\MIDDLE~1\WLSERV~1.3\server -Xms512m -
            Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m -Doracle.home=d:\Oracle\Middlewa
            re\Oracle_FRHome1 -Ddomain.home=d:\Oracle\Middleware\user_projects\domains\Class
            icDomain -Djava.ext.dirs=d:\Oracle\Middleware\Oracle_FRHome1\jdk\jre\lib\ext -Do
            racle.security.jps.config=d:\Oracle\Middleware\user_projects\domains\ClassicDoma
            in\config\fmwconfig\jps-config.xml -Doracle.instance=d:\Oracle\Middleware\asinst
            _1 -Doracle.instance.name=asinst_1 -Doracle.forms.weblogic=1 -Ddomain.name=Class
            icDomain -Dcommon.components.home=D:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1
            .1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger
            -Ddomain.home=d:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1 -Djrockit.optfile=D:\
            Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.
            server.config.dir=d:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\config\FMWCON~1\s
            ervers\AdminServer -Doracle.domain.config.dir=d:\Oracle\MIDDLE~1\USER_P~1\domain
            s\CLASSI~1\config\FMWCON~1 -Digf.arisidbeans.carmlloc=d:\Oracle\MIDDLE~1\USER_P
            ~1\domains\CLASSI~1\config\FMWCON~1\carml -Digf.arisidstack.home=d:\Oracle\MIDD
            LE~1\USER_P~1\domains\CLASSI~1\config\FMWCON~1\arisidprovider -Doracle.security.
            jps.config=d:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\config\fmwconfig\jps-con
            fig.xml -Doracle.deployed.app.dir=d:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\s
            ervers\AdminServer\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternat
            eTypesDirectory=D:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,D:\Ora
            cle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.
            pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -Dwc.oracle.h
            ome=D:\Oracle\Middleware\Oracle_FRHome1 -Dclassic.oracle.home=D:\Oracle\Middlewa
            re\Oracle_FRHome1 -Dweblogic.management.discover=true -Dwlw.iterativeDev=false
            -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=d:\O
            racle\MIDDLE~1\patch_wls1036\profiles\default\sysext_manifest_classpath;d:\Oracl
            e\MIDDLE~1\patch_ocp371\profiles\default\sysext_manifest_classpath weblogic.Ser
            ver
            <Feb 4, 2013 6:20:47 PM AST> <Info> <Security> <BEA-090905> <Disabling CryptoJ J
            CE Provider self-integrity check for better startup performance. To enable this
            check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
            <Feb 4, 2013 6:20:48 PM AST> <Info> <Security> <BEA-090906> <Changing the defaul
            t Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable
            this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
            <Feb 4, 2013 6:20:48 PM AST> <Info> <WebLogicServer> <BEA-000377> <Starting WebL
            ogic Server with Java HotSpot(TM) 64-Bit Server VM Version 23.6-b04 from Oracle
            Corporation>
            <Feb 4, 2013 6:20:49 PM AST> <Info> <Management> <BEA-141107> <Version: WebLogic
            Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050
            WebLogic Server 10.3 Tue Nov 15 08:52:36 PST 2011 1441050 >
            <Feb 4, 2013 6:20:50 PM AST> <Info> <Security> <BEA-090065> <Getting boot identi
            ty from user.>
            Enter username to boot WebLogic server:
            }
            • 3. Re: How Can I run Oracle 11g Form without OC4J
              carlos cortez
              Hello,

              Take a look to this link:

              http://middlewaremagic.com/weblogic/?p=323

              Hope it helps you :)

              Regards
              Carlos
              • 4. Re: How Can I run Oracle 11g Form without OC4J
                985927
                Thanks but still i have the problem

                the error is

                ""FRM-10142: The HTTP Listener is not running on Eyad-VAIO at port 8888.
                Please start the listener or check your runtime preferences.""
                • 5. Re: How Can I run Oracle 11g Form without OC4J
                  Michael Ferrante-Oracle
                  Port 8888 is the default port of OHS. On Windows, OHS can be easily started by starting the OPMN (Oracle Process Manager) service found on the Windows Services console. The error you are seeing means that OHS is not running. So, you have two options:

                  1. You can start OHS, which is preferred by Oracle

                  2. Or you can change the "Application Server URL" value in the Forms Builder Runtime preferences. On the "Runtime" tab of the Builder preferences, change the port number from 8888 to 9001. Also ensure that the Browser Location field has been correctly populated. Leaving this value blank will cause other problems.
                  • 6. Re: How Can I run Oracle 11g Form without OC4J
                    985927
                    Thanks still error, How can I run the form without using OC4J??

                    How can I run the web server.
                    • 7. Re: How Can I run Oracle 11g Form without OC4J
                      CraigB
                      ...but Unfortunately forget it. How can I reset it ? or How can I make another username and pass word
                      You can't start WebLogic Server without the User/Password! You either need to reset the PW as Carlos suggested with his link ( http://middlewaremagic.com/weblogic/?p=323 ) or you are going to have to un-install everything and reinstall and make sure you write down the password. ;)
                      How can I run the form without using OC4J??
                      Oracle Forms 11g does not use the OC4J container. It uses WebLogic Server (WLS). :( It would be wonderful if Oracle created a stripped down version of WLS for a developer install so we don't have to have a full-blown WLS installed!

                      Craig...
                      • 8. Re: How Can I run Oracle 11g Form without OC4J
                        Michael Ferrante-Oracle
                        There are a few things you are not understanding....
                        <blockquote>1. As Craig mentioned, you must know the uname and password for WLS in order to start/stop it. If you don't know it and can't figure out how to reset it, then reinstall.

                        2. Forms MUST have a java container. In the case of version 11, the java container is provided by WebLogic Server (WLS). In version 10 is was OC4J. There is no OC4J in version 11.

                        3. Oracle recommends that you access Forms applicatons through OHS. However, behind OHS is WLS because as mentioned in #1, Forms must have a java container.

                        4. Although Oracle generally recommends accessing your forms through OHS, for testing purposes like when running from the Builder, you likely will be fine accessing directly to WLS and skipping OHS.

                        Bottom line is that you cannot skip WLS, but you can (in some cases) skip OHS.</blockquote>
                        So, to your issue. In order to use the "Run Form" button in the Forms Builder both the Application Server URL and Web Browser Location fields in the Bulder Preferences (Runtime tab) must be set properly. Do not leave them blank.

                        Application Server URL_ will be the URL to call the Forms servlet (frmservlet) on the same machine. You can refer to a remote machine, however you would need to manaully put a compiled version of your form on that remote machine before it will run. So a likely value for the local machine accessing through WLS could be something like this:
                        <blockquote>http://127.0.0.1:9001/forms/frmservlet</blockquote>
                        Web Browser Location_ will look something like this if you plan to use IE as the default browser a 32bit client (i.e. XP):
                        <blockquote>C:\Program Files\Internet Explorer\iexplore.exe</blockquote>
                        On Win7 x64, the entry would look more like this:
                        <blockquote>C:\Program Files (x86)\Internet Explorer\iexplore.exe</blockquote>