1).
严重: Exception starting filter struts2
七月 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).
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>3.0.5.RELEASE</version>
</dependency>
mysql启失败报:
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
解决方法:删除
data目录里的也要删除,不能只删除mysql目录里的
然后systemctl start mysqld.service就可以启动了。