在通配符8.1.0服务器中部署ear时,出现了以下错误
1)错误:
Caused by: javax.resource.spi.InvalidPropertyException: Destination is mandatory",
"jboss.deployment.subunit.\"wildfly.ear\".\"wildfly- ejb.jar\".component.ReRattingMDB.START" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"wildfly.ear\".\"wildfly-ejb.jar\".component.ReRattingMDB.START: java.lang.RuntimeException: javax.resource.spi.InvalidPropertyException: Destination is mandatory2)MDB代码:
@MessageDriven(mappedName = "ReRatting_Queue",activationConfig =
{
@ActivationConfigProperty(propertyName="messagingType", propertyValue="javax.jms.MessageListener"),
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
@ActivationConfigProperty(propertyName="Destination", propertyValue="java:/queue/ReRatting_Queue"),
@ActivationConfigProperty(propertyName="ConnectionFactoryName", propertyValue="ConnectionFactory"),
@ActivationConfigProperty(propertyName="MaxPoolSize", propertyValue="1"),
@ActivationConfigProperty(propertyName="MaxMessages", propertyValue="1"),
@ActivationConfigProperty(propertyName = "useJNDI", propertyValue = "true")
})3)standard-full.xml:
<jms-queue name="ReRatting_Queue">
<entry name="java:/queue/ReRatting_Queue"/>
<durable>true</durable>
</jms-queue>请帮助我知道为什么会出现这个错误,以及如何在wildfly8应用服务器中解决这个问题。
问候尚卡尔
发布于 2014-07-09 10:11:16
我想财产名称必须以小写字母开头。你输入了“目的地”,但我很确定它必须被命名为“目的地”。
https://stackoverflow.com/questions/24648248
复制相似问题