maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Connolly <stephen.alan.conno...@gmail.com>
Subject Re: Maven Profile for distincts web.xml
Date Tue, 28 May 2013 14:42:29 GMT
Sorry wrong link... you want http://bit.ly/18wuQUc


On 28 May 2013 15:41, Stephen Connolly <stephen.alan.connolly@gmail.com>wrote:

> http://bit.ly/18wuJIj
>
>
> On 28 May 2013 15:33, Alberto Ivo <albertoivo@gmail.com> wrote:
>
>> Any idea on JBoss 7 AS?
>>
>>
>> Ivo
>>
>>
>> On Tue, May 28, 2013 at 11:14 AM, Stephen Connolly <
>> stephen.alan.connolly@gmail.com> wrote:
>>
>> > jetty's is more fun... though you can hack it with one of the override
>> > methods
>> >
>> >
>> > On 28 May 2013 15:05, Mark H. Wood <mwood@iupui.edu> wrote:
>> >
>> > > On Tue, May 28, 2013 at 02:49:26PM +0100, Stephen Connolly wrote:
>> > > > On 28 May 2013 14:37, Mark H. Wood <mwood@iupui.edu> wrote:
>> > > >
>> > > > > On Mon, May 27, 2013 at 02:20:15PM -0300, Alberto Ivo wrote:
>> > > > > > The differences between the web.xml is
>> > > > > >
>> > > > > > <context-param>
>> > > > > > <param-name>javax.faces.PROJECT_STAGE</param-name>
>> > > > > >  <param-value>*Development | Production*</param-value>
>> > > > > > </context-param>
>> > > > >
>> > > > > Shouldn't that sort of information be supplied by the container
>> > rather
>> > > > > than baked into the app?
>> > > > >
>> > > > >
>> > > > One would think so, but sadly that is not the way the spec was
>> written.
>> > > >
>> > > > According to
>> http://css.dzone.com/news/jsf-20-new-feature-preview-ser
>> > > >
>> > > > You can use a JNDI variable to override:
>> java:comp/env/jsf/ProjectStage
>> > > >
>> > > > So if that works for the JSF impl you are using you should be able
>> to
>> > > > configure the container so that all deployed apps see the
>> > > > java:comp/env/jsf/ProjectStage value you want them to see... thereby
>> > > > removing the problem entirely.
>> > > >
>> > > > Older JSF 2 implementations may have issues though... but should be
>> > fine
>> > > on
>> > > > all JSF 2.1+ etc
>> > >
>> > > I suppose it depends on your container.  In Tomcat I'd write an
>> > > external context descriptor something like:
>> > >
>> > >   <Context ...>
>> > >     <Parameter name='javax.faces.PROJECT_STAGE'
>> > >                value='Development'
>> > >                override='false'/>
>> > >   </Context>
>> > >
>> > > and omit the <context-param> from web.xml, letting the value default
>> > > to Production.
>> > >
>> > > I think I recall being able to do something similar in Jetty.
>> > >
>> > > --
>> > > Mark H. Wood, Lead System Programmer   mwood@IUPUI.Edu
>> > > Machines should not be friendly.  Machines should be obedient.
>> > >
>> >
>>
>
>

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