Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 14344 invoked from network); 17 Dec 2009 10:55:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Dec 2009 10:55:41 -0000 Received: (qmail 54739 invoked by uid 500); 17 Dec 2009 10:55:40 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 54633 invoked by uid 500); 17 Dec 2009 10:55:40 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 54625 invoked by uid 99); 17 Dec 2009 10:55:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2009 10:55:40 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.54] (HELO smtp109.prem.mail.sp1.yahoo.com) (98.136.44.54) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 17 Dec 2009 10:55:38 +0000 Received: (qmail 76250 invoked from network); 17 Dec 2009 06:10:54 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Mime-Version:Subject:Date:References:X-Mailer; b=4fReOqXwnvj6+uFSFCo74nXCv0Nz6J/GCMRtArIuU2xfJJMGSGFr635NQn4+0epqrRg7L+cxD67Q7an7O8WsXEtUkZF9yxpn8BVjKqhMwteySC1d4ieLPzyCFt4IpUJgVvxEqt85hm983oT9Tk+AAdSLR25dNgcW2G5y+d/0GaE= ; Received: from 076-076-148-215.pdx.net (david_jencks@76.76.148.215 with plain) by smtp109.prem.mail.sp1.yahoo.com with SMTP; 16 Dec 2009 22:10:53 -0800 PST X-Yahoo-SMTP: .9oIUzyswBANsYgUm_5uPui0skTnzGJXJQ-- X-YMail-OSG: PbUk1wcVM1llQuSTeNQEI7dIcp40AJJRFDIXjam2dZnDwbfXc9R.7r5aR_v2QHoHc8n2NDotdm32zDAj75f.8YAtCw9s3.pxLSkh5y_HX7N2YRUesWmvd6C7PJVmMPyNTeY_acksQPRzybEIoc0eAjSzS7FAJQ6BkRF0Pwm0cqBGN4Pm1pOwDiRRv7PQFirN4GY41sUPkYhv3Rg6jRHwZgedXUA1_HtbfAJQbg2MNNeRso5b3QGH7eXqnJgIdGoqDDS4F6D65_liIaAA0OsjBmBqG576OjQkWm00D2Emokg5PVgeXhh9oAJmc5lOdtza8QkBEZrPqM_J3BRwzkXT0sC49wP6v4Og76tTnr6lSCOMh321NuSq3_LuFiO2jT9V5ULr5T1ZPqt_Lfpw3opNS0.gSlyz4nmWmQ-- X-Yahoo-Newman-Property: ymail-3 Message-Id: <7C57509F-87F1-4EC5-8236-2FFD9FB4679F@yahoo.com> From: David Jencks To: dev@geronimo.apache.org In-Reply-To: <45f744e40912161842m1f5f1021k72ca535bb971a092@mail.gmail.com> Content-Type: multipart/alternative; boundary=Apple-Mail-10--744789101 Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: ConfigurationBaseUrl in Tomcat 7 integration Date: Wed, 16 Dec 2009 22:10:52 -0800 References: <45f744e40912160200t382e10fbyff659ab35e4f88c6@mail.gmail.com> <45f744e40912161842m1f5f1021k72ca535bb971a092@mail.gmail.com> X-Mailer: Apple Mail (2.936) --Apple-Mail-10--744789101 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit See http://svn.apache.org/viewvc?rev=885632&view=rev I think I've figured out how to do this in tomcat. We need a BundleDriContext that is installed into the GeronimoStandardContext to look up resources. thanks david jencks On Dec 16, 2009, at 6:42 PM, Ivan wrote: > Hmm, does it need to modify Tomcat/Jetty codes ? I searched in the > integration codes for Jetty8, but no hit is found. > Maybe you could show me where they are. > Thanks! > > 2009/12/17 David Jencks > In an osgi environment it is certainly not appropriate to tell the > web server the file system location of a war. The location is used > to find web resources. To get jetty to work, I used > bundle.getEntry. I'll look into fixing it for tomcat. > > thanks > david jencks > > > On Dec 16, 2009, at 2:00 AM, Ivan wrote: > > Hi, > After changing some Tomcat codes, I got a NullPointerException > about the ConfigurationBaseUrl. It seems that in OSGI environment, > we have no way know where the bundle is. But IIRC, both Tomcat and > Jetty need to set docbase, so that they could load resource from the > specified locations. So, how is it handlered currently ? I > remembered that Jetty could be run for a while in the past, but I > did not find any codes related to it. > -- > Ivan > > > > > -- > Ivan --Apple-Mail-10--744789101 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable See  http://s= vn.apache.org/viewvc?rev=3D885632&view=3Drev

I = think I've figured out how to do this in tomcat.  We need a = BundleDriContext that is installed into the GeronimoStandardContext to = look up resources.

thanks
david = jencks

On Dec 16, 2009, at 6:42 PM, = Ivan wrote:

Hmm, does it need to modify Tomcat/Jetty codes ? I = searched in the integration codes for Jetty8, but no hit is = found.
Maybe you could show me where they are.
Thanks! =

2009/12/17 David Jencks <david_jencks@yahoo.com>
In an = osgi environment it is certainly not appropriate to tell the web server = the file system location of a war.  The location is used to find = web resources.  To get jetty to work, I used bundle.getEntry. =  I'll look into fixing it for tomcat.

thanks
david jencks


On Dec 16, 2009, at 2:00 AM, Ivan wrote:

=
= Hi,
   After changing some Tomcat codes, I got a = NullPointerException about the ConfigurationBaseUrl. It seems that in = OSGI environment, we have no way know where the bundle is. But IIRC, = both Tomcat and Jetty need to set docbase, so that they could load = resource from the specified locations. So, how is it handlered currently = ? I remembered that Jetty could be run for a while in the past, but I = did not find any codes related to it.
--
Ivan
=



-- =
Ivan

= --Apple-Mail-10--744789101--