users@genericjmsra.java.net

Re: Issue in glassfish configuration with Tibco EMS and MDB

From: Ramesh <Ramesh.Parthasarathy_at_Sun.COM>
Date: Wed, 11 Nov 2009 06:48:56 +0530

>
>
> Is this due to mapping error?
>
> If yes how do I need to mapping?
Should be in your ejb-jar xml, the resources (queue and connection
factory) should be there.

-Ramesh

Deepu Syamaladevi Janardhananachary wrote:
>
> I have executed the "Configuring the Resource Adapter" portion again.
>
> Finally I got entries in the domain.xml
>
> PFA the latest domain.xml
>
>
>
> When I deployed the ear I got the error.
>
>
>
> [#|2009-11-11T00:01:10.870+0530|WARNING|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=24;_ThreadName=Thread-645;_RequestID=76e0b935-3439-43fb-b1e9-28ef1cb84069;|This
> bean [MDBTest1] has no resource reference by the name of
> [jms/ConnectionFactory]|#]
>
>
>
> [#|2009-11-11T00:01:10.870+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=24;_ThreadName=Thread-645;jndi-name;jms/ConnectionFactory;_RequestID=76e0b935-3439-43fb-b1e9-28ef1cb84069;|"DPL8007:
> Invalid Deployment Descriptors element jndi-name value
> jms/ConnectionFactory"|#]
>
>
>
> [#|2009-11-11T00:01:11.338+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=24;_ThreadName=Thread-645;_RequestID=76e0b935-3439-43fb-b1e9-28ef1cb84069;|Exception
> occured in J2EEC Phasejava.lang.NullPointerException
>
> com.sun.enterprise.deployment.backend.IASDeploymentException: Error
> loading deployment descriptors for module [WUMT] -- null
>
> at
> com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
>
> at
> com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358)
>
>
>
>
>
>
>
> Is this due to mapping error?
>
> If yes how do I need to mapping?
>
>
>
> Where do I need to write the code shown in the link under the heading
> "A sample of the lookup done for the Connection factories and creating
> the session is given below." ?
>
>
>
>
>
>
>
> Thanks and Regards
>
> Deepu Janardhananachary
>
>
>
>
>
> -----Original Message-----
> From: Ramesh.Parthasarathy_at_Sun.COM [mailto:Ramesh.Parthasarathy_at_Sun.COM]
> Sent: Tuesday, November 10, 2009 9:29 PM
> To: users_at_genericjmsra.dev.java.net
> Cc: Seema Richard; Deepu Syamaladevi Janardhananachary
> Subject: Re: Issue in glassfish configuration with Tibco EMS and MDB
>
>
>
> 1. I dont see the ra config in the domain.xml, have u created it as per
>
> "Configuring the Resource Adapter"
>
> 2. I do not see the Tibco classes in the classpath prefix of server,
>
> without which your integration is not going to work
>
> has to be done as per 3rd bullet in "Initial Setup"
>
>
>
> Thanks
>
> -Ramesh
>
>
>
> Deepu Syamaladevi Janardhananachary wrote:
>
> > PFA
>
> >
>
> >
>
> > Thanks and Regards
>
> > Deepu Janardhananachary
>
> >
>
> >
>
> >
>
> > -----Original Message-----
>
> > From: Ramesh.Parthasarathy_at_Sun.COM
> [mailto:Ramesh.Parthasarathy_at_Sun.COM]
>
> > Sent: Tuesday, November 10, 2009 8:37 PM
>
> > To: users_at_genericjmsra.dev.java.net
>
> > Cc: Seema Richard
>
> > Subject: Re: Issue in glassfish configuration with Tibco EMS and MDB
>
> >
>
> >
>
> >> Do I need to give my queue name in the place of Queue?
>
> >>
>
> > Yes,
>
> >
>
> > and I need to see your deployment descriptor and domain.xml to comment
>
> > on the exception
>
> >
>
> > -Ramesh
>
> > Deepu Syamaladevi Janardhananachary wrote:
>
> >
>
> >> Hi Ramesh,
>
> >>
>
> >>
>
> >>
>
> >> I have done as in the document
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >> I am using EJB3.
>
> >>
>
> >> I have done exactly like in the document.
>
> >>
>
> >>
> https://genericjmsra.dev.java.net/docs/tibco-genericjmsra-integration-sample-doc/Integrating_Sun_Java_System_Application_Server_with_Tibco_JMS_using_the_Generic_Resource_Adapter_for_JMS.html
>
> >>
>
> >>
>
> >>
>
> >> In the document in the sun-ejb-jar entry it is mentioned as
>
> >> imqDestinationName=Queue
>
> >>
>
> >> Do I need to give my queue name in the place of Queue?
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >> When I tried to deploy the ear file I got the error like the following
>
> >>
>
> >> Could you please tell me where is the mapping miss match happened?
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
> [#|2009-11-10T20:13:30.151+0530|WARNING|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=60;_ThreadName=Thread-5373;_RequestID=7d1bb0da-cfcf-4365-ad8d-35d0f43e627f;|This
>
>
> >> bean [MDBTest1] has no resource reference by the name of
>
> >> [jms/QCFactory]|#]
>
> >>
>
> >>
>
> >>
>
> >>
> [#|2009-11-10T20:13:30.151+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=60;_ThreadName=Thread-5373;jndi-name;jms/QCFactory;_RequestID=7d1bb0da-cfcf-4365-ad8d-35d0f43e627f;|"DPL8007:
>
>
> >> Invalid Deployment Descriptors element jndi-name value
> jms/QCFactory"|#]
>
> >>
>
> >>
>
> >>
>
> >>
> [#|2009-11-10T20:13:30.666+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=60;_ThreadName=Thread-5373;_RequestID=7d1bb0da-cfcf-4365-ad8d-35d0f43e627f;|Exception
>
>
> >> occured in J2EEC Phasejava.lang.NullPointerException
>
> >>
>
> >> com.sun.enterprise.deployment.backend.IASDeploymentException: Error
>
> >> loading deployment descriptors for module [WUMT] -- null
>
> >>
>
> >> at
>
> >>
> com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:390)
>
> >>
>
> >> at
>
> >>
> com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:358)
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >> Thanks and Regards
>
> >>
>
> >> Deepu Janardhananachary
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >> -----Original Message-----
>
> >> From: Ramesh.Parthasarathy_at_Sun.COM
> [mailto:Ramesh.Parthasarathy_at_Sun.COM]
>
> >> Sent: Tuesday, November 10, 2009 9:34 AM
>
> >> To: Seema Richard
>
> >> Cc: users_at_genericjmsra.dev.java.net; Deepu Syamaladevi
> Janardhananachary
>
> >> Subject: Re: Issue in glassfish configuration with Tibco EMS and MDB
>
> >>
>
> >>
>
> >>
>
> >> Hi Seema,
>
> >>
>
> >> The ra.xml cannot be edited through admin GUI, and it is not
>
> >>
>
> >> supposed to be. The ra.xml is a bundled configuration of the resource
>
> >>
>
> >> adapter. The values configured through ra-config (that is persisted in
>
> >>
>
> >> domain.xml and *not* ra.xml) will override the the ra.xml values. And
>
> >>
>
> >> finally an MCF configuration (or activation spec) will override
> what is
>
> >>
>
> >> configured in the ra-config.
>
> >>
>
> >>
>
> >>> 1. The ra.xml file in the deployed file didn't have the values that
>
> >>>
>
> >> were entered.
>
> >>
>
> >> What is the requirement for this ? If you are expecting the
>
> >>
>
> >> configuration in ra-config to be persisted in ra.xml, then the
>
> >>
>
> >> understanding is not correct.
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>> 2. The error message in the logs were " Caused by:
>
> >>>
>
> >> java.lang.Exception: ResourceAdapterConfig already exists: cannot add
>
> >> duplicate"
>
> >>
>
> >> There is already an ra-config with the same name, and that is why you
>
> >>
>
> >> get this error.
>
> >>
>
> >>
>
> >>
>
> >> If there is any step in the integration guide that requires
>
> >>
>
> >> clarification, please point out.
>
> >>
>
> >>
>
> >>
>
> >> Thanks
>
> >>
>
> >> -Ramesh
>
> >>
>
> >>
>
> >>
>
> >> Seema Richard wrote:
>
> >>
>
> >>
>
> >>> Ramesh,
>
> >>>
>
> >>> The following steps were performed according to the tutorial link
>
> >>>
>
> >> that you sent.
>
> >>
>
> >>
>
> >>> - The asadmin create-resource-adapter-config command displayed a
>
> >>>
>
> >> success message after execution.
>
> >>
>
> >>
>
> >>> - The genericra.rar available in
>
> >>>
>
> >> glassfish-v2ur2\lib\addons\resourceadapters\genericjmsra was deployed
>
> >>
>
> >>
>
> >>> Results were as follows.
>
> >>>
>
> >>> 1. The ra.xml file in the deployed file didn't have the values that
>
> >>>
>
> >> were entered.
>
> >>
>
> >>
>
> >>> 2. The error message in the logs were " Caused by:
>
> >>>
>
> >> java.lang.Exception: ResourceAdapterConfig already exists: cannot add
>
> >> duplicate"
>
> >>
>
> >>
>
> >>> Please advise if we are missing something.
>
> >>>
>
> >>> Thanks,
>
> >>>
>
> >>> Seema
>
> >>>
>
> >>> -----Original Message-----
>
> >>>
>
> >>> From: Ramesh.Parthasarathy_at_Sun.COM
>
> >>>
>
> >> [mailto:Ramesh.Parthasarathy_at_Sun.COM]
>
> >>
>
> >>
>
> >>> Sent: Monday, November 09, 2009 9:50 PM
>
> >>>
>
> >>> To: users_at_genericjmsra.dev.java.net
>
> >>>
>
> >>> Cc: Seema Richard
>
> >>>
>
> >>> Subject: Re: Issue in glassfish configuration with Tibco EMS and MDB
>
> >>>
>
> >>> Hi
>
> >>>
>
> >>> Its not clear as to what you are trying to do
>
> >>>
>
> >>> If you are looking for integration steps, please follow this
>
> >>>
>
> >>
> https://genericjmsra.dev.java.net/docs/tibco-genericjmsra-integration-sample-doc/Integrating_Sun_Java_System_Application_Server_with_Tibco_JMS_using_the_Generic_Resource_Adapter_for_JMS.html
>
> >>
>
> >>
>
> >>> If you have an error , the server.log file would provide more
>
> >>>
>
> >> information.
>
> >>
>
> >>
>
> >>> Thanks
>
> >>>
>
> >>> Ramesh
>
> >>>
>
> >>> Deepu Syamaladevi Janardhananachary wrote:
>
> >>>
>
> >>>
>
> >>>
>
> >>>> Hi,
>
> >>>>
>
> >>>> I would like to know how to get messages from a Tibco Queue to an MDB
>
> >>>>
>
> >>>> deployed in glassfish.
>
> >>>>
>
> >>>> I am using glassfish server(Sun Java System Application Server 9.1_02
>
> >>>>
>
> >>>> (build b04-fcs)), EJB 3 and Tibco EMS version 5.0.0
>
> >>>>
>
> >>>> I created the resource adapter genericra using the command prompt
>
> >>>>
>
> >>>> C:\Program Files\glassfish-v2ur2\bin>asadmin
>
> >>>>
>
> >>>> create-resource-adapter-config --user admin --property
>
> >>>>
>
> >>
> SupportsXA=false:ProviderIntegrationMode=jndi:UserName=xxx:Password=xxx:JndiProperties=java.naming.factory.url.pkgs\\=com.tibco.tibjms
>
> >>
>
> >>
>
> >>
> .naming,java.naming.factory.initial\\=com.tibco.tibjms.naming.TibjmsInitialContextFactory,java.naming.provider.url\\=xxx\://xxx.xxx.com\\:1234:LogLevel=
>
> >>
>
> >>
>
> >>>> finest genericra
>
> >>>>
>
> >>>> After this though it is showing executed successfully, I couldn't
> find
>
> >>>>
>
> >>>> the location of created file.
>
> >>>>
>
> >>>> From the admin console ApplicationsąConnector Modules, I deployed the
>
> >>>>
>
> >>>> genericra.rar available in
>
> >>>>
>
> >>>> glassfish-v2ur2\lib\addons\resourceadapters\genericjmsra.
>
> >>>>
>
> >>>> Then two columns of Name and Value came. The ra.xml in the deployed
>
> >>>>
>
> >>>> file didn't have any of the value that I entered. Its version is 1.7
>
> >>>>
>
> >>>> What do I need to do to change the values in resource adapter?
>
> >>>>
>
> >>>> So I changed my approach
>
> >>>>
>
> >>>> I created a connector project in eclipse(Ganymede) and entered the
>
> >>>>
>
> >>>> values in the ra.xml within the tag resourceadapter. But when I
> deploy
>
> >>>>
>
> >>>> it in the connector Modules, it is saying as error resource adapter.
>
> >>>>
>
> >>>> Regards,
>
> >>>>
>
> >>>> Deepu Janardhananachary
>
> >>>>
>
> >>>>
>
> >>>>
>
> >>>
>
> >>>
>
> >>
>
> >>
>
> >>
>
> >
>
> >
>
> > ---------------------------------------------------------------------
>
> > To unsubscribe, e-mail: users-unsubscribe_at_genericjmsra.dev.java.net
>
> > For additional commands, e-mail: users-help_at_genericjmsra.dev.java.net
>
> >
>
> >
>
> > ------------------------------------------------------------------------
>
> >
>
> > ---------------------------------------------------------------------
>
> > To unsubscribe, e-mail: users-unsubscribe_at_genericjmsra.dev.java.net
>
> > For additional commands, e-mail: users-help_at_genericjmsra.dev.java.net
>
> >
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_genericjmsra.dev.java.net
> For additional commands, e-mail: users-help_at_genericjmsra.dev.java.net