images not in war

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

images not in war

Jason Davis
Hello,
 Currently I have a custom tomcat config to have images in a dir not
in the expanded webapp be available at http://app/imgs.
I did this in the server.xml like so:

<Context docBase="/opt/winmail_storage/imgs" path="/imgs"/>

How can I have something like this for my dev environment? I dont see
a config file for the appserver.

Thanks,
Jason

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: images not in war

Jason Davis
tried both of these with no luck:


        def eventConfigureTomcat = { tomcat ->
                        def c = tomcat.addContext('/imgs' , '/opt/winmail_storage/images/')
                        c.reloadable = true
                        c.allowLinking = true
                        println c
                       
                        println "CALLED!"
                        /*
                       
                                        File appDir = new File('/opt/winmail_storage/images');
                                        context = tomcat.addWebapp('/imgs', appDir.getAbsolutePath());
                                        context.reloadable = true
                                        context.allowLinking = true
                       
                                        WebappLoader loader = new WebappLoader(tomcat.class.classLoader)
                                        context.loader = loader */
        }




On Wed, Jan 12, 2011 at 12:36 PM, Jason Davis <[hidden email]> wrote:

> Hello,
>  Currently I have a custom tomcat config to have images in a dir not
> in the expanded webapp be available at http://app/imgs.
> I did this in the server.xml like so:
>
> <Context docBase="/opt/winmail_storage/imgs" path="/imgs"/>
>
> How can I have something like this for my dev environment? I dont see
> a config file for the appserver.
>
> Thanks,
> Jason
>

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

    http://xircles.codehaus.org/manage_email