各类启动报错记录(持续更新)

xiaoxiao2021-02-28  94

1).

严重: Exception starting filter struts2

java.lang.NoSuchFieldError: VERSION_2_3_0 七月 11, 2017 3:57:15 下午 org.apache.catalina.core.StandardContext filterStart 严重: Exception starting filter struts2 java.lang.NoSuchFieldError: VERSION_2_3_0 at org.apache.struts2.views.freemarker.FreemarkerManager.createConfiguration(FreemarkerManager.java:316) at org.apache.struts2.views.freemarker.FreemarkerManager.init(FreemarkerManager.java:263) at org.apache.struts2.views.freemarker.FreemarkerManager.getConfiguration(FreemarkerManager.java:252)

at org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler.init(DefaultDispatcherErrorHandler.java:48)

解决方法:

严重: Exception starting filter struts2

java.lang.NoSuchFieldError: VERSION_2_3_0

在使用freemarker的时候,如果使用低版本例如---->2.3.19的时候会报错:java.lang.NoSuchFieldError: VERSION_2_3_0,此时需要更新更高版本的jar包,在2.3.23版本是可以的。-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

2).

pom.xml 配置文件中,引入了 <!-- spring security 3.0.5  -->     <dependency>         <groupId>org.springframework.security</groupId>         <artifactId>spring-security-core</artifactId>         <version>3.0.5.RELEASE</version>     </dependency> 但idea还是报security没有定义,eclipse没有问题 http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd 问题截图: 解决方法: 复制出现红色字体的路径。。。 File -  Settings  - schemas and DtDs  ---------------------------------------------------------------------------

mysql启失败报:

Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.

mysql错误日志error.log

2018-04-10 16:18:42 27779 [ERROR] InnoDB: auto-extending data file ./ibdata1 is of a different size 0 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!2018-04-10 16:18:42 27779 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!2018-04-10 16:18:42 27779 [ERROR] Plugin 'InnoDB' init function returned error.2018-04-10 16:18:42 27779 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.2018-04-10 16:18:42 27779 [ERROR] Unknown/unsupported storage engine: InnoDB

2018-04-10 16:18:42 27779 [ERROR] Aborting

解决方法:删除

rm -rf ibdata1  ib_logfile0  ib_logfile1data目录里的也要删除,不能只删除mysql目录里的 然后systemctl start mysqld.service就可以启动了。
转载请注明原文地址: https://www.6miu.com/read-68439.html

最新回复(0)