Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 88414 invoked from network); 17 Jan 2008 22:00:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jan 2008 22:00:23 -0000 Received: (qmail 14852 invoked by uid 500); 17 Jan 2008 22:00:07 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 14834 invoked by uid 500); 17 Jan 2008 22:00:06 -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 14823 invoked by uid 99); 17 Jan 2008 22:00:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2008 14:00:06 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2008 21:59:54 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JFcm3-0005TC-6z for user@geronimo.apache.org; Thu, 17 Jan 2008 13:59:47 -0800 Message-ID: <14934912.post@talk.nabble.com> Date: Thu, 17 Jan 2008 13:59:47 -0800 (PST) From: the666pack To: user@geronimo.apache.org Subject: MDB - NameNotFound Error MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: mario.kofler@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org hello all, i am trying to make a message-driven-bean working on geronimo. after configuration of the queue and connection factory i am stuck with a [exec] javax.naming.NameNotFoundException: VideoConnectionFactory [exec] at org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:163) [exec] at org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:611) [exec] at org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:152) [exec] at org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:611) [exec] at org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:152) [exec] at org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:597) [exec] at javax.naming.InitialContext.lookup(InitialContext.java:392) i will try to post the relevant parts of my configuration files and client here. hope someone can help. the relevant parts of my client (the client is a jsp) with the line where the error occurs: Properties env = new Properties(); env.put(Context.PROVIDER_URL, "tcp://localhost:61616"); env.put("connectionFactoryNames", "VideoConnectionFactory"); env.put("queue.VideoQueue", "queue/videoupdate"); Context ctx = new InitialContext(env); QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("java:comp/env/VideoConnectionFactory"); //the error occurs here queue = (Queue) ctx.lookup("queue/videoupdate"); connection = factory.createQueueConnection(); System.out.println("Connection created to CONNECTIONFACTORY"); messageSession = connection.createQueueSession(false,QueueSession.AUTO_ACKNOWLEDGE); the "JMS-Resources" part of the web-console tells me however that the queue and the connection factory are running: jms-resources (default/videothek/1200600754675/ear) Type Name Deployed As State Actions Connection Factory VideoConnectionFactory Application-scoped running Queue queue/videoupdate Application-scoped running the relevant part of my openejb-jar.xml: UpdateDataBean jms-resources do i have to write something into my web.xml deployment descriptor too (because my client is a jsp)? any help is highly appreciated, thanks a lot, mario -- View this message in context: http://www.nabble.com/MDB---NameNotFound-Error-tp14934912s134p14934912.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.