Oracle-11g

由於類路徑問題,標準 Oracle 融合中間件安裝在 SOA ManagedServer 啟動時失敗

  • January 24, 2015

嘗試在 Windows 上安裝 Oracle Fusion Middleware 11gR2(Linux 上發生同樣的事情)。我已遵循http://download.oracle.com/docs/cd/E12839_01/install.1111/e14318/toc.htm中提供的指南

  1. 安裝 weblogic (11g)
  2. Oracle 11g 數據庫安裝
  3. 執行 RCU 實用程序以創建模式
  4. 為 Java Bridge 安裝和複製相關文件
  5. 配置融合中間件

但是我發現 SOA 伺服器在企業管理器中沒有起床,顯示為停機。當我檢查日誌時,我收到以下錯誤:

oracle.jrf.wls.JRFStartup java.lang.ClassNotFoundException: oracle.jrf.wls.JRFStartup  
at java.lang.Class.forName0(Native Method)  
at java.lang.Class.forName(Class.java:247)  
at weblogic.management.deploy.classdeployment.ClassDeploymentManager.invokeClass(ClassDeploymentManager.java:253)  
at weblogic.management.deploy.classdeployment.ClassDeploymentManager.access$000(ClassDeploymentManager.java:54)  
at weblogic.management.deploy.classdeployment.ClassDeploymentManager$1.run(ClassDeploymentManager.java:205)  
Truncated. see log file for complete stacktrace  

<Jul 7, 2009 4:18:48 PM CEST> <Critical> <WebLogicServer> <BEA-000286> <Failed to invoke startup class "SOAStartupClass", java.lang.ClassNotFoundException: oracle.bpel.services.common.util.GenerateBPMCryptoKey  
java.lang.ClassNotFoundException: oracle.bpel.services.common.util.GenerateBPMCryptoKey  
at java.lang.Class.forName0(Native Method)  
at java.lang.Class.forName(Class.java:247)  
at weblogic.management.deploy.classdeployment.ClassDeploymentManager.invokeClass(ClassDeploymentManager.java:253)  
at weblogic.management.deploy.classdeployment.ClassDeploymentManager.access$000(ClassDeploymentManager.java:54)  
at weblogic.management.deploy.classdeployment.ClassDeploymentManager$1.run(ClassDeploymentManager.java:205)  
Truncated. see log file for complete stacktrace  

<Jul 7, 2009 4:19:27 PM CEST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'SocketAdapter' due to error weblogic.application.ModuleException: The ra.xml <connectionfactory-impl-class> class 'oracle.tip.adapter.socket.SocketConnectionFactory' could not be loaded from the resource adapter archive/application because of the following error:  
java.lang.NoClassDefFoundError: oracle/tip/adapter/api/OracleConnectionFactory.weblogic.application.ModuleException: The ra.xml <connectionfactory-impl-class>  
class 'oracle.tip.adapter.socket.SocketConnectionFactory' could not be loaded from the resource adapter archive/application because of the following error: java.lang.NoClassDefFoundError: oracle/tip/adapter/api/OracleConnectionFactory
at weblogic.connector.deploy.ConnectorModule.prepare(ConnectorModule.java:228)  
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)  
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)  
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)  
Truncated. see log file for complete stacktrace
<Jul 7, 2009 4:19:27 PM CEST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'MQSeriesAdapter' due to error weblogic.application.ModuleException: The ra.xml <connectionfactory-impl-class> class 'oracle.tip.adapter.mq.ConnectionFactoryImpl' could not be loaded from the resource adapter archive/application because of the following error:  
java.lang.NoClassDefFoundError: oracle/tip/adapter/api/OracleConnectionFactory.weblogic.application.ModuleException: The ra.xml <connectionfactory-impl-class> class 'oracle.tip.adapter.mq.ConnectionFactoryImpl' could not be loaded from the resource adapter archive/application because of the following error:  
java.lang.NoClassDefFoundError: oracle/tip/adapter/api/OracleConnectionFactory  
at weblogic.connector.deploy.ConnectorModule.prepare(ConnectorModule.java:228)  
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)  
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)  
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)  
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)  
Truncated. see log file for complete stacktrace
<Jul 7, 2009 4:19:27 PM CEST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'OracleAppsAdapter' due to error  
weblogic.application.ModuleException: java.lang.NoClassDefFoundError: oracle/tip/adapter/api/exception/PCResourceException.weblogic.application.ModuleException:  
java.lang.NoClassDefFoundError: oracle/tip/adapter/api/exception/PCResourceException
at weblogic.connector.deploy.ConnectorModule.prepare(ConnectorModule.java:238)  
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)  
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)  
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)  
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)  
Truncated. see log file for complete stacktrace  
java.lang.NoClassDefFoundError: oracle/tip/adapter/api/exception/PCResourceException  
at java.lang.Class.getDeclaredMethods0(Native Method)  
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)  
at java.lang.Class.privateGetPublicMethods(Class.java:2547)  
at java.lang.Class.getMethods(Class.java:1410)  
at weblogic.connector.external.impl.RAComplianceChecker.checkOverrides(RAComplianceChecker.java:972)  
Truncated. see log file for complete stacktrace  

如果我錯過了任何步驟,誰能告訴我?

解決方法是在$WL_HOME/common/nodemanager/nodemanager.properties 中設置StartScriptEnabled=true 並重啟NodeManager。

引用自:https://serverfault.com/questions/123860