Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 27355 invoked from network); 1 Feb 2007 12:57:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2007 12:57:26 -0000 Received: (qmail 26035 invoked by uid 500); 1 Feb 2007 12:57:31 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 26004 invoked by uid 500); 1 Feb 2007 12:57:31 -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 25993 invoked by uid 99); 1 Feb 2007 12:57:31 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Feb 2007 04:57:31 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of mehtanirav@gmail.com designates 64.233.182.184 as permitted sender) Received: from [64.233.182.184] (HELO nf-out-0910.google.com) (64.233.182.184) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Feb 2007 04:57:22 -0800 Received: by nf-out-0910.google.com with SMTP id m19so865657nfc for ; Thu, 01 Feb 2007 04:57:00 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=gPO+ceZ4FrinheRuwYdJc5QyuONrm5FEnBdy37ck87BkD7Z3DC3Pqem/2Ew1uN+ynO7h0hd2CP6o5DU65Lbgy/LLJnIV2GE6Jss06Sa6bYWeY2CZ0GVGuOTKTVktYxGgPpRAdA8j9ztBtJ7fe1SbJrMR9chVJLF+oYkVidwTl6Q= Received: by 10.82.118.2 with SMTP id q2mr640345buc.1170334620282; Thu, 01 Feb 2007 04:57:00 -0800 (PST) Received: by 10.82.139.7 with HTTP; Thu, 1 Feb 2007 04:57:00 -0800 (PST) Message-ID: <602b59a00702010457n4c652348r4d759a09afae0cde@mail.gmail.com> Date: Thu, 1 Feb 2007 18:27:00 +0530 From: "Nirav Mehta" To: user@geronimo.apache.org Subject: Re: ActiveMQ reference In-Reply-To: <602b59a00701310627n6c0d63d2hec60d8b208b7241c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2082_8371384.1170334620249" References: <602b59a00701310627n6c0d63d2hec60d8b208b7241c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_2082_8371384.1170334620249 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Ok ... now I've created a new connection factory and a new queue. I changed the web.xml to jms/JMSTrialConFact javax.jms.QueueConnectionFactory Container jms/nmJMSTrialQueue javax.jms.Queue Produces JMSTrialQueue Added the ref to geronimo deployment plan: default JMSMQTrial 1.0 car geronimo activemq-broker 1.1.1 car /JMSMQTrial jms/JMSTrialConFact JMSTrialConFact jms/JMSTrialQueue JMSTrialQueue I still get the same error: Unable to resolve resource reference 'jms/JMSTrialConFact' (Could not find resource 'JMSTrialConFact'. Perhaps it has not yet been configured, or your application does not have a dependency declared for that resource module?). HELP!!! Regards, Nirav Mehta On 1/31/07, Nirav Mehta wrote: > > Hi, > > I was trying out a JMS example from IBM DW. Here they used the server wide > configs: > > > DefaultActiveMQConnectionFactory > javax.jms.QueueConnectionFactory > Container > > > Trying to deploy the WAR gave: > Unable to resolve resource reference 'DefaultActiveMQConnectionFactory' > (Could not auto-map to resource. Try adding a resource-ref mapping to your > Geronimo deployment plan.) > > I tried adding this is the geronimo deployment plan: > > ra/ActiveMQ > > DefaultActiveMQConnectionFactory > > > Still, I get the same error. Please help > > Regards, > Nirav Mehta > ------=_Part_2082_8371384.1170334620249 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Ok ... now I've created a new connection factory and a new queue. I changed the web.xml to

    <resource-ref>
        <res-ref-name>jms/JMSTrialConFact</res-ref-name>
        <res-type> javax.jms.QueueConnectionFactory</res-type>
        <res-auth>Container</res-auth>
    </resource-ref>

    <message-destination-ref>
        <message-destination-ref-name>
            jms/nmJMSTrialQueue
        </message-destination-ref-name>
        <message-destination-type>
            javax.jms.Queue
        </message-destination-type>
        <message-destination-usage>Produces</message-destination-usage>
        <message-destination-link>
            JMSTrialQueue
        </message-destination-link>
    </message-destination-ref>

Added the ref to geronimo deployment plan:
<?xml version=" 1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1" xmlns:nam=" http://geronimo.apache.org/xml/ns/naming-1.1" xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1" xmlns:sys=" http://geronimo.apache.org/xml/ns/deployment-1.1">
  <sys:environment>
    <sys:moduleId>
      <sys:groupId>default</sys:groupId>
      <sys:artifactId>JMSMQTrial</sys:artifactId>
      <sys:version>1.0</sys:version>
      <sys:type>car</sys:type>
    </sys:moduleId>
    <sys:dependencies>
      <sys:dependency>
        <sys:groupId>geronimo</sys:groupId>
        <sys:artifactId>activemq-broker</sys:artifactId>
        <sys:version>1.1.1</sys:version>
        <sys:type>car</sys:type>
      </sys:dependency>
    </sys:dependencies>
  </sys:environment>
  <context-root>/JMSMQTrial</context-root>
  <nam:resource-ref>
    <nam:ref-name>jms/JMSTrialConFact</nam:ref-name>
    <nam:resource-link>JMSTrialConFact</nam:resource-link>
  </nam:resource-ref>
  <nam:resource-env-ref>
    <nam:ref-name>jms/JMSTrialQueue</nam:ref-name>
    <nam:message-destination-link>JMSTrialQueue</nam:message-destination-link>
  </nam:resource-env-ref>
</web-app>


I still get the same error:
Unable to resolve resource reference 'jms/JMSTrialConFact' (Could not find resource 'JMSTrialConFact'. Perhaps it has not yet been configured, or your application does not have a dependency declared for that resource module?).

HELP!!!

Regards,
Nirav Mehta

On 1/31/07, Nirav Mehta <mehtanirav@gmail.com > wrote:
Hi,

I was trying out a JMS example from IBM DW. Here they used the server wide configs:

    <resource-ref>
        <res-ref-name>DefaultActiveMQConnectionFactory</res-ref-name>
        <res-type> javax.jms.QueueConnectionFactory</res-type>
        <res-auth>Container</res-auth>
    </resource-ref>

Trying to deploy the WAR gave:
Unable to resolve resource reference 'DefaultActiveMQConnectionFactory' (Could not auto-map to resource. Try adding a resource-ref mapping to your Geronimo deployment plan.)

I tried adding this is the geronimo deployment plan:
  <nam:resource-ref>
    <nam:ref-name>ra/ActiveMQ</nam:ref-name>
    <nam:resource-link>DefaultActiveMQConnectionFactory</nam:resource-link>
  </nam:resource-ref>

Still, I get the same error. Please help

Regards,
Nirav Mehta

------=_Part_2082_8371384.1170334620249--