3 Replies Latest reply on Mar 3, 2014 2:25 PM by Srini Chavali-Oracle

    oc4j won't start




      I'm on a Windows platform with XE 11.2.0, Apex 4.2 and JDK 1.6.0_45 


      I can't seem to get the oc4j to start.  I have this working on similar configurations, but I'm stumped on this particular system.


      I attempt to start oc4j in an Administrator / Command Prompt, but I get the following error message.


      I've stopped java, deleted the persistence folder, and restarted java and get the same message


      Thanks for looking at this.


      C:\>c:\oraclexe\app\oracle\product\oc4j\bin\oc4j.cmd -start


      Starting OC4J from C:\oraclexe\app\oracle\product\oc4j\j2ee\home ...

      Mar 1, 2014 11:58:13 PM com.evermind.server.XMLDataSourcesConfig parseRootNode

      INFO: Legacy datasource detected...attempting to convert to new syntax.

      2014-03-01 23:58:14.019 ERROR ServerFile[PersistentMap,/C:/oraclexe/app/oracle/p

      roduct/oc4j/j2ee/home/persistence/jms.state]: persistence file could not be lock

      ed.  Resolve the sharing violation by ending the process currently holding the f

      ile lock or by using a different persistence directory for one or both processes


      14/03/01 23:58:14 *** (SEVERE) ServerFile[PersistentMap,/C:/oraclexe/app/oracle/

      product/oc4j/j2ee/home/persistence/jms.state]: persistence file could not be loc

      ked.  Resolve the sharing violation by ending the process currently holding the

      file lock or by using a different persistence directory for one or both processe


      2014-03-01 23:58:14.019 ERROR Failed to set the internal configuration of the OC

      4J JMS Server with: XMLJMSServerConfig[file:/C:/oraclexe/app/oracle/product/oc4j


      14/03/01 23:58:14 *** (SEVERE) Failed to set the internal configuration of the O

      C4J JMS Server with: XMLJMSServerConfig[file:/C:/oraclexe/app/oracle/product/oc4


      2014-03-01 23:58:14.034 ERROR J2EE OJR-00011 Exception starting JMS server: Fail

      ed to set the internal configuration of the OC4J JMS Server with: XMLJMSServerCo


      2014-03-01 23:58:14.050 ERROR J2EE RMI-00002 Error starting ORMI server L0009005

      00 port 23,791: Address already in use: JVM_Bind

      2014-03-01 23:58:14.050 ERROR java.net.BindException: Address already in use: JV


              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:4


              at com.evermind.server.rmi.RMIServer.createNonSecureSocket(RMIServer.jav


              at com.evermind.server.rmi.RMIServer.setConfig(RMIServer.java:236)

              at com.evermind.server.ApplicationServer.initializeRMI(ApplicationServer


              at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.jav


              at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLa


              at java.lang.Thread.run(Thread.java:662)


      14/03/01 23:58:14 Error starting ORMI server L000900500 port 23,791: Address alr

      eady in use: JVM_Bind

      14/03/01 23:58:14 Shutting down OC4J...