From user-return-1060-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Fri Nov 04 06:31:39 2005 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 63060 invoked from network); 4 Nov 2005 06:31:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Nov 2005 06:31:39 -0000 Received: (qmail 46862 invoked by uid 500); 4 Nov 2005 06:31:37 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 46850 invoked by uid 500); 4 Nov 2005 06:31:37 -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 46839 invoked by uid 99); 4 Nov 2005 06:31:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2005 22:31:37 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=HTML_MESSAGE,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of norwaywoods@gmail.com designates 66.249.82.195 as permitted sender) Received: from [66.249.82.195] (HELO xproxy.gmail.com) (66.249.82.195) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2005 22:31:32 -0800 Received: by xproxy.gmail.com with SMTP id s9so729188wxc for ; Thu, 03 Nov 2005 22:31:16 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=LQVBFx3VT8xPhLkuKsLFfNCIKGLiWkAR29lsU4EA1As+kIpq0Cgin/iASOmEaQUAJKQRpB6qj3ryGNFyXoQweVEt6EEaNQQmujKGI1tW+lCKPWsyCTDVopCqwUHRSHbQnAuKXvan+5n9sm97k9G7ggOPio5J/xab0r8s5dH9edU= Received: by 10.70.115.2 with SMTP id n2mr1635993wxc; Thu, 03 Nov 2005 22:31:16 -0800 (PST) Received: by 10.70.65.18 with HTTP; Thu, 3 Nov 2005 22:31:16 -0800 (PST) Message-ID: Date: Fri, 4 Nov 2005 14:31:16 +0800 From: Jian Liao To: user@geronimo.apache.org Subject: Re: Why naming service is not available when Servlet is initializing?(Tomcat 5.5.9) In-Reply-To: <7b3355cb0511032228q7d2f7b70k76230634469e2c93@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_21806_10787837.1131085876083" References: <7b3355cb0511032228q7d2f7b70k76230634469e2c93@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_21806_10787837.1131085876083 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Jetty is running within Geronimo. thanks. - James Liao On 11/4/05, Bruce Snyder wrote: > > On 11/3/05, Jian Liao wrote: > > All, > > I'm trying to integrate jetspeed 2 with geronimo(svn head) and > tomcat-5.5.9 > > as web container. > > The deployment is successful. But Jetspeed will initialize OJB in > > JetspeedServlet.init() method which needs to obtain resource > jdbc/jetspeed > > through JNDI. It just can not get it cause the context is never bind to > the > > thread. > > > > I try it with Jetty and it works because ComponentContextBeforeAfter is > > called. > > > > I am wondering if I am not allowed to do any JNDI operation in > > Servlet.init()? > > Have you tried this in Tomcat running standalone? When you tried it > with Jetty, was Jetty running standalone or within Geronimo? > > Bruce > -- > perl -e 'print > unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=3D6-E+G-N>61E );' > > The Castor Project > http://www.castor.org/ > > Apache Geronimo > http://geronimo.apache.org/ > ------=_Part_21806_10787837.1131085876083 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Jetty is running within Geronimo. thanks.

- James Liao

On 11/4/05, Bruce Snyder <bruce.snyder@gmail.com> wrote:
On 11/3/05, Jian Liao <norwaywo= ods@gmail.com> wrote:
> All,
>  I'm trying to = integrate jetspeed 2 with geronimo(svn head) and tomcat-5.5.9
> as we= b container.
>  The deployment is successful. But Jetspeed will initial= ize OJB in
> JetspeedServlet.init() method which needs to obtain reso= urce jdbc/jetspeed
> through JNDI. It just can not get it cause the c= ontext is never bind to the
> thread.
>
>  I try it with Jetty and it work= s because ComponentContextBeforeAfter is
> called.
>
>&nb= sp; I am wondering if I am not allowed to do any JNDI operation in
= > Servlet.init ()?

Have you tried this in Tomcat running standalone? When you tried= it
with Jetty, was Jetty running standalone or within Geronimo?

= Bruce
--
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&= amp;5R\"F)R=3D6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

The Castor Project
htt= p://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/

------=_Part_21806_10787837.1131085876083--