tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thusitha Thilina Dayaratne <thusit...@wso2.com>
Subject Re: Is org.apache.naming.resources package have been removed in tomcat 8.0.20?
Date Sat, 07 Mar 2015 04:25:28 GMT
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 <markt@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 <
> > 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 <markt@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-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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message