idea中常见报错(ERROR 23060,cannot resolve taglib with uri,org.apache.catalina.LifecycleException等)

1.新建的maven项目编写测试类时出现的错误:

(1)测试的时候若是一直报测试的那个类找不到并且在test中没有生成test-classes的文件夹,则可以是打包错误,删了重新打包试试。

(2)创建测试类时方法不显示,可以将 类似public interface AreaDao{}改成public class AreaDao{}然后点击AreaDao按alt+enter自动生成测试类,最后再将class改回interface即可。

2.jsp开发中cannot resolve taglib with uri的解决方法:(例如下面的uri)

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

解决办法:在pom.xml中添加如下jar包:

idea中常见报错(ERROR 23060,cannot resolve taglib with uri,org.apache.catalina.LifecycleException等)_第1张图片

3.若是在配置xml文件时 将鼠标放在上面,软件会提示“URI is not registered ( Setting | Project Settings | Schemas and DTDs )”,翻译过来就是统一资源标识符没有注册。出现 file-->settings...-->languages & frameworks-->Schemas and DTD中将报错的链接复制进去即可

4.可以忽略的错:

(1).出现下面的类似org.springframework........有错的话可在idea的右下角的highlighting level拖到最左边(none)

(2)下面这种错可以忽略:(滑到最左边)

idea中常见报错(ERROR 23060,cannot resolve taglib with uri,org.apache.catalina.LifecycleException等)_第2张图片

5.springMVC中报这个错:org.apache.catalina.LifecycleException原因可能是:

 

org.springframework

spring-webmvc

4.2.5.RELEASE

的版本太高了,自已的编辑器带不起来;也可能是pom.xml中有的jar包在仓库中不存在。

6.出现 Application in module .....。File is include in 5 contexts.则 编译器自动导入配置文件的时候发生了某些错误,解决方法:依次打开 Project Settings -> Modules -> Spring  按减号删除右侧所有文件,然后再按加号重新导入配置文件即可。--------一般只要idea中常见报错(ERROR 23060,cannot resolve taglib with uri,org.apache.catalina.LifecycleException等)_第3张图片即可。

7.应用poi时出现报错:

java.lang.NoSuchMethodError: org.apache.poi.util.POILogger.log--------原因:poi的jar包出现了多个版本。

8.springboot

(1)运行启动类时报错:

Exception in thread "main" java.lang.UnsupportedClassVersionError:

可能是springboot支持jdk1.8;将jdk切换成1.8即可。

idea中常见报错(ERROR 23060,cannot resolve taglib with uri,org.apache.catalina.LifecycleException等)_第4张图片

(2)springboot整合spring security时报错:ERROR 23060 --- [main] o.a.catalina.core.AprLifecycleListener

报错原因:可能是C:\Windows\System32下缺少的tcnative-1.ddl导致的

下载链接:

http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.2.14/binaries/

idea中常见报错(ERROR 23060,cannot resolve taglib with uri,org.apache.catalina.LifecycleException等)_第5张图片

下载完成后加压将对应版本的插件拷贝到 C:\Windows\System32目录下,重新进行测试。

 

 

你可能感兴趣的:(java,后端,报错)