2016-09-26 124 views
1

我想通過server.xml爲websphereliberty添加db2Datasource和oracle數據源,但它在啓動服務器時顯示一些錯誤。Websphere自由在月食

錯誤是:

[AUDIT ] CWWKF0012I: The server installed the following features: [jsp-2.3, servlet-3.1, jndi-1.0, localConnector-1.0, el-3.0]. 
[AUDIT ] CWWKF0011I: The server WebServer is ready to run a smarter planet. 
[AUDIT ] CWWKG0016I: Starting server configuration update. 
[ERROR ] CWWKF0042E: A feature definition cannot be found for the jdbc-4.0 feature. Try running the command, bin/installUtility install jdbc-4.0, to install the feature. Alternatively, you can run the command, bin/installUtility install WebServer, to install all features that are referenced by this configuration. 
[ERROR ] CWPKI0033E: The keystore located at F:/WGD/Dep 497281-DSA_JAVA/kashish/softwares/WEB server/usr/servers/WebServer/resources/security/key.jks did not load because of the following error: Keystore was tampered with, or password was incorrect 
[WARNING ] CWPKI0809W: There is a failure loading the defaultKeyStore keystore. If an SSL configuration references the defaultKeyStore keystore, then the SSL configuration will fail to initialize. 
[AUDIT ] CWWKG0017I: The server configuration was successfully updated in 16,199 seconds. 
[AUDIT ] CWWKF0012I: The server installed the following features: [ssl-1.0, distributedMap-1.0, appSecurity-2.0]. 
[AUDIT ] CWWKF0008I: Feature update completed in 16,092 seconds. 
[AUDIT ] CWWKE0036I: The server WebServer stopped after 2 minutes, 14,767 seconds. 
******************************************************************************** 
product = WebSphere Application Server 16.0.0.2 (wlp-1.0.13.cl160220160526-2258) 
wlp.install.dir = F:/WGD/Dep 497281-DSA_JAVA/kashish/softwares/WEB server/ 
java.home = C:\Program Files\Java\jre1.8.0_101 
java.version = 1.8.0_101 
java.runtime = Java(TM) SE Runtime Environment (1.8.0_101-b13) 
os = Windows 7 (6.1; amd64) (en_US) 
process = [email protected] 
******************************************************************************** 
[AUDIT ] CWWKE0001I: The server WebServer has been launched. 
[AUDIT ] CWWKE0100I: This product is licensed for development, and limited production use. The full license terms can be viewed here: https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/license/base_ilan/ilan/16.0.0.2/lafiles/en.html 
[ERROR ] CWWKF0042E: A feature definition cannot be found for the jdbc-4.0 feature. Try running the command, bin/installUtility install jdbc-4.0, to install the feature. Alternatively, you can run the command, bin/installUtility install WebServer, to install all features that are referenced by this configuration. 
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications. 
[ERROR ] CWWKE0702E: Could not resolve module: com.ibm.ws.transaction.cdi [49] 
    Unresolved requirement: Import-Package: com.ibm.tx.jta; version="[2.1.0,3.0.0)" 

[ERROR ] CWWKE0702E: Could not resolve module: com.ibm.ws.jca [73] 
    Unresolved requirement: Import-Package: com.ibm.tx.jta; version="[2.1.0,3.0.0)" 

[ERROR ] CWWKE0702E: Could not resolve module: com.ibm.ws.jca-1.7 [76] 
    Unresolved requirement: Import-Package: com.ibm.ws.jca.cm 

[ERROR ] CWWKE0702E: Could not resolve module: com.ibm.ws.app.manager.rar [77] 
+0

Thankyou預先 –

回答

1

關鍵是此錯誤消息:

[ERROR] CWWKF0042E:特徵定義不能找到符合JDBC-4.0功能。嘗試運行命令bin/installUtility install jdbc-4.0以安裝該功能。或者,您可以運行命令bin/installUtility install WebServer來安裝此配置引用的所有功能。

+0

嗯..我不記得Liberty的任何web服務器功能...,所以可能是一個錯字:-) – Gas

+0

這是服務器的名稱。這是一個插入值,IIRC – ebullient

1

由於默認情況下Liberty 16.0.0.2僅具有Java EE 7功能,因此您需要使用jdbc-4.1功能,或者按照建議的ebullient安裝jdbc-4.0

我建議只是更改爲4.1 :-)

如果您需要更多的較舊的功能(從Java EE 6),我建議你安裝任何webProfile-6.0功能或baseBundle添加上。兩者都可以安裝在installUtility