Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 746AA1072C for ; Sat, 7 Mar 2015 15:56:03 +0000 (UTC) Received: (qmail 16119 invoked by uid 500); 7 Mar 2015 15:55:59 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 16040 invoked by uid 500); 7 Mar 2015 15:55:58 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 16029 invoked by uid 99); 7 Mar 2015 15:55:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Mar 2015 15:55:58 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of thusithad@wso2.com designates 209.85.223.181 as permitted sender) Received: from [209.85.223.181] (HELO mail-ie0-f181.google.com) (209.85.223.181) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Mar 2015 15:55:33 +0000 Received: by iecvy18 with SMTP id vy18so28855726iec.9 for ; Sat, 07 Mar 2015 07:55:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wso2.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=H1MKrJdPppMVRVdpQBe0ZNOeJarTH1WtqTv7bpV9xvw=; b=IPIS31WqgfB3m+my0ECEUbyeHdPbaVbrWiJdzbc56XkhEKCYLH+uQ62dLBxfhar4Vw l1YeXl3lOgeJCoPBD9aag6MpaHwWcCIhgC+5K477fhLanqUEwceOUPH6HTDXz7I7WxYJ P7XeIftygB6pywI8Hgdqi6qJgkoXmhowxWuDM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=H1MKrJdPppMVRVdpQBe0ZNOeJarTH1WtqTv7bpV9xvw=; b=F0Qn9nsQoK5XBNIBcf/AyRp/6rg8nTSyed3aHb89969uXduntios+bfIoAekT80t6t cIkEbEvLaHKiOb8UoL93S+Acye7n1SWGZT9Xci57qTYh6mqEvyQSLrwb9p1Tqqe/dKVn 3OVnDGeJgucNQ5Cgu8LLF4pcu1KaYsrIMRpiVlPWgnMXDtYKY3q4g0TF0UpnwqBMGDvQ bk323NCPl9sXZ7rm3X5Aud9Q1xi1dZ/TvftayD1a8To+tZrLvrJFuoqdRR8tGF+v7MVL KlukonHXDkrYgel5v+cq12oXaSCL4B3hRm2rg4i0SYprNcUvJULaNJi4eAwFLXcQpjE/ 4ylA== X-Gm-Message-State: ALoCoQkkidhEw9bJ54Ir1NDwFWI4oR8Sys5RdvNqB2U60UbAP9TrRcl2r+Cy4KiN7s4v45UeEz1K MIME-Version: 1.0 X-Received: by 10.107.35.140 with SMTP id j134mr35964475ioj.11.1425743731774; Sat, 07 Mar 2015 07:55:31 -0800 (PST) Received: by 10.36.38.13 with HTTP; Sat, 7 Mar 2015 07:55:31 -0800 (PST) In-Reply-To: <50eac642b20f4f91994551d7db544b56@US-EXCH13-5.na.uis.unisys.com> References: <54F9720B.6020600@apache.org> <54F9A99F.3000401@apache.org> <50eac642b20f4f91994551d7db544b56@US-EXCH13-5.na.uis.unisys.com> Date: Sat, 7 Mar 2015 21:25:31 +0530 Message-ID: Subject: Re: Is org.apache.naming.resources package have been removed in tomcat 8.0.20? From: Thusitha Thilina Dayaratne To: Tomcat Users List Content-Type: multipart/alternative; boundary=001a114028e0ac6f410510b4d415 X-Virus-Checked: Checked by ClamAV on apache.org --001a114028e0ac6f410510b4d415 Content-Type: text/plain; charset=UTF-8 Hi, First I would like to apologies for any inconvenience caused. > I'll ask again. What are you trying to do? > Difficult to say unless you tell us what problem you're actually trying to solve rather than yet again what you think should be done to solve it. I'm using extended class of *DirContextURLStreamHandler* to handle jndi resources in the application. Thanks Best Regards /Thusitha On Sat, Mar 7, 2015 at 7:24 PM, Caldarale, Charles R < Chuck.Caldarale@unisys.com> wrote: > > From: Thusitha Thilina Dayaratne [mailto:thusithad@wso2.com] > > Subject: Re: Is org.apache.naming.resources package have been removed in > tomcat 8.0.20? > > Don't top post. Read the mailing list rules: > http://tomcat.apache.org/lists.html#tomcat-users > > > I'm trying to bundle the tomcat as a OSGI bundle. While doing so, I've > > extended the DirContextURLStreamHandler class and overriding the > > method openConnection(URL > > u)as a public method. Then I'm registering my extended class as a service > > http://tomcat.apache.org/lists.html#tomcat-usersin the bundle context. > > > Could someone tell me is that a good approach? If not what is the best > > alternative? > > Difficult to say unless you tell us what problem you're actually trying to > solve rather than yet again what you think should be done to solve it. As > Mark said, read this before replying: > http://xyproblem.info/ > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail and > its attachments from all computers. > > > -----Original Message----- > From: Thusitha Thilina Dayaratne [mailto:thusithad@wso2.com] > Sent: 2015 March 6, Friday 22:25 > To: Tomcat Users List > Subject: Re: Is org.apache.naming.resources package have been removed in > tomcat 8.0.20? > > Hi Mark, > > I'm trying to bundle the tomcat as a OSGI bundle. While doing so, I've > extended the DirContextURLStreamHandler class and overriding the > method openConnection(URL > u)as a public method. Then I'm registering my extended class as a service > in the bundle context. > > Since *org.apache.naming.resource* package have been removed I'm trying to > use the *WarStreamURLHandler *class in the > *org.apache.catalina.webresource* > package and get my work done. > > Could someone tell me is that a good approach? If not what is the best > alternative? > > Thanks > Best Regards > /Thusitha > > On Fri, Mar 6, 2015 at 6:50 PM, Mark Thomas wrote: > > > On 06/03/2015 10:53, Thusitha Thilina Dayaratne wrote: > > > Hi, > > > > > > Is there an alternative method from some other class that I can use > > instead > > > of removed *protected URLConnection openConnection(URL u) *in Tomcat 8? > > > > I'll ask again. What are you trying to do? > > > > Read this: http://xyproblem.info/ before you answer. > > > > Mark > > > > > > > > > > Thanks > > > Regards > > > /Thusitha > > > > > > On Fri, Mar 6, 2015 at 2:57 PM, Thusitha Thilina Dayaratne < > > > thusithad@wso2.com> wrote: > > > > > >> Hi Mark, > > >> > > >> Thanks for your quick response. > > >> I'm extending that class and overriding the method openConnection(URL > > u)as > > >> a public method. So I can use it from somewhere else. > > >> > > >> Thanks > > >> Best Regards > > >> /Thusitha > > >> > > >> On Fri, Mar 6, 2015 at 2:53 PM, Mark Thomas wrote: > > >> > > >>> On 06/03/2015 09:15, Thusitha Thilina Dayaratne wrote: > > >>>> Hi All, > > >>>> > > >>>> I'm working on migrating embedded tomcat 7 project to latest release > > of > > >>> *tomcat > > >>>> 8.0.20* When compiling the project, I'm getting compilation errors > > >>> saying > > >>>> that *org.apache.naming.resources* package can't be found. (I'm > using > > >>>> *DirContextURLStreamHandler* which was resided in above package in > > >>> tomcat 7) > > >>>> > > >>>> I've checked the Tomcat API doc too. It seems that the package > doesn't > > >>>> exists there. > > >>>> Is that package removed from tomcat 8? > > >>> Yes. > > >>> > > >>>> If so what is/are the alternative(s)? > > >>> That depends what you are trying to do. > > >>> > > >>>> I couldn't found any source saying that it is been removed or > > >>> deprecated. > > >>> http://tomcat.apache.org/migration-8.html > > >>> > > >>> Mark > > >>> > > >>> > > >>> --------------------------------------------------------------------- > > >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > > >>> For additional commands, e-mail: users-help@tomcat.apache.org > > >>> > > >>> > > >> > > >> > > >> -- > > >> Thusitha Dayaratne > > >> Software Engineer > > >> WSO2 Inc. - lean . enterprise . middleware | wso2.com > > >> > > >> Mobile +94712756809 > > >> Blog alokayasoya.blogspot.com > > >> About http://about.me/thusithathilina > > >> > > >> > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > > For additional commands, e-mail: users-help@tomcat.apache.org > > > > > > > -- > Thusitha Dayaratne > Software Engineer > WSO2 Inc. - lean . enterprise . middleware | wso2.com > > Mobile +94712756809 > Blog alokayasoya.blogspot.com > About http://about.me/thusithathilina > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > -- Thusitha Dayaratne Software Engineer WSO2 Inc. - lean . enterprise . middleware | wso2.com Mobile +94712756809 Blog alokayasoya.blogspot.com About http://about.me/thusithathilina --001a114028e0ac6f410510b4d415--