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.caldar...@unisys.com> wrote:

> > From: Thusitha Thilina Dayaratne [mailto:thusit...@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:thusit...@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 <ma...@apache.org> 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 <
> > > thusit...@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 <ma...@apache.org> 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-unsubscr...@tomcat.apache.org
> > >>> For additional commands, e-mail: users-h...@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-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@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-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@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

Reply via email to