On Wed, 23 Oct 2024 19:13:44 Mark Thomas <ma...@apache.org> wrote:
>
> On 23/10/2024 18:57, Mark Foley wrote:
> > I'm running Tomcat 8.5.11. I have a hopefully small problem.
>
> Tomcat 8.5.x is EOL and no longer supported.
>
> 8.5.11 is also rather old with quite a long list of know security issues.

Yeah, I know. Updating it is on my todo list. I'm running 10.1.13 elsewhere, but
I have a lot of changes to make getting to 10.x.x so I've been kicking that can
down the road. I was hoping this particular issue wasn't dependent on version.

> > I have a webapp directory: $CATALINA_HOME/webapps/myapp/. In that directory 
> > I have WEB-INF/web.xml with:
> > 
> > <env-entry>
> >    <env-entry-name>connURL</env-entry-name>
> >    <env-entry-value>jdbc:mysql://localhost/members?</env-entry-value>
> >    <env-entry-type>java.lang.String</env-entry-type>
> > </env-entry>
> > 
> > In this example, the env-entry is just part of an SQL connection string I 
> > want to snag.
> > 
> > In a browser, going to: <myIP>/myapp/index.jsp works fine with WEB-INF as 
> > shown above.
> > 
> > What I want to do is put all of this in a sub-directory: 
> > $CATALINA_HOME/webapps/myapp/subapp/ and access it on my browser as 
> > <myIP>/myapp/subapp/index.jsp. When I do that -- no changes to anything -- 
> > I get the error:
>
> That won't work. What will work is renaming:
>
> $CATALINA_HOME/webapps/myapp
>
> to
>
> $CATALINA_HOME/webapps/myapp#subapp/
>
> Mark

Hmmm ... what I was attempting was splitting many webapps into multiple
directories. I have a top-level organization which would be like:

$CATALINA_HOME/webapps/GrandWaterBuffalo/

Then subordinate to that would be sub-orgs like:

$CATALINA_HOME/webapps/GrandWaterBuffalo/districtA
$CATALINA_HOME/webapps/GrandWaterBuffalo/districtB
$CATALINA_HOME/webapps/GrandWaterBuffalo/districtC

etc. Perhaps 30+ at this level. Then sub-orgs for each of these like:

$CATALINA_HOME/webapps/GrandWaterBuffalo/districtA/Chapter1
$CATALINA_HOME/webapps/GrandWaterBuffalo/districtA/Chapter2
$CATALINA_HOME/webapps/GrandWaterBuffalo/districtA/Chapter3

etc.  Probably around 10-ish "Chapters" per District.  As you can see, this
could result in many webapps.  I was trying not to put them all under one
$CATALINA_HOME/webapps/ directory level, but your example effectively does 
that. 

So, no way around this? What do hosting sites do that may have several hundred
webapps for different customers? Just put everything under
$CATALINA_HOME/webapps?

Thanks --Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to