当我开始在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>发布于 2016-06-22 15:53:00
JDBC 4.0是Java EE 6的一个特性,Liberty 8.5.5.9默认安装了Java EE 7特性(我想您会发现JDBC 4.1已经在您下载的包中了)。如果您需要使用JDBC4.0,您可以将其与4.1一起安装到Liberty中,并选择在server.xml中使用哪个版本。有关如何安装其他特性的信息,请查看wasdev.net,JDBC4.0的页面是here
发布于 2016-06-23 17:55:13
我会试着总结这些帖子和评论。
因此,如果您下载了WLP Java EE7或JavaEE7Web Profile,则只能获得JavaEE7规范所需的特性。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命令逐个安装附加功能,也可以安装捆绑包。
为了拥有JavaEE6、JavaEE7和WebSphere中特定的所有特性,例如MQ客户端,发出以下命令:
C:\IBM\WebSphere\wlp\bin>installUtility install baseBundle您可以在Liberty features in the bundles中查看捆绑包中包含的所有功能
https://stackoverflow.com/questions/37958310
复制相似问题