Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

how to silence some info logs in the jspc compiler #232

Description

@ludoch

The GAE staging phase that precompiles the JSP using the jars in a jetty distro still emits:
2016-05-07 15:08:26.379:INFO::main: Logging initialized @555ms
2016-05-07 15:08:26.879:INFO:oajs.TldScanner:main: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

I tried to
System.setProperty("org.apache.jasper.servlet.TldScanner.level", "OFF");
in the main process calling jspc, and still sees the log entry.

Also, looking at the generated servlet of the precompiled JSP, I see hard coded path... How it is supposed to work in prod?

private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;

static {
_jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(2);
_jspx_dependants.put("jar:file:/Users/ludo/.m2/repository/jstl/jstl/1.2/jstl-1.2.jar!/META-INF/fn.tld", Long.valueOf(1153410282000L));
_jspx_dependants.put("file:/Users/ludo/.m2/repository/jstl/jstl/1.2/jstl-1.2.jar", Long.valueOf(1451600304000L));
}

So far, I do not see any side effect, and I guess this is a bug in the jasper compiler?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions