解决异常需要用到的文件

链接:https://pan.baidu.com/s/1lEa1nk9q5TqCW3a8EfRq-Q 
提取码:7sv2 

2019-1-14 补充:

帮同事安装项目时又遇到这个问题 但是是以另外一种方式呈现:

错误信息:

 

{com.ruoyi.project.platform.message.mapper.MessageMapper.selectList} Has been loaded by XML or SqlProvider, ignoring the injection of the SQL.
11:36:17.445 [restartedMain] INFO  o.a.s.c.e.EhCacheManager - [getCache,169] - Using existing EHCache named [loginRecordCache]
11:36:18.556 [restartedMain] WARN  o.a.c.c.AprLifecycleListener - [log,182] - The APR based Apache Tomcat Native library failed to load. The error reported was [C:\Windows\System32\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform]
java.lang.UnsatisfiedLinkError: C:\Windows\System32\tcnative-1.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.apache.tomcat.jni.Library.<init>(Library.java:42)
at org.apache.tomcat.jni.Library.initialize(Library.java:178)
at org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:198)
at org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:107)
at org.apache.catalina.connector.Connector.setProtocol(Connector.java:582)
at org.apache.catalina.connector.Connector.<init>(Connector.java:74)
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:164)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:179)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:152)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:780)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:333)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1277)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1265)
at com.ruoyi.RuoYiApplication.main(RuoYiApplication.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)

解决方式:

 1. 他的tomcat bin目录下里就没有 tcnative-1.dll  tcnative-1-src.pdb 这两个文件  直接复制放进去即可(上边给的百度网盘链接里有这两个文件,从官网下会非常慢)

2. 如果放进去启动还是有异常信息  就进入异常信息提示的这个文件的位置 把这文件删除掉 然后再把提供的那两个文件放进来就行了

 

#####################################################################################################

#################################分-隔-符#############################################################

 另外一个异常信息:

2019-01-12 20:58:42.251  INFO 152 --- [           main] com.baidu.mydemo.Mydemo
Application      : Starting MydemoApplication v0.0.1-SNAPSHOT on WIN-R334JRE2798
 with PID 152 (C:\Users\Administrator\Desktop\work\mydemo-0.0.1-SNAPSHOT.jar started by Administrator in C:\Users\Administrator)
2019-01-12 20:58:42.267  INFO 152 --- [           main] com.baidu.mydemo.Mydemo
Application      : No active profile set, falling back to default profiles: defa
ult
2019-01-12 20:58:45.454 ERROR 152 --- [           main] o.a.catalina.core.AprLifecycleListener   : An incompatible version [1.2.8] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
2019-01-12 20:58:45.844 ERROR 152 --- [           main] o.a.catalina.core.AprLif ecycleListener   : An incompatible version [1.2.8] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
2019-01-12 20:58:45.861  INFO 152 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2019-01-12 20:58:45.861  INFO 152 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.14]
2019-01-12 20:58:45.907 ERROR 152 --- [           main] o.a.catalina.core.AprLifecycleListener   : An incompatible version [1.2.8] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
2019-01-12 20:58:46.110  INFO 152 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2019-01-12 20:58:47.376  INFO 152 --- [           main] com.baidu.mydemo.MydemoApplication      : Started MydemoApplication in 6.672 seconds (JVM running for 7.662)

只保留下了错误信息  原始错误没有截图:

 

 

解决方式:

前去 http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.2.14/binaries/ 下载1.124 版本 然后将

tcnative-1.dll

tcnative-1-src.pdb

这两个文件放到自己的tomcat的bin目录下  直接替换就解决了 (64位操作系统选择 x64目录下的这两个文件)


)

原因分析:

启动tomcat 7.0, 看到日志里出现严重警告, 
An incompatible version 1.1.14 of APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.24.就上网查了查,APR是Apache portable Runtime的缩写,是tomcat的一个可选组件。

具体深入原因 等待学习
该异常其他博主讲解:

https://blog.csdn.net/zs520ct/article/details/80497281

https://blog.csdn.net/u010638673/article/details/79588279

 

 

 

Logo

快速构建 Web 应用程序

更多推荐