[prev in list] [next in list] [prev in thread] [next in thread]
List: tomcat-user
Subject: Re: accessing external contents
From: ur454911 () gmail ! com
Date: 2022-11-17 6:54:22
Message-ID: 9879d9fe-747c-d07a-c077-28611aa3cb52 () gmail ! com
[Download RAW message or body]
Hi Mark,
Thanks for letting me know that I am on righ track.
I will try it with standard installation and further inspect why it is not working in my product.
Thanks,
Umesh
On 11/15/22 11:34 PM, Mark Thomas <markt@apache.org> wrote:
> On 14/11/2022 11:22, Umesh Raikwar wrote:
>
> <snip/>
>
> > ... context path /product ...
>
> <snip/>
>
> > <Context path="/Product" docBase="/opt/product/codebase"
> > reloadable="false" useHttpOnly="true">
> >
> > <Loader
> > loaderClass="org.apache.catalina.loader.ParallelWebappClassLoader"
> > delegate="true"/>
> > <Resources>
> > <PostResources base="/opt/product/custom"
> > className="org.apache.catalina.webresources.DirResourceSet"
> > webAppMount="/"/>
> > </Resources>
> > </Context>
> >
> > and tried to access URL: locahost:8080/Product/test.html which
> > returned 404.
> >
> >
> > My question:
> > Is nested components the right way to achieve the requirement? If yes,
> > please help me understand what I am missing. If not, please point me
> > the right way.
>
> You are on the right track. I've just tested this locally and it works.
>
> You have inconsistent context paths in your question. URLs are case
> sensitive. That makes me think you have the wrong context path somewhere.
>
> It might be helpful it you started with a standard Tomcat install.
> Adding the following to $CATALINA_BASE/webapps/manager/META-INF/context.xml
>
> <Resources>
> <PostResources
> base="${catalina.base}/extra"
> className="org.apache.catalina.webresources.DirResourceSet"
> webAppMount="/"/>
> </Resources>
>
> allows me to access $CATALINA_BASE/extras/test.jsp via
> http://localhost:8080/manager/test.jsp
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic