users@glassfish.java.net

Re: How to bind my MDB to a Non-JMS Resource Adapter?

From: Markus KARG <markus.karg_at_gmx.net>
Date: Sun, 27 Jan 2008 11:36:58 +0100

And here is the complete server log:

[#|2008-01-27T11:36:19.141+0100|INFO|sun-appserver9.1|javax.enterprise.system.tools.avk.tools.verifier|_ThreadID=24;_ThreadName=Thread-42;|Verifying:
[
C__Sun_SDK_domains_domain1_applications_j2ee-modules_mailmdb-1.0.0-SNAPSHOT
]|#]

[#|2008-01-27T11:36:19.282+0100|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.avk.tools.verifier|_ThreadID=24;_ThreadName=Thread-42;_RequestID=550efcc3-a2c6-4767-9508-981f69898f26;|
          ---------------------------
          STATIC VERIFICATION RESULTS
          ---------------------------

   
     ----------------------------------
     NUMBER OF FAILURES/WARNINGS/ERRORS
     ----------------------------------
     # of Failures : 0
         # of Warnings : 0
     # of Errors : 0
       
          ----------------------------------
          END OF STATIC VERIFICATION RESULTS
          ----------------------------------
    |#]

[#|2008-01-27T11:36:19.282+0100|INFO|sun-appserver9.1|javax.enterprise.system.tools.avk.tools.verifier|_ThreadID=24;_ThreadName=Thread-42;|No
errors found in the archive.|#]

[#|2008-01-27T11:36:19.345+0100|INFO|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=24;_ThreadName=Thread-42;|deployed
with moduleid = mailmdb-1.0.0-SNAPSHOT|#]

[#|2008-01-27T11:36:19.470+0100|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb.mdb|_ThreadID=25;_ThreadName=Thread-41;MailMessageDrivenBean;com.sun.enterprise.connectors.ConnectorRuntimeException:
JMS resource not created :
;_RequestID=75ad16e3-b51c-41db-8e2c-586ff915ab8d;|MDB00017:
[MailMessageDrivenBean]: Exception in creating message-driven bean
container: [com.sun.enterprise.connectors.ConnectorRuntimeException: JMS
resource not created : ]|#]

[#|2008-01-27T11:36:19.470+0100|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb.mdb|_ThreadID=25;_ThreadName=Thread-41;_RequestID=75ad16e3-b51c-41db-8e2c-586ff915ab8d;|com.sun.enterprise.connectors.ConnectorRuntimeException
com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource
not created :
    at
com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.getPhysicalDestinationFromConfiguration(ActiveJmsResourceAdapter.java:1546)
    at
com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.updateMDBRuntimeInfo(ActiveJmsResourceAdapter.java:1380)
    at
com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:170)
    at
com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:209)
    at
com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:524)
    at
com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:536)
    at
com.sun.enterprise.server.EJBModuleLoader.doLoad(EJBModuleLoader.java:171)
    at
com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:244)
    at
com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:232)
    at
com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:187)
    at
com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:419)
    at
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974)
    at
com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961)
    at
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
    at
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
    at
com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
    at
com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
    at
com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
    at
com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
    at
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
    at
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
    at
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:591)
    at
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:635)
    at
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
    at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
    at
com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
    at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
    at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
    at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
    at $Proxy1.invoke(Unknown Source)
    at
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
    at
com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
    at
com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:145)
    at
com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:537)
    at java.lang.Thread.run(Thread.java:619)
|#]

