Estou migrando um sistema que rodava no jboss para que utilize o weblogic.
O sistema tem um módulo que processa relatórios através de MDBs. O usuário faz a solicitação do relatório e ao final do processamento do mesmo, ele é enviado para o email do solicitante.
O problema é que já estou há mais de 3 dias tentando configurar para que rode no weblogic, sem sucesso. Após pesquisar bastante na internet e não obter êxito, resolvi pedir ajuda aqui no GUJ.
Abaixo listo o erro verfiicado ao fazer deploy da aplicação, e os fontes…
Agradeço qualquer ajuda!
java.lang.IllegalArgumentException: Registered more than one instance with the same objectName : com.bea:ServerRuntime=AdminServer,Name=ControleRelatorio_queue/GRCRelatorio,ApplicationRuntime=_appsdir_grc_ear,Type=MessageDrivenEJBRuntime,EJBComponentRuntime=grc.jar new:weblogic.ejb.container.monitoring.MessageDrivenEJBRuntimeMBeanImpl@1f26a0e existing weblogic.ejb.container.monitoring.MessageDrivenEJBRuntimeMBeanImpl@73023d
at weblogic.management.jmx.ObjectNameManagerBase.registerObject(ObjectNameManagerBase.java:168)
at weblogic.management.mbeanservers.internal.WLSObjectNameManager.lookupObjectName(WLSObjectNameManager.java:131)
at weblogic.management.jmx.modelmbean.WLSModelMBeanFactory.registerWLSModelMBean(WLSModelMBeanFactory.java:87)
at weblogic.management.mbeanservers.internal.RuntimeMBeanAgent$1.registered(RuntimeMBeanAgent.java:104)
at weblogic.management.provider.core.RegistrationManagerBase.invokeRegistrationHandlers(RegistrationManagerBase.java:180)
Truncated. see log file for complete stacktrace
>
<11/01/2012 11h41min22s BRST> <Error> <JMX> <BEA-149500> <An exception occurred while registering the MBean null.
java.lang.IllegalArgumentException: Registered more than one instance with the same objectName : com.bea:ServerRuntime=AdminServer,MessageDrivenEJBRuntime=ControleRelatorio_queue/GRCRelatorio,Name=ControleRelatorio_queue/GRCRelatorio,ApplicationRuntime=_appsdir_grc_ear,Type=EJBTransactionRuntime,EJBComponentRuntime=grc.jar new:weblogic.ejb.container.monitoring.EJBTransactionRuntimeMBeanImpl@19c45da existing weblogic.ejb.container.monitoring.EJBTransactionRuntimeMBeanImpl@1116f61
at weblogic.management.jmx.ObjectNameManagerBase.registerObject(ObjectNameManagerBase.java:168)
at weblogic.management.mbeanservers.internal.WLSObjectNameManager.lookupObjectName(WLSObjectNameManager.java:131)
at weblogic.management.jmx.modelmbean.WLSModelMBeanFactory.registerWLSModelMBean(WLSModelMBeanFactory.java:87)
at weblogic.management.mbeanservers.internal.RuntimeMBeanAgent$1.registered(RuntimeMBeanAgent.java:104)
at weblogic.management.provider.core.RegistrationManagerBase.invokeRegistrationHandlers(RegistrationManagerBase.java:180)
Truncated. see log file for complete stacktrace
>
<11/01/2012 11h41min22s BRST> <Error> <JMX> <BEA-149500> <An exception occurred while registering the MBean null.
java.lang.IllegalArgumentException: Registered more than one instance with the same objectName : com.bea:ServerRuntime=AdminServer,MessageDrivenEJBRuntime=ControleRelatorio_queue/GRCRelatorio,Name=ControleRelatorio_queue/GRCRelatorio,ApplicationRuntime=_appsdir_grc_ear,Type=EJBPoolRuntime,EJBComponentRuntime=grc.jar new:weblogic.ejb.container.monitoring.EJBPoolRuntimeMBeanImpl@ae08c2 existing weblogic.ejb.container.monitoring.EJBPoolRuntimeMBeanImpl@1a76ec1
at weblogic.management.jmx.ObjectNameManagerBase.registerObject(ObjectNameManagerBase.java:168)
at weblogic.management.mbeanservers.internal.WLSObjectNameManager.lookupObjectName(WLSObjectNameManager.java:131)
at weblogic.management.jmx.modelmbean.WLSModelMBeanFactory.registerWLSModelMBean(WLSModelMBeanFactory.java:87)
at weblogic.management.mbeanservers.internal.RuntimeMBeanAgent$1.registered(RuntimeMBeanAgent.java:104)
at weblogic.management.provider.core.RegistrationManagerBase.invokeRegistrationHandlers(RegistrationManagerBase.java:180)
Truncated. see log file for complete stacktrace
Classe responsável por receber as mensagens:
@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName = "messageListenerInterface", propertyValue = "javax.jms.MessageListener"),
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "MaxDeliveryCnt", propertyValue = "1"),
@ActivationConfigProperty(propertyName = "ConnectionFactoryName", propertyValue="ConnectionFactory-GRC")
},mappedName="queue/GRCRelatorio")
public class ControleRelatorio implements MessageListener{
@Override
public void onMessage(Message message) {
System.out.println("Chegou");
}
