geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Mulder" <ammul...@alumni.princeton.edu>
Subject Re: MDB no targets are running problem in Geronimo 1.1
Date Fri, 04 Aug 2006 11:21:03 GMT
I don't think the DEBUG messages you listed matter; if any GBeans
failed to start then the whole application should have failed to
deploy and you shouldn't see the resource group or web app deployed.
I think those messages are just a normal part of the startup process.

Things look good on the face of it; what do you mean that the MDB
"doesn't work"?  Do you get exceptions, or do you deliver messages and
it just doesn't receive them?  Are you sure you're delivering to the
correct queue?  Does all the same code work if you deploy the resource
group separately?

The only thing that looks a little iffy is that I think if you use a
message-destination-link (like in your ejb-jar.xml) you're supposed to
have a message-destination in the same file.  But since all the names
are the same, I don't think this should be a showstopper.

Thanks,
     Aaron

On 8/4/06, Jorge Juan Gómez B <jorgejuan@gmail.com> wrote:
> Hi,
>
> I'm new to Geronimo, but it seems like a nice app server available for Mac OS X.
> I'm having a problem with Message Driven Beans in Geronimo 1.1, and
> hope that someone can provide some insight. I created an application
> with an MDB and it works fine with the pre-configured "ActiveMQ RA".
> However, since I need to create additional queues I decided to try the
> application level deployment of a Resource Group. The application
> installs fine, and my Resource Group even shows up in the Console.
> However, the message driven bean doesn't work and I get the following
> messages in the system out:
>
> 23:26:11,342 DEBUG [GBeanSingleReference] Waiting to start
> default/GATrackerEAR/1.0/car?J2EEApplication=default/GATrackerEAR/1.0/car,j2eeType=EJBModule,name=GATrackerEAREJB.jar
> because no targets are running for reference J2EEApplication matching
> the patterns default/GATrackerEAR/1.0/car?j2eeType=J2EEApplication,name=default/GATrackerEAR/1.0/car
> 23:26:11,348 DEBUG [GBeanSingleReference] Waiting to start
> default/GATrackerEAR/1.0/car?EJBModule=GATrackerEAREJB.jar,J2EEApplication=default/GATrackerEAR/1.0/car,MessageDrivenBean=LogEntryProcessor,j2eeType=JCAActivationSpec,name=LogEntryProcessor
> because no targets are running for reference ResourceAdapterWrapper
> matching the patterns
> default/GATrackerEAR/1.0/car?J2EEApplication=default/GATrackerEAR/1.0/car,JCAResource=ge-activemq-rar-1.1.rar,ResourceAdapter=ge-activemq-rar-1.1.rar,ResourceAdapterModule=ge-activemq-rar-1.1.rar,j2eeType=JCAResourceAdapter,name=TrackerRA
> 23:26:11,354 DEBUG [GBeanSingleReference] Waiting to start
> default/GATrackerEAR/1.0/car?EJBModule=GATrackerEAREJB.jar,J2EEApplication=default/GATrackerEAR/1.0/car,j2eeType=MessageDrivenBean,name=LogEntryProcessor
> because no targets are running for reference ActivationSpecWrapper
> matching the patterns
> default/GATrackerEAR/1.0/car?EJBModule=GATrackerEAREJB.jar,J2EEApplication=default/GATrackerEAR/1.0/car,MessageDrivenBean=LogEntryProcessor,j2eeType=JCAActivationSpec,name=LogEntryProcessor
> 23:26:11,428 DEBUG [GBeanSingleReference] Waiting to start
> default/GATrackerEAR/1.0/car?J2EEApplication=default/GATrackerEAR/1.0/car,JCAConnectionFactory=TrackerCF,JCAResource=ge-activemq-rar-1.1.rar,ResourceAdapter=ge-activemq-rar-1.1.rar,ResourceAdapterModule=ge-activemq-rar-1.1.rar,j2eeType=JCAManagedConnectionFactory,name=TrackerCF
> because no targets are running for reference ResourceAdapterWrapper
> matching the patterns
> default/GATrackerEAR/1.0/car?J2EEApplication=default/GATrackerEAR/1.0/car,JCAResource=ge-activemq-rar-1.1.rar,ResourceAdapter=ge-activemq-rar-1.1.rar,ResourceAdapterModule=ge-activemq-rar-1.1.rar,j2eeType=JCAResourceAdapter,name=TrackerRA
> 23:26:11,507 DEBUG [GBeanSingleReference] Waiting to start
> default/GATrackerEAR/1.0/car?J2EEApplication=default/GATrackerEAR/1.0/car,j2eeType=ResourceAdapterModule,name=ge-activemq-rar-1.1.rar
> because no targets are running for reference ResourceAdapter matching
> the patterns default/GATrackerEAR/1.0/car?J2EEApplication=default/GATrackerEAR/1.0/car,ResourceAdapterModule=ge-activemq-rar-1.1.rar,j2eeType=ResourceAdapter,name=ge-activemq-rar-1.1.rar
> 23:26:12,246 DEBUG [GBeanSingleReference] Waiting to start
> default/GATrackerEAR/1.0/car?J2EEApplication=default/GATrackerEAR/1.0/car,ResourceAdapterModule=ge-activemq-rar-1.1.rar,j2eeType=ResourceAdapter,name=ge-activemq-rar-1.1.rar
> because no targets are running for reference JCAResource matching the
> patterns default/GATrackerEAR/1.0/car?J2EEApplication=default/GATrackerEAR/1.0/car,ResourceAdapter=ge-activemq-rar-1.1.rar,ResourceAdapterModule=ge-activemq-rar-1.1.rar,j2eeType=JCAResource,name=ge-activemq-rar-1.1.rar
>
> These are my deployment descriptors:
>
> TrackerRA-plan.xml :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.1">
>     <resourceadapter>
>         <resourceadapter-instance>
>             <resourceadapter-name>TrackerRA</resourceadapter-name>
>
>             <config-property-setting
> name="ServerUrl">tcp://localhost:61616</config-property-setting>
>
>             <nam:workmanager
> xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1">
>                 <nam:gbean-link>DefaultWorkManager</nam:gbean-link>
>             </nam:workmanager>
>         </resourceadapter-instance>
>         <outbound-resourceadapter>
>             <connection-definition>
>
> <connectionfactory-interface>javax.jms.ConnectionFactory</connectionfactory-interface>
>                 <connectiondefinition-instance>
>                     <name>TrackerCF</name>
>
> <implemented-interface>javax.jms.QueueConnectionFactory</implemented-interface>
>
> <implemented-interface>javax.jms.TopicConnectionFactory</implemented-interface>
>                     <connectionmanager>
>                         <xa-transaction>
>                             <transaction-caching/>
>                         </xa-transaction>
>                         <single-pool>
>                             <match-one/>
>                         </single-pool>
>                     </connectionmanager>
>                 </connectiondefinition-instance>
>             </connection-definition>
>         </outbound-resourceadapter>
>     </resourceadapter>
>     <adminobject>
>         <adminobject-interface>javax.jms.Queue</adminobject-interface>
>         <adminobject-class>org.activemq.message.ActiveMQQueue</adminobject-class>
>         <adminobject-instance>
>             <message-destination-name>jms/FileQ</message-destination-name>
>             <config-property-setting
> name="PhysicalName">FileQ</config-property-setting>
>         </adminobject-instance>
>         <adminobject-instance>
>             <message-destination-name>jms/LogQ</message-destination-name>
>             <config-property-setting
> name="PhysicalName">LogQ</config-property-setting>
>         </adminobject-instance>
>     </adminobject>
>     <adminobject>
>         <adminobject-interface>javax.jms.Topic</adminobject-interface>
>         <adminobject-class>org.activemq.message.ActiveMQTopic</adminobject-class>
>     </adminobject>
> </connector>
>
> application.xml :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <application id="Application_ID" version="1.4"
> xmlns="http://java.sun.com/xml/ns/j2ee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
>         <display-name>
>         GATrackerEAR</display-name>
>         <module id="EjbModule_1154200088695">
>                 <ejb>GATrackerEAREJB.jar</ejb>
>         </module>
>         <module id="WebModule_1154200088787">
>                 <web>
>                         <web-uri>GATrackerEARWeb.war</web-uri>
>                         <context-root>globalaccess</context-root>
>                 </web>
>         </module>
>         <module>
>                 <connector>ge-activemq-rar-1.1.rar</connector>
>         </module>
> </application>
>
> geronimo-application.xml :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.1"
> xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"
> xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1"
> application-name="GATrackerEAR">
>   <sys:environment>
>     <sys:moduleId>
>       <sys:groupId>default</sys:groupId>
>       <sys:artifactId>GATrackerEAR</sys:artifactId>
>       <sys:version>1.0</sys:version>
>       <sys:type>car</sys:type>
>     </sys:moduleId>
>   </sys:environment>
>   <module>
>     <connector>ge-activemq-rar-1.1.rar</connector>
>     <alt-dd>TrackerRA-plan.xml</alt-dd>
>   </module>
> </application>
>
> ejb-jar.xml :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ejb-jar id="ejb-jar_1" xmlns="http://java.sun.com/xml/ns/j2ee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1">
>    <description><![CDATA[GATrackerEAREJB generated by eclipse wtp
> xdoclet extension.]]></description>
>    <display-name>GATrackerEAREJB</display-name>
>    <enterprise-beans>
>        <message-driven>
>                         <display-name>LogEntryProcessor</display-name>
>                         <ejb-name>LogEntryProcessor</ejb-name>
>                         <ejb-class>com.gbtopia.mdbs.LogEntryProcessorMdb</ejb-class>
>                         <messaging-type>javax.jms.MessageListener</messaging-type>
>                         <transaction-type>Container</transaction-type>
>                         <message-destination-type>javax.jms.Queue</message-destination-type>
>                         <message-destination-link>jms/LogQ</message-destination-link>
>                 </message-driven>
>    </enterprise-beans>
>    <assembly-descriptor id="AssemblyDescriptor_1">
>    </assembly-descriptor>
> </ejb-jar>
>
> openejb-jar.xml :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1"
>         xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1"
>         xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0"
>         xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"
>         xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1">
>         <enterprise-beans>
>                 <message-driven>
>                         <ejb-name>LogEntryProcessor</ejb-name>
>                         <nam:resource-adapter>
>                                 <resource-link>TrackerRA</resource-link>
>                         </nam:resource-adapter>
>                         <activation-config>
>                                 <activation-config-property>
>                                         <activation-config-property-name>destination</activation-config-property-name>
>                                         <activation-config-property-value>jms/LogQ</activation-config-property-value>
>                                 </activation-config-property>
>                                 <activation-config-property>
>                                         <activation-config-property-name>destinationType</activation-config-property-name>
>                                         <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
>                                 </activation-config-property>
>                         </activation-config>
>                 </message-driven>
>         </enterprise-beans>
> </openejb-jar>
>
> Thanks in advance,
> Jorge Gomez
>
> --
> Visit my homepage!: http://homepage.mac.com/jjgb
>

Mime
View raw message