Java

初始化伺服器時出錯:未配置 OC4J 管理員帳戶

  • August 6, 2014

我在嘗試啟動 ./oc4j 服務 ( oc4j_extended_101350.zip) 時收到以下錯誤消息。

       [oracle@sc-ifactory01p bin]$ ./oc4j -start
       Starting OC4J from /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home ...
       2014-08-01 14:09:28.682 NOTIFICATION Auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/dms.war...
       2014-08-01 14:09:28.687 NOTIFICATION Unjar /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/dms.war in /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/dms
       2014-08-01 14:09:28.692 NOTIFICATION Finished auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/dms.war
       2014-08-01 14:09:28.693 NOTIFICATION Auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/JMXSoapAdapter-web.war...
       2014-08-01 14:09:28.693 NOTIFICATION Unjar /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/JMXSoapAdapter-web.war in /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/JMXSoapAdapter-web
       2014-08-01 14:09:28.698 NOTIFICATION Finished auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/JMXSoapAdapter-web.war
       2014-08-01 14:09:28.736 NOTIFICATION Auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/jmsrouter.war...
       2014-08-01 14:09:28.736 NOTIFICATION Unjar /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/jmsrouter.war in /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/jmsrouter
       2014-08-01 14:09:28.739 NOTIFICATION Finished auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/jmsrouter.war
       2014-08-01 14:09:28.746 NOTIFICATION Auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/connectors/datasources/datasources.rar...
       2014-08-01 14:09:28.747 NOTIFICATION Unjar /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/connectors/datasources/datasources.rar in /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/connectors/datasources/datasources
       2014-08-01 14:09:28.748 NOTIFICATION Finished auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/connectors/datasources/datasources.rar
       2014-08-01 14:09:28.749 NOTIFICATION Auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/connectors/OracleASjms/OracleASjms.rar...
       2014-08-01 14:09:28.749 NOTIFICATION Unjar /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/connectors/OracleASjms/OracleASjms.rar in /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/connectors/OracleASjms/OracleASjms
       2014-08-01 14:09:28.760 NOTIFICATION Finished auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/connectors/OracleASjms/OracleASjms.rar
       Aug 1, 2014 2:09:28 PM com.evermind.server.XMLDataSourcesConfig parseRootNode
       INFO: Legacy datasource detected...attempting to convert to new syntax.
       2014-08-01 14:09:28.778 NOTIFICATION Auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/javasso.ear...
       2014-08-01 14:09:28.778 NOTIFICATION Unjar /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/javasso.ear in /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/javasso
       2014-08-01 14:09:28.780 NOTIFICATION Finished auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/javasso.ear
       2014-08-01 14:09:28.786 NOTIFICATION Auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/javasso/javasso-web.war...
       2014-08-01 14:09:28.786 NOTIFICATION Unjar /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/javasso/javasso-web.war in /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/javasso/javasso-web
       2014-08-01 14:09:28.790 NOTIFICATION Finished auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/javasso/javasso-web.war
       2014-08-01 14:09:28.793 NOTIFICATION Auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/ascontrol.ear...
       2014-08-01 14:09:28.793 NOTIFICATION Unjar /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/ascontrol.ear in /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/ascontrol
       2014-08-01 14:09:29.281 NOTIFICATION Finished auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/ascontrol.ear
       2014-08-01 14:09:29.283 NOTIFICATION Auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/ascontrol/ascontrol.war...
       2014-08-01 14:09:29.283 NOTIFICATION Unjar /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/ascontrol/ascontrol.war in /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/ascontrol/ascontrol
       2014-08-01 14:09:30.148 NOTIFICATION Finished auto-unpacking /apps/prd/oracle/10.1.3.5.0/oc4j/j2ee/home/applications/ascontrol/ascontrol.war
       14/08/01 14:09:30 Error initializing server: OC4J administrator account is not configured correctly. Please make sure that at least one administration account is created and configured correctly.
       14/08/01 14:09:30 Fatal error: server exiting

我在 RHEL 6.5 物理 64 位平台上執行它。我已經指出jdk1.6.0_45了 JAVA_HOME。

我可以在具有相同 RHEL 6.5 64 位平台的 VM 上啟動它。我嘗試了我和Google能想到的一切,但似乎無法弄清楚這一點。

據報導,有些使用者在 /etc/hosts 文件中添加了主機名,我已經嘗試過但在我的物理系統上不起作用。

如果您有任何建議,請告訴我。

在應用任何特定配置之前重新安裝作業系統後,我能夠啟動 oc4j 服務。在將其縮小到確切導致無法啟動的配置之後,結果是乙太網綁定。我有一個 kickstart 腳本,它也在做綁定。ifcfg-ethx 還包含許多詳細資訊,例如 UUID 和我的環境基本上不需要的東西。在清理所有 ifcfg-* 並能夠啟動與 oc4j 服務的綁定之後。

引用自:https://unix.stackexchange.com/questions/147932