At least one JAR was scanned for TLDs yet contained no TLDs

后端 未结 6 1275
情深已故
情深已故 2020-12-08 03:45

I keep getting this on tomcat 7.30 (eclipse juno)

At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger

6条回答
  •  难免孤独
    2020-12-08 04:34

    apache-tomcat-8.0.33

    If you want to enable debug logging in tomcat for TLD scanned jars then you have to change /conf/logging.properties file in tomcat directory.

    uncomment the line :
    org.apache.jasper.servlet.TldScanner.level = FINE

    FINE level is for debug log.

    This should work for normal tomcat.

    If the tomcat is running under eclipse. Then you have to set the path of tomcat logging.properties in eclipse.

    1. Open servers view in eclipse.Stop the server.Double click your tomcat server.
      This will open Overview window for the server.
    2. Click on Open launch configuration.This will open another window.
    3. Go to the Arguments tab(second tab).Go to VM arguments section.
    4. paste this two line there :-
      -Djava.util.logging.config.file="{CATALINA_HOME}\conf\logging.properties"
      -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
      Here CATALINA_HOME is your PC's corresponding tomcat server directory.
    5. Save the Changes.Restart the server.

    Now the jar files that scanned for TLDs should show in the log.

提交回复
热议问题