Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 92028 invoked from network); 31 Jan 2007 22:15:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jan 2007 22:15:13 -0000 Received: (qmail 51417 invoked by uid 500); 31 Jan 2007 22:15:16 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 51393 invoked by uid 500); 31 Jan 2007 22:15:16 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 51382 invoked by uid 99); 31 Jan 2007 22:15:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 14:15:16 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [68.142.206.238] (HELO smtp105.plus.mail.mud.yahoo.com) (68.142.206.238) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 31 Jan 2007 14:15:06 -0800 Received: (qmail 50463 invoked from network); 31 Jan 2007 22:14:45 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:From:Subject:Date:To:X-Mailer; b=ULRWlF2m0SYSWfrpI/u09M3dwZkt5AEgRmM+DTCO3jhAKgtGCsAmZp6rNkmG/auOBSnmGb2SRZHIFwx0h41ytP3kFMVA2e6EQWobabgUaoqDPdDb0tMi6QoD37+BIrauKL3WJcWA9SFGgrUvT1Pu9rMbGAJA+nM9zT9ZCYrMIDU= ; Received: from unknown (HELO ?10.11.55.8?) (david_jencks@63.105.20.225 with plain) by smtp105.plus.mail.mud.yahoo.com with SMTP; 31 Jan 2007 22:14:44 -0000 X-YMail-OSG: RF9w.JsVM1kFOD64v9.J9L5imWEKwXu9RB9vFwpaX_KOExzartEC6Rw_DTztlLAoLtQIfmliAx.lFs6_LwAdOYIIj4WDcawG6Sl7E9AqByZMSyVtSWIMZyaM8TOv.AAlDQFqOz4TqUmqG69_wjeaTmhqppfnmbhS Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <859597.52675.qm@web30801.mail.mud.yahoo.com> References: <859597.52675.qm@web30801.mail.mud.yahoo.com> Content-Type: multipart/alternative; boundary=Apple-Mail-20-848436834 Message-Id: <877DF086-E64E-46D8-ABA4-0BC4837729F8@yahoo.com> From: David Jencks Subject: Re: ActiveMQ Reference / Dependencies Date: Wed, 31 Jan 2007 14:14:41 -0800 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-20-848436834 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed As aaron said you definitely want to use activemq not activemq- broker. Other than that I don't see what might be wrong. We should really improve the information supplied when this happens. I wonder if listing all the modules searched and also the gbeans with the correct interface that didn't match the name might help. If this was my app at this point I'd start debugging the geronimo name resolution logic.... not a very pleasant thought I'm afraid. Wish I had a better answer, maybe someone else will spot the problem thanks david jencks On Jan 31, 2007, at 12:52 PM, John wrote: > I have seen similar questions posted here which have helped me > along to some extent, but I've hit a dead end. > > I am trying to deploy a simple servlet which posts a message to a > JMS queue. > > For the sake of simplicity in this message, I am only going to > reference the connection factory, as I assume once I figure out how > to map that resource properly, I can figure out the queue. > > The code does this: > > ConnectionFactory qConnectionFactory = (ConnectionFactory) > context.lookup("java:comp/env/jms/myConnFactoryRef"); > > My web.xml has this: > > > jms/myConnFactoryRef > javax.jms.ConnectionFactory > Container > > > My FULL geronimo-web.xml is as follows: > > > > > > default > SimpleMDBWeb > 1.0 > car > > > > > geronimo > activemq-broker > 1.1.1 > car > > > > > > /SimpleMDBWeb > > > jms/myConnFactoryRef > DefaultActiveMQConnectionFactory nam:resource-link> > > > > jms/myQueue > SendReceiveQueue > > > > > > The error I am getting is: > > "Unable to resolve resource reference 'jms/myConnFactoryRef' (Could > not find resource 'DefaultActiveMQConnectionFactory'. Perhaps it > has not yet been configured, or your application does not have a > dependency declared for that resource module?)" > > It would seem from the error that the resource reference is > properly linked to the resource I want to use, but I am having a > dependency issue. I have tried using "activemq" instead of > "activemq-broker." I have tried using both. I have tried creating > my own JMS resource in Geronimo and referencing that resource as a > dependency instead of, and in addition to activemq and activemq- > broker. No matter what I do, I get the above error. > > All the web pages and sample geronimo-web.xml files I have found > seem to support my usage above, but I am obviously still doing > something wrong. > > I am using Geronimo 1.1.1. > > I would appreciate any pointer in the right direction. > > Thanks! > John > > Now that's room service! Choose from over 150,000 hotels > in 45,000 destinations on Yahoo! Travel to find your fit. --Apple-Mail-20-848436834 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 As aaron said you definitely = want to use activemq not activemq-broker.=A0 Other than that I don't see = what might be wrong.=A0 We should really improve the information = supplied when this happens.=A0 I wonder if listing all the modules = searched and also the gbeans with the correct interface that didn't = match the name might help.=A0=A0

