簡體   English   中英

在服務器上的RESTful Web服務上運行時,Liberty Server錯誤

[英]Liberty Server error when running on the RESTful web-service on server

當我開始在eclipse中運行服務器時,我在IBM Websphere mq上較新。 它始終具有以下錯誤,例如找不到針對mdb-3.2或wmqjmsclient-2.0的功能定義

Launching defaultServer (WebSphere Application Server 8.5.5.9/wlp-1.0.12.cl50920160227-1523) on Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_77-b03 (en_US)
[AUDIT   ] CWWKE0001I: The server defaultServer 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/8.5.5.9/lafiles/en.html
[ERROR   ] CWWKF0001E: A feature definition could not be found for mdb-3.2
[ERROR   ] CWWKF0001E: A feature definition could not be found for wmqjmsclient-2.0
[AUDIT   ] CWWKZ0058I: Monitoring dropins for applications. 
[err] log4j:WARN No appenders could be found for logger (com.ibm.pong.common.config.Config).
[err] log4j:WARN Please initialize the log4j system properly.
[err] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

我已經在server.xml中定義了它們

<featureManager>
        <feature>jsp-2.3</feature>
        <feature>jdbc-4.0</feature>
        <feature>localConnector-1.0</feature>
        <feature>distributedMap-1.0</feature>

        <feature>ejbLite-3.2</feature>
        <feature>distributedMap-1.0</feature>
        <feature>jaxrs-2.0</feature>
        <feature>wasJmsClient-2.0</feature>
        <feature>servlet-3.1</feature>
        <feature>mdb-3.2</feature>
        <feature>wmqJmsClient-2.0</feature>
        <feature>jndi-1.0</feature>
        <feature>ssl-1.0</feature>
    </featureManager>

JDBC 4.0是Java EE 6的功能,而Liberty 8.5.5.9附帶了默認安裝的Java EE 7的功能(我懷疑您會發現JDBC 4.1已存在於您下載的軟件包中)。 如果需要使用JDBC 4.0,則可以將其與4.1一起安裝到Liberty中,然后在server.xml中選擇要使用的版本。 看一下wasdev.net,了解如何安裝其他功能,有關JDBC 4.0的頁面位於此處

我將嘗試總結這些帖子和評論。

因此,如果您下載了WLP Java EE7或Java EE 7 Web Profile,那么您只會獲得Java EE 7規范要求的功能。 jdbc-4.0來自Java EE 6,jdbc-4.1來自Java EE7。因此,您需要切換到jdbc-4.1(推薦)或安裝jdbc-4.0功能。

要列出可用的功能,請發出以下命令:

C:\IBM\WebSphere\wlp\bin>productInfo.bat featureInfo

您可以使用installUtility命令一個接一個地安裝附加功能,也可以安裝捆綁軟件。

要具有特定於Java EE 6,Java EE 7和WebSphere的所有功能(例如MQ客戶端),請發出以下命令:

C:\IBM\WebSphere\wlp\bin>installUtility install baseBundle

您可以在此處查看捆綁軟件中包含的所有功能捆綁軟件中的自由功能

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM