Mark F,

On 10/23/24 18:13, Mark Foley wrote:
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.

What is the real goal, here?

Do they have to be separate web applications? If so, why? Security/isolation? Easy of deployment? Separate configuration(s)?

Deploying many web applications isn't a problem unless you are very resource constrained (e.g. RAM).

-chris


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

Reply via email to