更新时间:2023-01-13 15:26:34
如果想要拥有 conf\logging.properties
阅读必须(另见 here )将此文件转储到 Servers\ Tomcat v7.0 Server在localhost-config\
文件夹,然后添加以下行:
If one wants to have the conf\logging.properties
read one must (see also here) dump this file into the Servers\Tomcat v7.0 Server at localhost-config\
folder and then add the lines :
-Djava。 util.logging.config.file =$ {workspace_loc} \Servers\Tomcat v7.0 Server at localhost-config \logging.properties-Djava.util.logging.manager = org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file="${workspace_loc}\Servers\Tomcat v7.0 Server at localhost-config\logging.properties" -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
到启动配置一个正在使用。
这可能已经重新启动或两次(或不是)但是最后我在控制台中看到了鲜艳的红色:
This may have taken a restart or two (or not) but finally I saw in the console in bright red :
精细:没有在[file:/ C:/ Dropbox]中找到TLD文件/eclipse_workspaces/javaEE/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ted2012/WEB-INF/lib/logback-classic-1.0.7.jar。考虑将JAR添加到CATALINA_BASE / conf / catalina.properties文件中的tomcat.util.scan.DefaultJarScanner.jarsToSkip或org.apache.catalina.startup.TldConfig.jarsToSkip属性。 // etc
FINE: No TLD files were found in [file:/C:/Dropbox/eclipse_workspaces/javaEE/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ted2012/WEB-INF/lib/logback-classic-1.0.7.jar]. Consider adding the JAR to the tomcat.util.scan.DefaultJarScanner.jarsToSkip or org.apache.catalina.startup.TldConfig.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file. //etc
我还不知道这个 编辑:从@Stephan的评论:每当JSP文件中进行任何更改时,都会出现FINE警告。 FINE
警告出现 - 在tomcat启动时不会立即出现
I still don't know when exactly this EDIT: from the comment by @Stephan: "The FINE warning appears each time any change is done in the JSP file".FINE
warning appears - does not appear immediately on tomcat launch
奖金:要使警告消失,加入 catalina。属性
:
Bonus: To make the warning go away add in catalina.properties
:
# Additional JARs (over and above the default JARs listed above) to skip when
# scanning for TLDs. The list must be a comma separated list of JAR file names.
org.apache.catalina.startup.TldConfig.jarsToSkip=logback-classic-1.0.7.jar,\
joda-time-2.1.jar,joda-time-2.1-javadoc.jar,mysql-connector-java-5.1.24-bin.jar,\
logback-core-1.0.7.jar,javax.servlet.jsp.jstl-api-1.2.1.jar