Quantcast

Adding information to WEB-INF?

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Adding information to WEB-INF?

Gregory Pierce-2
I know I can uncompress a .war file and add things to the WEB-INF  
directory, but what I want to do if be able to add things to the  
project the same way one does with the lib directory. In particular  
I'm solving some deployment problems with JBoss Application Server  
and I want to add some XML configuration files, but outside of  
extracting the .war file - there is no way to do it. Any thoughts?

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Adding information to WEB-INF?

Marc Palmer Local

On 16 Feb 2007, at 05:09, Gregory Pierce wrote:

> I know I can uncompress a .war file and add things to the WEB-INF  
> directory, but what I want to do if be able to add things to the  
> project the same way one does with the lib directory. In particular  
> I'm solving some deployment problems with JBoss Application Server  
> and I want to add some XML configuration files, but outside of  
> extracting the .war file - there is no way to do it. Any thoughts?

If you just need it on the classpath, anything in prj/conf will be  
copied to WEB-INF/classes.

Marc


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Adding information to WEB-INF?

Gregory Pierce-2
Nah, I actually need to put in a jboss-web.xml and similar to make  
sure that the application server does the right thing when deploying  
grails applications.

On Feb 16, 2007, at 5:05 AM, Marc Palmer wrote:

>
> On 16 Feb 2007, at 05:09, Gregory Pierce wrote:
>
>> I know I can uncompress a .war file and add things to the WEB-INF  
>> directory, but what I want to do if be able to add things to the  
>> project the same way one does with the lib directory. In  
>> particular I'm solving some deployment problems with JBoss  
>> Application Server and I want to add some XML configuration files,  
>> but outside of extracting the .war file - there is no way to do  
>> it. Any thoughts?
>
> If you just need it on the classpath, anything in prj/conf will be  
> copied to WEB-INF/classes.
>
> Marc
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>    http://xircles.codehaus.org/manage_email
>


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Adding information to WEB-INF?

kate rhodes
That's only half of your problem. The web.xml is regenerated every
time you run the app in development mode (and probably test mode)
which makes it nigh-impossible to actually alter it and then see/test
if the alterations worked.

-Kate

On 2/16/07, Gregory Pierce <[hidden email]> wrote:

> Nah, I actually need to put in a jboss-web.xml and similar to make
> sure that the application server does the right thing when deploying
> grails applications.
>
> On Feb 16, 2007, at 5:05 AM, Marc Palmer wrote:
>
> >
> > On 16 Feb 2007, at 05:09, Gregory Pierce wrote:
> >
> >> I know I can uncompress a .war file and add things to the WEB-INF
> >> directory, but what I want to do if be able to add things to the
> >> project the same way one does with the lib directory. In
> >> particular I'm solving some deployment problems with JBoss
> >> Application Server and I want to add some XML configuration files,
> >> but outside of extracting the .war file - there is no way to do
> >> it. Any thoughts?
> >
> > If you just need it on the classpath, anything in prj/conf will be
> > copied to WEB-INF/classes.
> >
> > Marc
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >    http://xircles.codehaus.org/manage_email
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


--
- kate = masukomi
http://weblog.masukomi.org/

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Adding information to WEB-INF?

Maurice Nicholson old
In reply to this post by Gregory Pierce-2
If it lives in WEB-INF, just add it and check it in. Grails won't have a
problem with it being there.

Gregory Pierce wrote:

> Nah, I actually need to put in a jboss-web.xml and similar to make
> sure that the application server does the right thing when deploying
> grails applications.
>
> On Feb 16, 2007, at 5:05 AM, Marc Palmer wrote:
>
>>
>> On 16 Feb 2007, at 05:09, Gregory Pierce wrote:
>>
>>> I know I can uncompress a .war file and add things to the WEB-INF
>>> directory, but what I want to do if be able to add things to the
>>> project the same way one does with the lib directory. In particular
>>> I'm solving some deployment problems with JBoss Application Server
>>> and I want to add some XML configuration files, but outside of
>>> extracting the .war file - there is no way to do it. Any thoughts?
>>
>> If you just need it on the classpath, anything in prj/conf will be
>> copied to WEB-INF/classes.
>>
>> Marc
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Adding information to WEB-INF?

graemer
In reply to this post by kate rhodes
If you want to change web.xml you have two options

a) alter web.template.xml

or