[#|2008-01-27T11:36:19.470+0100|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=25;_ThreadName=Thread-41;com.sun.enterprise.connectors.ConnectorRuntimeException:
JMS resource not created :
;_RequestID=75ad16e3-b51c-41db-8e2c-586ff915ab8d;|EJB5090: Exception in
creating EJB container
[com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource
not created : ]|#]

[#|2008-01-27T11:36:19.470+0100|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=25;_ThreadName=Thread-41;_RequestID=75ad16e3-b51c-41db-8e2c-586ff915ab8d;|appId=mailmdb-1.0.0-SNAPSHOT
moduleName=C__Sun_SDK_domains_domain1_applications_j2ee-modules_mailmdb-1.0.0-SNAPSHOT
ejbName=MailMessageDrivenBean|#]

[#|2008-01-27T11:36:19.470+0100|SEVERE|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=25;_ThreadName=Thread-41;_RequestID=75ad16e3-b51c-41db-8e2c-586ff915ab8d;|LDR5004:
UnExpected error occured while creating ejb container
com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource
not created :
    at
com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.getPhysicalDestinationFromConfiguration(ActiveJmsResourceAdapter.java:1546)
    at
com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.updateMDBRuntimeInfo(ActiveJmsResourceAdapter.java:1380)
    at
com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:170)
    at
com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:209)
    at
com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:524)
    at
com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:536)
    at
com.sun.enterprise.server.EJBModuleLoader.doLoad(EJBModuleLoader.java:171)
    at
com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:244)
    at
com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:232)
    at
com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:187)
    at
com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:419)
    at
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974)
    at
com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961)
    at
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
    at
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
    at
com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
    at
com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
    at
com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
    at
com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
    at
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
    at
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
    at
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:591)
    at
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:635)
    at
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
    at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
    at
com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
    at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
    at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
    at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
    at $Proxy1.invoke(Unknown Source)
    at
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
    at
com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
    at
com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:145)
    at
com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:537)
    at java.lang.Thread.run(Thread.java:619)
|#]

[#|2008-01-27T11:36:19.470+0100|WARNING|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=25;_ThreadName=Thread-41;_RequestID=75ad16e3-b51c-41db-8e2c-586ff915ab8d;|CORE5020:
Error while loading ejb module|#]

[#|2008-01-27T11:36:19.470+0100|WARNING|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=25;_ThreadName=Thread-41;Error
while loading EJB module [mailmdb-1.0.0-SNAPSHOT]. Please refer to the
server log for more details.
;_RequestID=75ad16e3-b51c-41db-8e2c-586ff915ab8d;|ADM1075:Error on
listening event:[Error while loading EJB module
[mailmdb-1.0.0-SNAPSHOT]. Please refer to the server log for more
details. ]|#]

Thanks
Markus

Dies Koper schrieb:
> Your resource-adapter-mid setting looks good.
>
> Did you happen to leave in the mappedName attribute in the
> @MessageDriven annotation in your source?
> Or do you happen to have any resource-env-ref or resource-ref
> definitions in your ejb-jar.xml for this bean?
> How about other @Resource or @Resources annotations in your bean's
> source?
> Do you see any other error messages in the server.log?
>
>
> Markus KARG wrote:
>>
>>> Your second try (using <resource-adapter-mid>) was the correct way.
>>> If that didn't work something else must be wrong.
>>> I'd need more info to make an educated guess at what it could be.
>> Just tell me all the information that you need and I will send you.
>>
>> Thanks
>> Markus
>>>
>>> Markus KARG wrote:
>>>> I have deployed a self-written Non-JMS Resource Adapter, which
>>>> implementes solely an inbound (message inflow).
>>>> Now I want to bind a self-written MDB to it. The MDB gets deployed,
>>>> but GlassFish always binds it to jmsra.
>>>> Certainly that fails.
>>>>
>>>> How to I tell GlassFish to bind my MDB to my RA?
>>>>
>>>> The MID of the RA is "x", so:
>>>>
>>>> * I tried @MessageDriven(mappedName = "x"). Doesn't work. GF tries
>>>> to find "x" as a JMS resource (says the log).
>>>> * I tried <resource-adapter-mid>x</resource-adapter-mid>. Doesn't
>>>> work. GF says it has a problem with "TO x" (says the log).
>>>>
>>>> I spent hours to link those things together, but it just will not
>>>> work. I have used RAs and MDBs in JOnAS for years, but with
>>>> GlassFish there seems to be a trick I just cannot find out. :-(
>>>>
>>>> Any ideas?
>>>>
>>>> GF version used is: Jave EE SDK Updated 4.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>


-- 
http://www.xing.com/go/invita/58469