Mark,

On 6/7/24 01:49, Mark Thomas wrote:
On 06/06/2024 18:48, Dave Breeze wrote:
Thanks Mark
appreciate that the url was for 8.0

With regards to classpath that was my first attempt - unfortunately it
would seem that Tomcat does not support wildcards in the classpath -
for example dirpath/lib/*.jar - at least in version 9.

The requirements for setting the class path are set by the JVM, not by Tomcat. If you want all the JARs in a directory to be included in the class path then you should add dirpath/lib/* to the class path.

I think you'd have to specifically mention every .jar file in that directory in the classpath, right? I've never known Java to bother resolving glob patterns on its own. This is usually the responsibility of the command shell.

-chris

On Thu, 6 Jun 2024 at 17:23, Mark Thomas <ma...@apache.org> wrote:

On 06/06/2024 17:52, Dave Breeze wrote:
   I have an issue with embedded Tomcat and classloaders.

I have a java servlet application that runs in an embedded
Tomcat(9.0.70) instance.

<snip/>

https://tomcat.apache.org/tomcat-8.0-doc/class-loader-howto.html

Those are the Tomcat 8.0.x docs. You are using Tomcat 9.0.x.

Tomcat embedded does not set up the class loader structure you get with
a standard Tomcat instance. Tomcat just uses the classpath.

Mark

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


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


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


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

Reply via email to