b) Write a plugin (see http://grails.org/Runtime+Configuration+Plugins)

Cheers

On 2/16/07, kate rhodes <[hidden email]> wrote:

> That's only half of your problem. The web.xml is regenerated every
> time you run the app in development mode (and probably test mode)
> which makes it nigh-impossible to actually alter it and then see/test
> if the alterations worked.
>
> -Kate
>
> On 2/16/07, Gregory Pierce <[hidden email]> wrote:
> > Nah, I actually need to put in a jboss-web.xml and similar to make
> > sure that the application server does the right thing when deploying
> > grails applications.
> >
> > On Feb 16, 2007, at 5:05 AM, Marc Palmer wrote:
> >
> > >
> > > On 16 Feb 2007, at 05:09, Gregory Pierce wrote:
> > >
> > >> I know I can uncompress a .war file and add things to the WEB-INF
> > >> directory, but what I want to do if be able to add things to the
> > >> project the same way one does with the lib directory. In
> > >> particular I'm solving some deployment problems with JBoss
> > >> Application Server and I want to add some XML configuration files,
> > >> but outside of extracting the .war file - there is no way to do
> > >> it. Any thoughts?
> > >
> > > If you just need it on the classpath, anything in prj/conf will be
> > > copied to WEB-INF/classes.
> > >
> > > Marc
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe from this list please visit:
> > >
> > >    http://xircles.codehaus.org/manage_email
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
>
>
> --
> - kate = masukomi
> http://weblog.masukomi.org/
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


--
Graeme Rocher

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Adding information to WEB-INF?

Marc Palmer Local
In reply to this post by Gregory Pierce-2

On 16 Feb 2007, at 15:26, Gregory Pierce wrote:

> Nah, I actually need to put in a jboss-web.xml and similar to make  
> sure that the application server does the right thing when  
> deploying grails applications.

How about we add an optional <prj>/conf/WEB-INF/ directory to grails  
projects, and if there everything under that tree is copied verbatim  
to web-app/WEB-INF/ or the .war?

This would allow people to supply content that can be accessed via  
the application but not via the web browser directly, which is valuable.

Marc

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Adding information to WEB-INF?

kate rhodes
> How about we add an optional <prj>/conf/WEB-INF/ directory to grails
> projects, and if there everything under that tree is copied verbatim
> to web-app/WEB-INF/ or the .war?
>
> This would allow people to supply content that can be accessed via
> the application but not via the web browser directly, which is valuable.

after applying roughly 14 seconds thought that sounds like a nifty idea.

prepopulate it with the default one... conflicting files in the real
WEB-INF would be replaced non-conflicting would be left alone.

Although this wholesale copying seems so brute force... there's
probably a better way.


--
- kate = masukomi
http://weblog.masukomi.org/

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Adding information to WEB-INF?

Marc Palmer Local

On 16 Feb 2007, at 20:00, kate rhodes wrote:

>> How about we add an optional <prj>/conf/WEB-INF/ directory to grails
>> projects, and if there everything under that tree is copied verbatim
>> to web-app/WEB-INF/ or the .war?
>>
>> This would allow people to supply content that can be accessed via
>> the application but not via the web browser directly, which is  
>> valuable.
>
> after applying roughly 14 seconds thought that sounds like a nifty  
> idea.
>
> prepopulate it with the default one... conflicting files in the real
> WEB-INF would be replaced non-conflicting would be left alone.
>
> Although this wholesale copying seems so brute force... there's
> probably a better way.

I think we are unlikely to persuade a standard servlet container like  
Jetty to read a single webapp's files from multiple paths. That's  
where the problem lies I believe. It might be possible to write a  
custom "in place" webapp loader if the servlet container is  
extensible enough.

Marc



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Adding information to WEB-INF?

Gregory Pierce-2
In reply to this post by graemer
It's not the actual web.xml, it is the vendor specific jboss-web.xml.  
Something similar applies to all application servers (BEA, Websphere)  
where you'd want to do clustering, load balancing, etc. or configure  
other vendor application server options.



On Feb 16, 2007, at 11:15 AM, Graeme Rocher wrote:

> If you want to change web.xml you have two options
>
> a) alter web.template.xml
>
> or
>
> b) Write a plugin (see http://grails.org/Runtime+Configuration 
> +Plugins)
>
> Cheers
>
> On 2/16/07, kate rhodes <[hidden email]> wrote:
>> That's only half of your problem. The web.xml is regenerated every
>> time you run the app in development mode (and probably test mode)
>> which makes it nigh-impossible to actually alter it and then see/test
>> if the alterations worked.
>>
>> -Kate
>>
>> On 2/16/07, Gregory Pierce <[hidden email]> wrote:
>> > Nah, I actually need to put in a jboss-web.xml and similar to make
>> > sure that the application server does the right thing when  
>> deploying
>> > grails applications.
>> >
>> > On Feb 16, 2007, at 5:05 AM, Marc Palmer wrote:
>> >
>> > >
>> > > On 16 Feb 2007, at 05:09, Gregory Pierce wrote:
>> > >
>> > >> I know I can uncompress a .war file and add things to the WEB-
>> INF
>> > >> directory, but what I want to do if be able to add things to the
>> > >> project the same way one does with the lib directory. In
>> > >> particular I'm solving some deployment problems with JBoss
>> > >> Application Server and I want to add some XML configuration  
>> files,
>> > >> but outside of extracting the .war file - there is no way to do
>> > >> it. Any thoughts?
>> > >
>> > > If you just need it on the classpath, anything in prj/conf  
>> will be
>> > > copied to WEB-INF/classes.
>> > >
>> > > Marc
>> > >
>> > >
>> > >  
>> ---------------------------------------------------------------------
>> > > To unsubscribe from this list please visit:
>> > >
>> > >    http://xircles.codehaus.org/manage_email
>> > >
>> >
>> >
>> >  
>> ---------------------------------------------------------------------
>> > To unsubscribe from this list please visit:
>> >
>> >     http://xircles.codehaus.org/manage_email
>> >
>> >
>>
>>
>> --
>> - kate = masukomi
>> http://weblog.masukomi.org/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>
>
> --
> Graeme Rocher
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>    http://xircles.codehaus.org/manage_email
>


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Adding information to WEB-INF?

