Re: Context in apache isis

2016-05-26 Thread Dan Haywood
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  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 
> 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 
> 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 :
> >>
> >> > 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  >:
> >> >
> >> >> Which context? There are many...
> >> >> On 25 May 2016 9:58 pm, "Pedro Alba"  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.a...@ticxar.com
> >> >> > Calle 93 # 19b - 66 Ofc 202
> >> >> > Bogotá D.C., Colombia
> >> >> > www.ticxar.com
> >> >> >
> >> >> >
> >> >> >
> >> >> >   [image: facebook]
> >> >> >  [image:
> >> >> > twitter]  [image: linkedIn]
> >> >> > 
> >> >> >
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> >
> >> > [image: Logo]
> >> >
> >> > *Pedro Antonio Alba *
> >> > *Senior Development Analyst*
> >> > Tel: (57) 1 703 17 77
> >> > Cel: (57) 301 3379810
> >> > E-mail: pedro.a...@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]  [image: linkedIn]
> >> > 
> >> >
> >>
> >>
> >>
> >> --
> >>
> >> [image: Logo]
> >>
> >> *Pedro Antonio Alba *
> >> *Senior Development Analyst*
> >> Tel: (57) 1 703 17 77
> >> Cel: (57) 301 3379810
> >> E-mail: pedro.a...@ticxar.com
> >> Calle 93 # 19b - 66 Ofc 202
> >> Bogotá D.C., Colombia
> >> www.ticxar.com
> >>
> >>
> >>
> >>   [image: facebook]
> >>  [image:
> >> twitter]  [image: linkedIn]
> >> 
> >>
> >
> >
>


Re: Context in apache isis

2016-05-26 Thread Martin Grigorov
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 
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  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 :
>>
>> > 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 :
>> >
>> >> Which context? There are many...
>> >> On 25 May 2016 9:58 pm, "Pedro Alba"  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.a...@ticxar.com
>> >> > Calle 93 # 19b - 66 Ofc 202
>> >> > Bogotá D.C., Colombia
>> >> > www.ticxar.com
>> >> >
>> >> >
>> >> >
>> >> >   [image: facebook]
>> >> >  [image:
>> >> > twitter]  [image: linkedIn]
>> >> > 
>> >> >
>> >>
>> >
>> >
>> >
>> > --
>> >
>> > [image: Logo]
>> >
>> > *Pedro Antonio Alba *
>> > *Senior Development Analyst*
>> > Tel: (57) 1 703 17 77
>> > Cel: (57) 301 3379810
>> > E-mail: pedro.a...@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]  [image: linkedIn]
>> > 
>> >
>>
>>
>>
>> --
>>
>> [image: Logo]
>>
>> *Pedro Antonio Alba *
>> *Senior Development Analyst*
>> Tel: (57) 1 703 17 77
>> Cel: (57) 301 3379810
>> E-mail: pedro.a...@ticxar.com
>> Calle 93 # 19b - 66 Ofc 202
>> Bogotá D.C., Colombia
>> www.ticxar.com
>>
>>
>>
>>   [image: facebook]
>>  [image:
>> twitter]  [image: linkedIn]
>> 
>>
>
>


Re: Context in apache isis

2016-05-26 Thread Martin Grigorov
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  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 :
>
> > 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 :
> >
> >> Which context? There are many...
> >> On 25 May 2016 9:58 pm, "Pedro Alba"  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.a...@ticxar.com
> >> > Calle 93 # 19b - 66 Ofc 202
> >> > Bogotá D.C., Colombia
> >> > www.ticxar.com
> >> >
> >> >
> >> >
> >> >   [image: facebook]
> >> >  [image:
> >> > twitter]  [image: linkedIn]
> >> > 
> >> >
> >>
> >
> >
> >
> > --
> >
> > [image: Logo]
> >
> > *Pedro Antonio Alba *
> > *Senior Development Analyst*
> > Tel: (57) 1 703 17 77
> > Cel: (57) 301 3379810
> > E-mail: pedro.a...@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]  [image: linkedIn]
> > 
> >
>
>
>
> --
>
> [image: Logo]
>
> *Pedro Antonio Alba *
> *Senior Development Analyst*
> Tel: (57) 1 703 17 77
> Cel: (57) 301 3379810
> E-mail: pedro.a...@ticxar.com
> Calle 93 # 19b - 66 Ofc 202
> Bogotá D.C., Colombia
> www.ticxar.com
>
>
>
>   [image: facebook]
>  [image:
> twitter]  [image: linkedIn]
> 
>


Re: Context in apache isis

2016-05-26 Thread Pedro Alba
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 :

> 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 :
>
>> Which context? There are many...
>> On 25 May 2016 9:58 pm, "Pedro Alba"  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.a...@ticxar.com
>> > Calle 93 # 19b - 66 Ofc 202
>> > Bogotá D.C., Colombia
>> > www.ticxar.com
>> >
>> >
>> >
>> >   [image: facebook]
>> >  [image:
>> > twitter]  [image: linkedIn]
>> > 
>> >
>>
>
>
>
> --
>
> [image: Logo]
>
> *Pedro Antonio Alba *
> *Senior Development Analyst*
> Tel: (57) 1 703 17 77
> Cel: (57) 301 3379810
> E-mail: pedro.a...@ticxar.com
> Calle 93 # 19b - 66 Ofc 202
> Bogotá D.C., Colombia
> www.ticxar.com
>
>
>
>   [image: facebook] 
>  [image: twitter]  [image: linkedIn]
> 
>



-- 

[image: Logo]

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



  [image: facebook]
 [image:
twitter]  [image: linkedIn]