Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] TLD scanner warning at boot time

Caused by: java.nio.file.NoSuchFileException: /opt/openfire/lib/oraclepki.jar

Error seems pretty straight forward.
That JAR doesn't exist in your environment.

Either it outright does not exist, or the file/dir permissions are such that the Java process cannot access/see that file.

The TLD Scanner always runs, even if you have precompiled JSPs.

You have two options.

1. Fix the missing/inaccessible entry in your classpath. (this is the BEST option)

2. Use the Tomcat Jasper System Properties to specify what to scan and what to skip. (a last resort option, not recommended, esp if you have or use TLDs)

`tomcat.util.scan.StandardJarScanFilter.jarsToSkip` - The comma separated list of JAR file name patterns to skip when scanning for pluggable features introduced by Servlet 3.0 specification.
`tomcat.util.scan.StandardJarScanFilter.jarsToScan` - The comma separated list of JAR file name patterns to scan when scanning for pluggable features introduced by Servlet 3.0 specification.


- Joakim

On Mon, Mar 10, 2025 at 8:34 AM Guus der Kinderen via jetty-users <jetty-users@xxxxxxxxxxx> wrote:
Hi all,

Our software project, Openfire, is a Java-based project that embeds two Jetty servers (using Jetty12/EE8).

We use JSPC precompliation of JSP pages.

Recently, we've added Oracle JDBC drivers to our project. Since then, we're getting a lot of warnings like the one attached to this email at boot time (not during compilation). What is confusing me is that this doesn't happen in all environments.

What's the cause of this? How can we prevent this from happening?

I'm far from an expert, but I think this relates to an automatic scan for TLD libraries. Given that we're using JSP pre-compliation, should this even be happening?

Kind regards,

  Guus

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users

Back to the top