Gregory Pierce-2
In reply to this post by Marc Palmer Local
I like this idea greatly because it will allow any vendor specific  
stuff to happen as well as give us flexibility going forward.

On Feb 16, 2007, at 2:16 PM, Marc Palmer wrote:

>
> On 16 Feb 2007, at 15:26, Gregory Pierce wrote:
>
>> Nah, I actually need to put in a jboss-web.xml and similar to make  
>> sure that the application server does the right thing when  
>> deploying grails applications.
>
> How about we add an optional <prj>/conf/WEB-INF/ directory to  
> grails projects, and if there everything under that tree is copied  
> verbatim to web-app/WEB-INF/ or the .war?
>
> This would allow people to supply content that can be accessed via  
> the application but not via the web browser directly, which is  
> valuable.
>
> Marc
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>    http://xircles.codehaus.org/manage_email
>


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Adding information to WEB-INF?

Maurice Nicholson old
In reply to this post by Gregory Pierce-2
If it's a separate file just check it in under web-app/WEB-INF

Gregory Pierce wrote:

> It's not the actual web.xml, it is the vendor specific jboss-web.xml.
> Something similar applies to all application servers (BEA, Websphere)
> where you'd want to do clustering, load balancing, etc. or configure
> other vendor application server options.
>
>
>
> On Feb 16, 2007, at 11:15 AM, Graeme Rocher wrote:
>
>> If you want to change web.xml you have two options
>>
>> a) alter web.template.xml
>>
>> or
>>
>> b) Write a plugin (see http://grails.org/Runtime+Configuration+Plugins)
>>
>> Cheers
>>
>> On 2/16/07, kate rhodes <[hidden email]> wrote:
>>> That's only half of your problem. The web.xml is regenerated every
>>> time you run the app in development mode (and probably test mode)
>>> which makes it nigh-impossible to actually alter it and then see/test
>>> if the alterations worked.
>>>
>>> -Kate
>>>
>>> On 2/16/07, Gregory Pierce <[hidden email]> wrote:
>>> > Nah, I actually need to put in a jboss-web.xml and similar to make
>>> > sure that the application server does the right thing when deploying
>>> > grails applications.
>>> >
>>> > On Feb 16, 2007, at 5:05 AM, Marc Palmer wrote:
>>> >
>>> > >
>>> > > On 16 Feb 2007, at 05:09, Gregory Pierce wrote:
>>> > >
>>> > >> I know I can uncompress a .war file and add things to the WEB-INF
>>> > >> directory, but what I want to do if be able to add things to the
>>> > >> project the same way one does with the lib directory. In
>>> > >> particular I'm solving some deployment problems with JBoss
>>> > >> Application Server and I want to add some XML configuration files,
>>> > >> but outside of extracting the .war file - there is no way to do
>>> > >> it. Any thoughts?
>>> > >
>>> > > If you just need it on the classpath, anything in prj/conf will be
>>> > > copied to WEB-INF/classes.
>>> > >
>>> > > Marc
>>> > >
>>> > >
>>> > >
>>> ---------------------------------------------------------------------
>>> > > To unsubscribe from this list please visit:
>>> > >
>>> > >    http://xircles.codehaus.org/manage_email
>>> > >
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe from this list please visit:
>>> >
>>> >     http://xircles.codehaus.org/manage_email
>>> >
>>> >
>>>
>>>
>>> --
>>> - kate = masukomi
>>> http://weblog.masukomi.org/
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list please visit:
>>>
>>>     http://xircles.codehaus.org/manage_email
>>>
>>>
>>
>>
>> --Graeme Rocher
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Loading...