You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by Pedro Alba <pe...@ticxar.com> on 2016/05/25 20:30:05 UTC

Context in apache isis

Hi.
I could help with an explanation of how the context of an application is
changed in isis apache.

Thank you.
-- 

[image: Logo]

*Pedro Antonio Alba *
*Senior Development Analyst*
Tel: (57) 1 703 17 77
Cel: (57) 301 3379810
E-mail: pedro.alba@ticxar.com
Calle 93 # 19b - 66 Ofc 202
Bogotá D.C., Colombia
www.ticxar.com



  [image: facebook]
<http://www.facebook.com/pages/Ticxar/446503822192581> [image:
twitter] <http://twitter.com/ticxar> [image: linkedIn]
<http://www.linkedin.com/company/ticxar>

Re: Context in apache isis

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Thanks for jumping in on this, Martin.

fyi, Swagger is actually just /src/main/webapp/swagger-ui/index.html , so
no special configuration required for it in web.xml.  If the filter-mapping
is changed for restful, then the swagger-ui/index.html also needs
updating.  Bit hacky, but there you are.

Thx
Dan



On 26 May 2016 at 14:24, Martin Grigorov <mg...@apache.org> wrote:

> Hi Pedro,
>
> I think you actually talk about the filter paths.
> They are specified in web.xml (simplerapp.war#WEB-INF/web.xml).
> WicketFilter is configured to listen on /wicket/*
> And the restful filter at /restful/
> I guess there is something similar for Swagger (I haven't checked).
>
> So maybe you just need to edit those instead of the context path.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Thu, May 26, 2016 at 3:17 PM, Martin Grigorov <mg...@apache.org>
> wrote:
>
> > Hi Pedro,
> >
> > What is the current context path and what is the desired one ?
> >
> > Usually the context path is the name of the web application without the
> > .war extension, e.g. simpleapp.war will use context path "simpleapp".
> > But every web container, like Tomcat, Jetty, WebLogic, etc. also provides
> > ways to change the context path to something custom.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Thu, May 26, 2016 at 3:13 PM, Pedro Alba <pe...@ticxar.com>
> wrote:
> >
> >> Hi Dan,
> >>
> >> Excuseme for the bad redaction in the first cuestion, but i need change
> >> the
> >> context path to my application in apache isis, and i would like to have
> >> your help.
> >>
> >> Thanks.
> >>
> >> 2016-05-25 17:12 GMT-05:00 Pedro Alba <pe...@ticxar.com>:
> >>
> >> > Dan,
> >> >
> >> > I mean the context of the application.
> >> >
> >> > The idea is the following:
> >> >
> >> > We package the application using mvn package, where we get the war
> file
> >> > the application.
> >> >
> >> > In this case we have the simpleapp.war file, which deployed in an
> >> > application server.
> >> >
> >> > So far so good.
> >> >
> >> > The wicket viewer works fine, however when we go to swagger-ui, the
> >> > application has the context / restful / * and the question is focused
> on
> >> > how we can set our Application context path in apache isis, so that
> the
> >> > layer API's REST has the context / SimpleApp / restful /, both the
> >> > swagger-ui, and resources set out in it suchas "restful / services /
> >> > ConfigurationServiceMenu" provided by apache isis.
> >> >
> >> > Thank you for your time and cooperation, it´s invaluable.
> >> >
> >> > 2016-05-25 15:59 GMT-05:00 Dan Haywood <dan@haywood-associates.co.uk
> >:
> >> >
> >> >> Which context? There are many...
> >> >> On 25 May 2016 9:58 pm, "Pedro Alba" <pe...@ticxar.com> wrote:
> >> >>
> >> >> > Hi.
> >> >> > I could help with an explanation of how the context of an
> >> application is
> >> >> > changed in isis apache.
> >> >> >
> >> >> > Thank you.
> >> >> > --
> >> >> >
> >> >> > [image: Logo]
> >> >> >
> >> >> > *Pedro Antonio Alba *
> >> >> > *Senior Development Analyst*
> >> >> > Tel: (57) 1 703 17 77
> >> >> > Cel: (57) 301 3379810
> >> >> > E-mail: pedro.alba@ticxar.com
> >> >> > Calle 93 # 19b - 66 Ofc 202
> >> >> > Bogotá D.C., Colombia
> >> >> > www.ticxar.com
> >> >> >
> >> >> >
> >> >> >
> >> >> >   [image: facebook]
> >> >> > <http://www.facebook.com/pages/Ticxar/446503822192581> [image:
> >> >> > twitter] <http://twitter.com/ticxar> [image: linkedIn]
> >> >> > <http://www.linkedin.com/company/ticxar>
> >> >> >
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> >
> >> > [image: Logo]
> >> >
> >> > *Pedro Antonio Alba *
> >> > *Senior Development Analyst*
> >> > Tel: (57) 1 703 17 77
> >> > Cel: (57) 301 3379810
> >> > E-mail: pedro.alba@ticxar.com
> >> > Calle 93 # 19b - 66 Ofc 202
> >> > Bogotá D.C., Colombia
> >> > www.ticxar.com
> >> >
> >> >
> >> >
> >> >   [image: facebook] <
> >> http://www.facebook.com/pages/Ticxar/446503822192581>
> >> >  [image: twitter] <http://twitter.com/ticxar> [image: linkedIn]
> >> > <http://www.linkedin.com/company/ticxar>
> >> >
> >>
> >>
> >>
> >> --
> >>
> >> [image: Logo]
> >>
> >> *Pedro Antonio Alba *
> >> *Senior Development Analyst*
> >> Tel: (57) 1 703 17 77
> >> Cel: (57) 301 3379810
> >> E-mail: pedro.alba@ticxar.com
> >> Calle 93 # 19b - 66 Ofc 202
> >> Bogotá D.C., Colombia
> >> www.ticxar.com
> >>
> >>
> >>
> >>   [image: facebook]
> >> <http://www.facebook.com/pages/Ticxar/446503822192581> [image:
> >> twitter] <http://twitter.com/ticxar> [image: linkedIn]
> >> <http://www.linkedin.com/company/ticxar>
> >>
> >
> >
>

Re: Context in apache isis

Posted by Martin Grigorov <mg...@apache.org>.
Hi Pedro,

I think you actually talk about the filter paths.
They are specified in web.xml (simplerapp.war#WEB-INF/web.xml).
WicketFilter is configured to listen on /wicket/*
And the restful filter at /restful/
I guess there is something similar for Swagger (I haven't checked).

So maybe you just need to edit those instead of the context path.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, May 26, 2016 at 3:17 PM, Martin Grigorov <mg...@apache.org>
wrote:

> Hi Pedro,
>
> What is the current context path and what is the desired one ?
>
> Usually the context path is the name of the web application without the
> .war extension, e.g. simpleapp.war will use context path "simpleapp".
> But every web container, like Tomcat, Jetty, WebLogic, etc. also provides
> ways to change the context path to something custom.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Thu, May 26, 2016 at 3:13 PM, Pedro Alba <pe...@ticxar.com> wrote:
>
>> Hi Dan,
>>
>> Excuseme for the bad redaction in the first cuestion, but i need change
>> the
>> context path to my application in apache isis, and i would like to have
>> your help.
>>
>> Thanks.
>>
>> 2016-05-25 17:12 GMT-05:00 Pedro Alba <pe...@ticxar.com>:
>>
>> > Dan,
>> >
>> > I mean the context of the application.
>> >
>> > The idea is the following:
>> >
>> > We package the application using mvn package, where we get the war file
>> > the application.
>> >
>> > In this case we have the simpleapp.war file, which deployed in an
>> > application server.
>> >
>> > So far so good.
>> >
>> > The wicket viewer works fine, however when we go to swagger-ui, the
>> > application has the context / restful / * and the question is focused on
>> > how we can set our Application context path in apache isis, so that the
>> > layer API's REST has the context / SimpleApp / restful /, both the
>> > swagger-ui, and resources set out in it suchas "restful / services /
>> > ConfigurationServiceMenu" provided by apache isis.
>> >
>> > Thank you for your time and cooperation, it´s invaluable.
>> >
>> > 2016-05-25 15:59 GMT-05:00 Dan Haywood <da...@haywood-associates.co.uk>:
>> >
>> >> Which context? There are many...
>> >> On 25 May 2016 9:58 pm, "Pedro Alba" <pe...@ticxar.com> wrote:
>> >>
>> >> > Hi.
>> >> > I could help with an explanation of how the context of an
>> application is
>> >> > changed in isis apache.
>> >> >
>> >> > Thank you.
>> >> > --
>> >> >
>> >> > [image: Logo]
>> >> >
>> >> > *Pedro Antonio Alba *
>> >> > *Senior Development Analyst*
>> >> > Tel: (57) 1 703 17 77
>> >> > Cel: (57) 301 3379810
>> >> > E-mail: pedro.alba@ticxar.com
>> >> > Calle 93 # 19b - 66 Ofc 202
>> >> > Bogotá D.C., Colombia
>> >> > www.ticxar.com
>> >> >
>> >> >
>> >> >
>> >> >   [image: facebook]
>> >> > <http://www.facebook.com/pages/Ticxar/446503822192581> [image:
>> >> > twitter] <http://twitter.com/ticxar> [image: linkedIn]
>> >> > <http://www.linkedin.com/company/ticxar>
>> >> >
>> >>
>> >
>> >
>> >
>> > --
>> >
>> > [image: Logo]
>> >
>> > *Pedro Antonio Alba *
>> > *Senior Development Analyst*
>> > Tel: (57) 1 703 17 77
>> > Cel: (57) 301 3379810
>> > E-mail: pedro.alba@ticxar.com
>> > Calle 93 # 19b - 66 Ofc 202
>> > Bogotá D.C., Colombia
>> > www.ticxar.com
>> >
>> >
>> >
>> >   [image: facebook] <
>> http://www.facebook.com/pages/Ticxar/446503822192581>
>> >  [image: twitter] <http://twitter.com/ticxar> [image: linkedIn]
>> > <http://www.linkedin.com/company/ticxar>
>> >
>>
>>
>>
>> --
>>
>> [image: Logo]
>>
>> *Pedro Antonio Alba *
>> *Senior Development Analyst*
>> Tel: (57) 1 703 17 77
>> Cel: (57) 301 3379810
>> E-mail: pedro.alba@ticxar.com
>> Calle 93 # 19b - 66 Ofc 202
>> Bogotá D.C., Colombia
>> www.ticxar.com
>>
>>
>>
>>   [image: facebook]
>> <http://www.facebook.com/pages/Ticxar/446503822192581> [image:
>> twitter] <http://twitter.com/ticxar> [image: linkedIn]
>> <http://www.linkedin.com/company/ticxar>
>>
>
>

Re: Context in apache isis

Posted by Martin Grigorov <mg...@apache.org>.
Hi Pedro,

What is the current context path and what is the desired one ?

Usually the context path is the name of the web application without the
.war extension, e.g. simpleapp.war will use context path "simpleapp".
But every web container, like Tomcat, Jetty, WebLogic, etc. also provides
ways to change the context path to something custom.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, May 26, 2016 at 3:13 PM, Pedro Alba <pe...@ticxar.com> wrote:

> Hi Dan,
>
> Excuseme for the bad redaction in the first cuestion, but i need change the
> context path to my application in apache isis, and i would like to have
> your help.
>
> Thanks.
>
> 2016-05-25 17:12 GMT-05:00 Pedro Alba <pe...@ticxar.com>:
>
> > Dan,
> >
> > I mean the context of the application.
> >
> > The idea is the following:
> >
> > We package the application using mvn package, where we get the war file
> > the application.
> >
> > In this case we have the simpleapp.war file, which deployed in an
> > application server.
> >
> > So far so good.
> >
> > The wicket viewer works fine, however when we go to swagger-ui, the
> > application has the context / restful / * and the question is focused on
> > how we can set our Application context path in apache isis, so that the
> > layer API's REST has the context / SimpleApp / restful /, both the
> > swagger-ui, and resources set out in it suchas "restful / services /
> > ConfigurationServiceMenu" provided by apache isis.
> >
> > Thank you for your time and cooperation, it´s invaluable.
> >
> > 2016-05-25 15:59 GMT-05:00 Dan Haywood <da...@haywood-associates.co.uk>:
> >
> >> Which context? There are many...
> >> On 25 May 2016 9:58 pm, "Pedro Alba" <pe...@ticxar.com> wrote:
> >>
> >> > Hi.
> >> > I could help with an explanation of how the context of an application
> is
> >> > changed in isis apache.
> >> >
> >> > Thank you.
> >> > --
> >> >
> >> > [image: Logo]
> >> >
> >> > *Pedro Antonio Alba *
> >> > *Senior Development Analyst*
> >> > Tel: (57) 1 703 17 77
> >> > Cel: (57) 301 3379810
> >> > E-mail: pedro.alba@ticxar.com
> >> > Calle 93 # 19b - 66 Ofc 202
> >> > Bogotá D.C., Colombia
> >> > www.ticxar.com
> >> >
> >> >
> >> >
> >> >   [image: facebook]
> >> > <http://www.facebook.com/pages/Ticxar/446503822192581> [image:
> >> > twitter] <http://twitter.com/ticxar> [image: linkedIn]
> >> > <http://www.linkedin.com/company/ticxar>
> >> >
> >>
> >
> >
> >
> > --
> >
> > [image: Logo]
> >
> > *Pedro Antonio Alba *
> > *Senior Development Analyst*
> > Tel: (57) 1 703 17 77
> > Cel: (57) 301 3379810
> > E-mail: pedro.alba@ticxar.com
> > Calle 93 # 19b - 66 Ofc 202
> > Bogotá D.C., Colombia
> > www.ticxar.com
> >
> >
> >
> >   [image: facebook] <
> http://www.facebook.com/pages/Ticxar/446503822192581>
> >  [image: twitter] <http://twitter.com/ticxar> [image: linkedIn]
> > <http://www.linkedin.com/company/ticxar>
> >
>
>
>
> --
>
> [image: Logo]
>
> *Pedro Antonio Alba *
> *Senior Development Analyst*
> Tel: (57) 1 703 17 77
> Cel: (57) 301 3379810
> E-mail: pedro.alba@ticxar.com
> Calle 93 # 19b - 66 Ofc 202
> Bogotá D.C., Colombia
> www.ticxar.com
>
>
>
>   [image: facebook]
> <http://www.facebook.com/pages/Ticxar/446503822192581> [image:
> twitter] <http://twitter.com/ticxar> [image: linkedIn]
> <http://www.linkedin.com/company/ticxar>
>

Re: Context in apache isis

Posted by Pedro Alba <pe...@ticxar.com>.
Hi Dan,

Excuseme for the bad redaction in the first cuestion, but i need change the
context path to my application in apache isis, and i would like to have
your help.

Thanks.

2016-05-25 17:12 GMT-05:00 Pedro Alba <pe...@ticxar.com>:

> Dan,
>
> I mean the context of the application.
>
> The idea is the following:
>
> We package the application using mvn package, where we get the war file
> the application.
>
> In this case we have the simpleapp.war file, which deployed in an
> application server.
>
> So far so good.
>
> The wicket viewer works fine, however when we go to swagger-ui, the
> application has the context / restful / * and the question is focused on
> how we can set our Application context path in apache isis, so that the
> layer API's REST has the context / SimpleApp / restful /, both the
> swagger-ui, and resources set out in it suchas "restful / services /
> ConfigurationServiceMenu" provided by apache isis.
>
> Thank you for your time and cooperation, it´s invaluable.
>
> 2016-05-25 15:59 GMT-05:00 Dan Haywood <da...@haywood-associates.co.uk>:
>
>> Which context? There are many...
>> On 25 May 2016 9:58 pm, "Pedro Alba" <pe...@ticxar.com> wrote:
>>
>> > Hi.
>> > I could help with an explanation of how the context of an application is
>> > changed in isis apache.
>> >
>> > Thank you.
>> > --
>> >
>> > [image: Logo]
>> >
>> > *Pedro Antonio Alba *
>> > *Senior Development Analyst*
>> > Tel: (57) 1 703 17 77
>> > Cel: (57) 301 3379810
>> > E-mail: pedro.alba@ticxar.com
>> > Calle 93 # 19b - 66 Ofc 202
>> > Bogotá D.C., Colombia
>> > www.ticxar.com
>> >
>> >
>> >
>> >   [image: facebook]
>> > <http://www.facebook.com/pages/Ticxar/446503822192581> [image:
>> > twitter] <http://twitter.com/ticxar> [image: linkedIn]
>> > <http://www.linkedin.com/company/ticxar>
>> >
>>
>
>
>
> --
>
> [image: Logo]
>
> *Pedro Antonio Alba *
> *Senior Development Analyst*
> Tel: (57) 1 703 17 77
> Cel: (57) 301 3379810
> E-mail: pedro.alba@ticxar.com
> Calle 93 # 19b - 66 Ofc 202
> Bogotá D.C., Colombia
> www.ticxar.com
>
>
>
>   [image: facebook] <http://www.facebook.com/pages/Ticxar/446503822192581>
>  [image: twitter] <http://twitter.com/ticxar> [image: linkedIn]
> <http://www.linkedin.com/company/ticxar>
>



-- 

[image: Logo]

*Pedro Antonio Alba *
*Senior Development Analyst*
Tel: (57) 1 703 17 77
Cel: (57) 301 3379810
E-mail: pedro.alba@ticxar.com
Calle 93 # 19b - 66 Ofc 202
Bogotá D.C., Colombia
www.ticxar.com



  [image: facebook]
<http://www.facebook.com/pages/Ticxar/446503822192581> [image:
twitter] <http://twitter.com/ticxar> [image: linkedIn]
<http://www.linkedin.com/company/ticxar>

Re: Context in apache isis

Posted by Pedro Alba <pe...@ticxar.com>.
Dan,

I mean the context of the application.

The idea is the following:

We package the application using mvn package, where we get the war file the
application.

In this case we have the simpleapp.war file, which deployed in an
application server.

So far so good.

The wicket viewer works fine, however when we go to swagger-ui, the
application has the context / restful / * and the question is focused on
how we can set our Application context path in apache isis, so that the
layer API's REST has the context / SimpleApp / restful /, both the
swagger-ui, and resources set out in it suchas "restful / services /
ConfigurationServiceMenu" provided by apache isis.

Thank you for your time and cooperation, it´s invaluable.

2016-05-25 15:59 GMT-05:00 Dan Haywood <da...@haywood-associates.co.uk>:

> Which context? There are many...
> On 25 May 2016 9:58 pm, "Pedro Alba" <pe...@ticxar.com> wrote:
>
> > Hi.
> > I could help with an explanation of how the context of an application is
> > changed in isis apache.
> >
> > Thank you.
> > --
> >
> > [image: Logo]
> >
> > *Pedro Antonio Alba *
> > *Senior Development Analyst*
> > Tel: (57) 1 703 17 77
> > Cel: (57) 301 3379810
> > E-mail: pedro.alba@ticxar.com
> > Calle 93 # 19b - 66 Ofc 202
> > Bogotá D.C., Colombia
> > www.ticxar.com
> >
> >
> >
> >   [image: facebook]
> > <http://www.facebook.com/pages/Ticxar/446503822192581> [image:
> > twitter] <http://twitter.com/ticxar> [image: linkedIn]
> > <http://www.linkedin.com/company/ticxar>
> >
>



-- 

[image: Logo]

*Pedro Antonio Alba *
*Senior Development Analyst*
Tel: (57) 1 703 17 77
Cel: (57) 301 3379810
E-mail: pedro.alba@ticxar.com
Calle 93 # 19b - 66 Ofc 202
Bogotá D.C., Colombia
www.ticxar.com



  [image: facebook]
<http://www.facebook.com/pages/Ticxar/446503822192581> [image:
twitter] <http://twitter.com/ticxar> [image: linkedIn]
<http://www.linkedin.com/company/ticxar>

Re: Context in apache isis

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Which context? There are many...
On 25 May 2016 9:58 pm, "Pedro Alba" <pe...@ticxar.com> wrote:

> Hi.
> I could help with an explanation of how the context of an application is
> changed in isis apache.
>
> Thank you.
> --
>
> [image: Logo]
>
> *Pedro Antonio Alba *
> *Senior Development Analyst*
> Tel: (57) 1 703 17 77
> Cel: (57) 301 3379810
> E-mail: pedro.alba@ticxar.com
> Calle 93 # 19b - 66 Ofc 202
> Bogotá D.C., Colombia
> www.ticxar.com
>
>
>
>   [image: facebook]
> <http://www.facebook.com/pages/Ticxar/446503822192581> [image:
> twitter] <http://twitter.com/ticxar> [image: linkedIn]
> <http://www.linkedin.com/company/ticxar>
>