If this was my app at this = point I'd start debugging the geronimo name resolution logic.... not a = very pleasant thought I'm afraid.

Wish I had a better answer, = maybe someone else will spot the problem

thanks
david = jencks

On Jan 31, 2007, at 12:52 PM, John = wrote:

I have seen similar questions posted here which have = helped me along to some extent, but I've hit a dead end.

I am trying to deploy a simple servlet which posts a = message to a JMS queue.

For the sake of simplicity in this message, I = am only going to reference the connection factory, as I assume once I = figure out how to map that resource properly, I can figure out the = queue.
The code does this:



My web.xml has = this:
=A0=A0=A0 <resource-ref>
=A0=A0=A0 =A0=A0=A0 = <res-ref-name>jms/myConnFactoryRef</res-ref-name>
=A0=A0=A0 =A0=A0=A0 = <res-type>javax.jms.ConnectionFactory</res-type>
=A0=A0=A0 =A0=A0=A0 = <res-auth>Container</res-auth>
=A0=A0=A0 = </resource-ref>

My FULL geronimo-web.xml is as = follows:

<?xml version=3D"1.0" = encoding=3D"UTF-8"?>

http://geronimo.ap= ache.org/xml/ns/j2ee/web-1.1" xmlns:nam=3D"http://geronimo.apac= he.org/xml/ns/naming-1.1" xmlns:sec=3D"http://geronimo.ap= ache.org/xml/ns/security-1.1" xmlns:dep=3D"http://geronimo.= apache.org/xml/ns/deployment-1.1">
=A0 <dep:environment>
=A0=A0=A0 <dep:moduleId>
=A0=A0=A0=A0=A0 = <dep:groupId>default</dep:groupId>
=A0=A0=A0=A0=A0 = <dep:artifactId>SimpleMDBWeb</dep:artifactId>
=A0=A0=A0=A0=A0 = <dep:version>1.0</dep:version>
=A0=A0=A0=A0=A0 = <dep:type>car</dep:type>
=A0=A0=A0 = </dep:moduleId>

=A0=A0=A0 <dep:dependencies>
=A0=A0=A0 =A0 <dep:dependency>
=A0=A0=A0 =A0 =A0=A0=A0 = <dep:groupId>geronimo</dep:groupId>
=A0=A0=A0 =A0 =A0=A0=A0 = <dep:artifactId>activemq-broker</dep:artifactId>
=A0=A0=A0 =A0 =A0=A0=A0 = <dep:version>1.1.1</dep:version>
=A0=A0=A0 =A0 =A0=A0=A0 = <dep:type>car</dep:type>
=A0=A0=A0 =A0 = </dep:dependency>
=A0=A0=A0 = </dep:dependencies>

=A0 = </dep:environment>

=A0 = <context-root>/SimpleMDBWeb</context-root>

=A0 <nam:resource-ref>
=A0=A0=A0 = <nam:ref-name>jms/myConnFactoryRef</nam:ref-name>
=A0=A0=A0 = <nam:resource-link>DefaultActiveMQConnectionFactory</nam:resource= -link>
=A0 </nam:resource-ref>

=A0 <nam:resource-ref>
=A0=A0=A0 = <nam:ref-name>jms/myQueue</nam:ref-name>
=A0=A0=A0 = <nam:resource-link>SendReceiveQueue</nam:resource-link>=
=A0 </nam:resource-ref>

</web-app>


The error I am getting is:

"Unable to resolve resource reference = 'jms/myConnFactoryRef' (Could not find resource = 'DefaultActiveMQConnectionFactory'.=A0 Perhaps it has not yet been = configured, or your application does not have a dependency declared for = that resource module?)"

It would seem from the error that the resource = reference is properly linked to the resource I want to use, but I am = having a dependency issue.=A0 I have tried using "activemq" instead of = "activemq-broker."=A0 I have tried using both.=A0 I have tried creating = my own JMS resource in Geronimo and referencing that resource as a = dependency instead of, and in addition to activemq and activemq-broker.=A0= No matter what I do, I get the above error.

All the web pages and sample geronimo-web.xml files I = have found seem to support my usage above, but I am obviously still = doing something wrong.

I am using Geronimo 1.1.1.

I would appreciate any pointer in the right = direction.

Thanks!
John
Now that's room service!=A0Choose from over 150,000 = hotels
in 45,000 destinations = on Yahoo! Travel
=A0to find your = fit.

= --Apple-Mail-20-848436834--