Oracle App Server 10g-OC4J a command line switch-server properti

Discussions

General J2EE: Oracle App Server 10g-OC4J a command line switch-server properti

  1. I am using Oracle Application Server 10g as an application server under windows enviornment. In the "server properties" i set the OC4J a command line switch called -Djoesat.location=c:\myapp.properties
    (in the bottom of the screen) command line switchs.

    And i am trying to get the value of this switch inside the application (System.getProperty("joesat.location")) and use this value to open the properties file.

    But after setting the OC4J a command line switch, its giving the following result:

    Upon clicking the "Apply" button:
    =================================
    Server properties have been applied.

    Upon restarting the "Home" :
    ============================
    An error occurred while starting "home".
    OC4J:home- failed to start a managed process after the maximum retry limit
    For more information, look at the logs using the related link below.
    Related Link Error Logs

    Log file:(D:\AppServer\opmn\logs\OC4J~home~default_island~1)============================================================
    Unknown switch: -Djoesat.location=d:\AppServer\j2ee\home\CityCabConfig.properties, type java -jar oc4j.jar -? for help

    Could any one help me to solve to this issue......
  2. Redhat AS3.0 /Oracle Application 10 g :

    I met this error when the size of /opmn/logs/OC4J~home~default_island~1 file is exceed 2147483647,

    Error
    --> Process (pid=8370)
        failed to start a managed process after the maximum retry limit
        Log:
        /u01/OraInfra_904/opmn/logs/OC4J~home~default_island~1


    My solution:
    delete /opmn/logs/OC4J~home~default_island~1 ,then restart home instance as following :
    $ORACLE_HOME/opmn/bin/opmnctl startproc process-type=home

    that's ok.