当我开始在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>
答案 0 :(得分:1)
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的页面是here
答案 1 :(得分:0)
我会尝试总结帖子和评论。
因此,如果您下载了WLP Java EE7或Java EE 7 Web Profile,那么您只能获得Java EE 7规范所需的功能。 jdbc-4.0来自Java EE 6,jdbc-4.1来自Java EE 7.因此,您需要切换到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
中查看捆绑包中包含的所有功能