话不多说,idea中tomcat报错如下
org.apache.catalina.startup.TldConfig execute
信息: 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.
解决步骤如下
1:修改tomcat安装目录下conf/logging.properties文件,增加或者修改以下代码
# To see debug messages in TldLocationsCache, uncomment the following line:
org.apache.jasper.compiler.TldLocationsCache.level = FINE
2:重启tomcat,可以看到以下提示
复制所有报错信息到任意一个文件里,我的是D://logs.log
执行以下代码
@Test
public void Test1(){
try{
BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream("D://logs.log"),"UTF-8"));
String str;
int i=0;
while ((str = in.readLine()) != null) {
if(str.contains("jar")){
String file=(str.split("\\[")[1]).split("\\]")[0];
if(!file.contains("IntelliJIdea2018")){
System.out.print(file.split("file:/D:/project/SSM/target/SSM/WEB-INF/lib/")[1]+",");
if(i%4==0&&i!=0){
System.out.println("\\");
}
i++;
}else{
System.out.println(file);
}
}
}
in.close();
}catch(Exception e){
e.printStackTrace();
}
}
输出如下所示
cxf-core-3.1.6.jar,cxf-rt-transports-http-3.1.6.jar,spring-jdbc-4.3.5.RELEASE.jar,jackson-core-2.8.5.jar,cxf-rt-databinding-jaxb-3.1.6.jar,\
spring-aop-4.3.5.RELEASE.jar,spring-context-4.3.5.RELEASE.jar,spring-core-4.3.5.RELEASE.jar,mybatis-3.4.1.jar,\
druid-1.0.18.jar,xml-resolver-1.2.jar,spring-beans-4.3.5.RELEASE.jar,cxf-rt-wsdl-3.1.6.jar,\
cxf-rt-frontend-jaxws-3.1.6.jar,fastjson-1.2.47.jar,jackson-databind-2.8.5.jar,spring-test-4.3.5.RELEASE.jar,\
stax2-api-3.1.4.jar,spring-expression-4.3.5.RELEASE.jar,jaxb-core-2.2.11.jar,mybatis-spring-1.3.1.jar,\
neethi-3.0.3.jar,cxf-rt-bindings-xml-3.1.6.jar,cxf-rt-ws-addr-3.1.6.jar,jackson-annotations-2.8.5.jar,\
xmlschema-core-2.2.1.jar,woodstox-core-asl-4.4.1.jar,cxf-rt-ws-policy-3.1.6.jar,poi-3.15.jar,\
jaxb-impl-2.2.11.jar,spring-web-4.3.5.RELEASE.jar,mysql-connector-java-5.1.41.jar,cxf-rt-bindings-soap-3.1.6.jar,\
spring-tx-4.3.5.RELEASE.jar,cxf-rt-frontend-simple-3.1.6.jar,file:/C:/Users/admin/.IntelliJIdea2018.1/system/captureAgent/debugger-agent.jar
将对应输出信息复制到tomcat安装目录下conf/catalina.properties文件,此处注意file截取的应该是自己的目录url
将上方标红的file信息改为debugger-agent.jar最终效果如下
ok,解决