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
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......