2 Replies Latest reply: May 16, 2012 5:26 PM by SunilSharma RSS

    not able to start oc4j

    SunilSharma
      Hi,

      I am trying to start oc4j but error-ed out

      $ Starting OC4J from /usr/local/OracleBI/oc4j_bi/j2ee/home ...
      2012-05-15 13:00:29.154 ERROR ServerFile[PersistentMap,/usr/local/OracleBI/oc4j_bi/j2ee/home/persistence/jms.state]: persistence file could not be locked. Resolve the sharing violation by ending the process currently holding the file lock or by using a different persistence directory for one or both processes.
      12/05/15 13:00:29 *** (SEVERE) ServerFile[PersistentMap,/usr/local/OracleBI/oc4j_bi/j2ee/home/persistence/jms.state]: persistence file could not be locked. Resolve the sharing violation by ending the process currently holding the file lock or by using a different persistence directory for one or both processes.
      2012-05-15 13:00:29.173 ERROR Failed to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConfig[file:/usr/local/OracleBI/oc4j_bi/j2ee/home/config/jms.xml]
      12/05/15 13:00:29 *** (SEVERE) Failed to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConfig[file:/usr/local/OracleBI/oc4j_bi/j2ee/home/config/jms.xml]
      2012-05-15 13:00:29.199 ERROR J2EE OJR-00011 Exception starting JMS server: Failed to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConfig[file:/usr/local/OracleBI/oc4j_bi/j2ee/home/config/jms.xml]
      2012-05-15 13:00:29.372 ERROR J2EE RMI-00002 Error starting ORMI server testbox port 23,791: Address already in use
      2012-05-15 13:00:29.377 ERROR java.net.BindException: Address already in use
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
      at java.net.ServerSocket.bind(ServerSocket.java:328)
      at java.net.ServerSocket.<init>(ServerSocket.java:194)
      at com.evermind.server.rmi.RMIServer.createServerSocket(RMIServer.java:433)
      at com.evermind.server.rmi.RMIServer.createNonSecureSocket(RMIServer.java:347)
      at com.evermind.server.rmi.RMIServer.setConfig(RMIServer.java:210)
      at com.evermind.server.ApplicationServer.initializeRMI(ApplicationServer.java:2378)
      at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:966)
      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
      at java.lang.Thread.run(Thread.java:662)

      12/05/15 13:00:29 Error starting ORMI server testbox port 23,791: Address already in use
      12/05/15 13:00:29 Shutting down OC4J...

      so i tried

      $cd BI_HOME/oc4j_bi/bin
      $oc4j -shutdown -port 23791 -password <oc4j admin pwd entered during installation>
      Shutdown OC4J instance...
      Error: Could not connect to the remote server. Please check if the server is down or the client is using invalid host, ORMI port or password to connect: Connection reset


      $ netstat -an |grep 23791
      *.23791 *.* 0 0 49152 0 LISTEN


      need help urgent

      Thanks,
      RM
        • 1. Re: not able to start oc4j
          Dhar
          Hi RM,

          I suspect oc4j might be running already in your system under a different ID. I see that you are using port 23791 to shut it down, where as the default is 9704 (Of course, if you have not modified it though ;) ). You could try to kill (with -9) the existing oc4j service and start it again.

          Hope this helps.

          Thank you,
          Dhar
          • 2. Re: not able to start oc4j
            SunilSharma
            Hi Dhar,

            got that resolved with the below steps:


            1.Confirm and double check OC4J is NOT running in your Linux machine. If still running use "kill" command to shut it down.
            2.Do a "netstat" and verify open ports.
            3.Go to \OracleBI\oc4j_bi\j2ee\home\config
            4.Take a backup of and open your rmi.xml
            5.Change default port to an available port according to the output of "netstat" before.
            6.Save the file.
            Now OC4J should be able to start.

            Thanks for your help.

            Thanks,
            RM