Error: A JNI error has occurred, please check your installation and try again

Error: A JNI error has occurred, please check your installation and try again

idea 运行时报错:A JNI error has occurred, please check your installation and try again

"C:\Program Files\Java\jdk1.8.0_152\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:62832,suspend=y,server=n -javaagent:D:\IDEA\IDEA\IntelliJIDEA\plugins\Groovy\lib\agent\gragent.jar -javaagent:D:\IDEA\IDEA\IntelliJIDEA\lib\rt\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_152\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\rt.jar;D:\IT\ssdxPark\ssdxParkService\webApp\target\classes;D:\IT\ssdxPark\ssdxParkService\core\target\classes;D:\soft\repository\com\alibaba\dubbo\2.5.5\dubbo-2.5.5.jar;D:\soft\repository\org\javassist\javassist\3.20.0-GA\javassist-3.20.0-GA.jar;D:\soft\repository\org\jboss\netty\netty\3.2.5.Final\netty-3.2.5.Final.jar;D:\soft\repository\org\springframework\spring-context\4.3.10.RELEASE\spring-context-4.3.10.RELEASE.jar;D:\soft\repository\org\springframework\spring-oxm\4.3.10.RELEASE\spring-oxm-4.3.10.RELEASE.jar;D:\soft\repository\org\springframework\ldap\spring-ldap-core\2.0.2.RELEASE\spring-ldap-core-2.0.2.RELEASE.jar;D:\soft\repository\org\springframework\spring-tx\4.3.10.RELEASE\spring-tx-4.3.10.RELEASE.jar;D:\soft\repository\org\codehaus\castor\castor-xml\1.4.1\castor-xml-1.4.1.jar;D:\soft\repository\org\codehaus\castor\castor-core\1.4.1\castor-core-1.4.1.jar;D:\soft\repository\org\apache\commons\commons-lang3\3.4\commons-lang3-3.4.jar;D:\soft\repository\org\apache\commons\commons-collections4\4.1\commons-collections4-4.1.jar;D:\soft\repository\javax\inject\javax.inject\1\javax.inject-1.jar;D:\soft\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar;D:\soft\repository\org\slf4j\slf4j-log4j12\1.7.25\slf4j-log4j12-1.7.25.jar;D:\soft\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\soft\repository\net\sf\ehcache\ehcache\2.10.4\ehcache-2.10.4.jar;D:\soft\repository\org\springframework\spring-context-support\4.3.10.RELEASE\spring-context-support-4.3.10.RELEASE.jar;D:\soft\repository\org\springframework\spring-jms\4.3.10.RELEASE\spring-jms-4.3.10.RELEASE.jar;D:\soft\repository\org\apache\activemq\activemq-client\5.14.5\activemq-client-5.14.5.jar;D:\soft\repository\org\apache\geronimo\specs\geronimo-jms_1.1_spec\1.1.1\geronimo-jms_1.1_spec-1.1.1.jar;D:\soft\repository\org\fusesource\hawtbuf\hawtbuf\1.11\hawtbuf-1.11.jar;D:\soft\repository\org\apache\geronimo\specs\geronimo-j2ee-management_1.1_spec\1.0.1\geronimo-j2ee-management_1.1_spec-1.0.1.jar;D:\soft\repository\org\apache\activemq\activemq-broker\5.14.5\activemq-broker-5.14.5.jar;D:\soft\repository\org\apache\activemq\activemq-openwire-legacy\5.14.5\activemq-openwire-legacy-5.14.5.jar;D:\soft\repository\org\apache\activemq\activemq-spring\5.14.5\activemq-spring-5.14.5.jar;D:\soft\repository\org\apache\xbean\xbean-spring\4.2\xbean-spring-4.2.jar;D:\soft\repository\org\apache\activemq\activemq-pool\5.14.5\activemq-pool-5.14.5.jar;D:\soft\repository\org\apache\activemq\activemq-jms-pool\5.14.5\activemq-jms-pool-5.14.5.jar;D:\soft\repository\org\apache\geronimo\specs\geronimo-jta_1.0.1B_spec\1.0.1\geronimo-jta_1.0.1B_spec-1.0.1.jar;D:\soft\repository\org\apache\commons\commons-pool2\2.4.2\commons-pool2-2.4.2.jar;D:\soft\repository\org\apache\activemq\activemq-kahadb-store\5.14.5\activemq-kahadb-store-5.14.5.jar;D:\soft\repository\org\apache\activemq\protobuf\activemq-protobuf\1.1\activemq-protobuf-1.1.jar;D:\soft\repository\commons-net\commons-net\3.5\commons-net-3.5.jar;D:\soft\repository\io\netty\netty-all\4.1.8.Final\netty-all-4.1.8.Final.jar;D:\soft\repository\org\apache\commons\commons-configuration2\2.1.1\commons-configuration2-2.1.1.jar;D:\soft\repository\commons-beanutils\commons-beanutils\1.9.3\commons-beanutils-1.9.3.jar;D:\soft\repository\org\apache\commons\commons-dbcp2\2.1.1\commons-dbcp2-2.1.1.jar;D:\soft\repository\org\mybatis\mybatis\3.4.5\mybatis-3.4.5.jar;D:\soft\repository\org\mybatis\mybatis-spring\1.3.1\mybatis-spring-1.3.1.jar;D:\soft\repository\org\springframework\spring-orm\4.3.10.RELEASE\spring-orm-4.3.10.RELEASE.jar;D:\soft\repository\org\springframework\spring-jdbc\4.3.10.RELEASE\spring-jdbc-4.3.10.RELEASE.jar;D:\soft\repository\mysql\mysql-connector-java\5.1.44\mysql-connector-java-5.1.44.jar;D:\soft\repository\com\google\guava\guava\20.0\guava-20.0.jar;D:\soft\repository\commons-codec\commons-codec\1.8\commons-codec-1.8.jar;D:\soft\repository\commons-io\commons-io\2.5\commons-io-2.5.jar;D:\soft\repository\org\syslog4j\syslog4j\0.9.30\syslog4j-0.9.30.jar;D:\soft\repository\net\sourceforge\jexcelapi\jxl\2.6.12\jxl-2.6.12.jar;D:\soft\repository\javax\mail\mail\1.4.7\mail-1.4.7.jar;D:\soft\repository\javax\activation\activation\1.1\activation-1.1.jar;D:\soft\repository\com\aliyun\aliyun-java-sdk-core\3.2.8\aliyun-java-sdk-core-3.2.8.jar;D:\soft\repository\com\aliyun\aliyun-java-sdk-dysmsapi\1.1.0\aliyun-java-sdk-dysmsapi-1.1.0.jar;D:\soft\repository\org\mongodb\mongo-java-driver\3.8.1\mongo-java-driver-3.8.1.jar;D:\soft\repository\org\springframework\data\spring-data-mongodb\1.10.15.RELEASE\spring-data-mongodb-1.10.15.RELEASE.jar;D:\soft\repository\org\slf4j\jcl-over-slf4j\1.7.25\jcl-over-slf4j-1.7.25.jar;D:\soft\repository\org\springframework\data\spring-data-commons\1.13.15.RELEASE\spring-data-commons-1.13.15.RELEASE.jar;D:\soft\repository\org\apache\httpcomponents\httpcore\4.4.10\httpcore-4.4.10.jar;D:\soft\repository\org\apache\httpcomponents\httpclient\4.5.6\httpclient-4.5.6.jar;D:\IT\ssdxPark\ssdxParkService\base\target\classes;D:\IT\ssdxPark\ssdxParkService\baseImpl\target\classes;D:\soft\repository\com\aliyun\aliyun-java-sdk-push\3.10.0\aliyun-java-sdk-push-3.10.0.jar;D:\IT\ssdxPark\ssdxParkService\smartparkMgr\target\classes;D:\IT\ssdxPark\ssdxParkService\feeMgr\target\classes;D:\IT\ssdxPark\ssdxParkService\smartparkMgrImpl\target\classes;D:\IT\ssdxPark\ssdxParkService\feeMgrImpl\target\classes;D:\soft\repository\net\sf\jasperreports\jasperreports\6.2.2\jasperreports-6.2.2.jar;D:\soft\repository\commons-digester\commons-digester\2.1\commons-digester-2.1.jar;D:\soft\repository\com\lowagie\itext\2.1.7.js5\itext-2.1.7.js5.jar;D:\soft\repository\bouncycastle\bcmail-jdk14\138\bcmail-jdk14-138.jar;D:\soft\repository\bouncycastle\bcprov-jdk14\138\bcprov-jdk14-138.jar;D:\soft\repository\org\bouncycastle\bctsp-jdk14\1.38\bctsp-jdk14-1.38.jar;D:\soft\repository\org\bouncycastle\bcprov-jdk14\1.38\bcprov-jdk14-1.38.jar;D:\soft\repository\org\bouncycastle\bcmail-jdk14\1.38\bcmail-jdk14-1.38.jar;D:\soft\repository\org\jfree\jcommon\1.0.23\jcommon-1.0.23.jar;D:\soft\repository\org\jfree\jfreechart\1.0.19\jfreechart-1.0.19.jar;D:\soft\repository\org\eclipse\jdt\core\compiler\ecj\4.3.1\ecj-4.3.1.jar;D:\soft\repository\org\apache\lucene\lucene-core\4.5.1\lucene-core-4.5.1.jar;D:\soft\repository\org\apache\lucene\lucene-analyzers-common\4.5.1\lucene-analyzers-common-4.5.1.jar;D:\soft\repository\org\apache\lucene\lucene-queryparser\4.5.1\lucene-queryparser-4.5.1.jar;D:\soft\repository\org\apache\lucene\lucene-queries\4.5.1\lucene-queries-4.5.1.jar;D:\soft\repository\org\apache\lucene\lucene-sandbox\4.5.1\lucene-sandbox-4.5.1.jar;D:\soft\repository\jakarta-regexp\jakarta-regexp\1.4\jakarta-regexp-1.4.jar;D:\soft\repository\org\olap4j\olap4j\0.9.7.309-JS-3\olap4j-0.9.7.309-JS-3.jar;D:\soft\repository\com\google\zxing\core\2.3.0\core-2.3.0.jar;D:\soft\repository\com\ibm\icu\icu4j\57.1\icu4j-57.1.jar;D:\soft\repository\org\apache\poi\poi-ooxml\3.8\poi-ooxml-3.8.jar;D:\soft\repository\org\apache\poi\poi\3.8\poi-3.8.jar;D:\soft\repository\org\apache\poi\poi-ooxml-schemas\3.8\poi-ooxml-schemas-3.8.jar;D:\soft\repository\org\apache\xmlbeans\xmlbeans\2.3.0\xmlbeans-2.3.0.jar;D:\soft\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;D:\soft\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;D:\soft\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;D:\soft\repository\cn\jpush\api\jiguang-common\1.0.5\jiguang-common-1.0.5.jar;D:\soft\repository\com\squareup\okhttp3\okhttp\3.3.1\okhttp-3.3.1.jar;D:\soft\repository\com\squareup\okio\okio\1.8.0\okio-1.8.0.jar;D:\soft\repository\com\google\code\gson\gson\2.3\gson-2.3.jar;D:\soft\repository\cn\jpush\api\jpush-client\3.2.3\jpush-client-3.2.3.jar;D:\soft\repository\commons-fileupload\commons-fileupload\1.3.3\commons-fileupload-1.3.3.jar;D:\soft\repository\org\springframework\spring-web\4.3.10.RELEASE\spring-web-4.3.10.RELEASE.jar;D:\soft\repository\org\springframework\spring-aop\4.3.10.RELEASE\spring-aop-4.3.10.RELEASE.jar;D:\soft\repository\org\springframework\spring-beans\4.3.10.RELEASE\spring-beans-4.3.10.RELEASE.jar;D:\soft\repository\org\springframework\spring-core\4.3.10.RELEASE\spring-core-4.3.10.RELEASE.jar;D:\soft\repository\org\springframework\spring-webmvc\4.3.10.RELEASE\spring-webmvc-4.3.10.RELEASE.jar;D:\soft\repository\org\springframework\spring-expression\4.3.10.RELEASE\spring-expression-4.3.10.RELEASE.jar;D:\soft\repository\org\eclipse\jetty\aggregate\jetty-all\9.2.12.v20150709\jetty-all-9.2.12.v20150709.jar;D:\soft\repository\javax\websocket\javax.websocket-api\1.0\javax.websocket-api-1.0.jar;D:\soft\repository\org\eclipse\jetty\jetty-jsp\9.2.12.v20150709\jetty-jsp-9.2.12.v20150709.jar;D:\soft\repository\org\eclipse\jetty\toolchain\jetty-schemas\3.1.M0\jetty-schemas-3.1.M0.jar;D:\soft\repository\org\glassfish\web\javax.servlet.jsp\2.3.2\javax.servlet.jsp-2.3.2.jar;D:\soft\repository\org\eclipse\jetty\orbit\javax.servlet.jsp.jstl\1.2.0.v201105211821\javax.servlet.jsp.jstl-1.2.0.v201105211821.jar;D:\soft\repository\org\glassfish\web\javax.servlet.jsp.jstl\1.2.2\javax.servlet.jsp.jstl-1.2.2.jar;D:\soft\repository\org\glassfish\javax.el\3.0.0\javax.el-3.0.0.jar;D:\soft\repository\org\eclipse\jetty\orbit\org.eclipse.jdt.core\3.8.2.v20130121\org.eclipse.jdt.core-3.8.2.v20130121.jar;D:\soft\repository\com\fasterxml\jackson\core\jackson-core\2.9.1\jackson-core-2.9.1.jar;D:\soft\repository\com\fasterxml\jackson\core\jackson-databind\2.9.1\jackson-databind-2.9.1.jar;D:\soft\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;D:\soft\repository\org\codehaus\jackson\jackson-mapper-asl\1.9.13\jackson-mapper-asl-1.9.13.jar;D:\soft\repository\org\codehaus\jackson\jackson-core-asl\1.9.13\jackson-core-asl-1.9.13.jar;D:\soft\repository\org\springframework\spring-websocket\4.3.10.RELEASE\spring-websocket-4.3.10.RELEASE.jar;D:\soft\repository\org\springframework\spring-messaging\4.3.10.RELEASE\spring-messaging-4.3.10.RELEASE.jar;D:\soft\repository\de\huxhorn\lilith\de.huxhorn.lilith.3rdparty.junique\1.0.4\de.huxhorn.lilith.3rdparty.junique-1.0.4.jar;D:\soft\repository\net\sf\json-lib\json-lib\2.4\json-lib-2.4-jdk15.jar;D:\soft\repository\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;D:\soft\repository\commons-lang\commons-lang\2.5\commons-lang-2.5.jar;D:\soft\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;D:\soft\repository\net\sf\ezmorph\ezmorph\1.0.6\ezmorph-1.0.6.jar;D:\soft\repository\org\apache\cxf\cxf-rt-frontend-jaxws\3.1.7\cxf-rt-frontend-jaxws-3.1.7.jar;D:\soft\repository\xml-resolver\xml-resolver\1.2\xml-resolver-1.2.jar;D:\soft\repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;D:\soft\repository\org\apache\cxf\cxf-core\3.1.7\cxf-core-3.1.7.jar;D:\soft\repository\org\codehaus\woodstox\woodstox-core-asl\4.4.1\woodstox-core-asl-4.4.1.jar;D:\soft\repository\org\codehaus\woodstox\stax2-api\3.1.4\stax2-api-3.1.4.jar;D:\soft\repository\org\apache\ws\xmlschema\xmlschema-core\2.2.1\xmlschema-core-2.2.1.jar;D:\soft\repository\org\apache\cxf\cxf-rt-bindings-soap\3.1.7\cxf-rt-bindings-soap-3.1.7.jar;D:\soft\repository\org\apache\cxf\cxf-rt-wsdl\3.1.7\cxf-rt-wsdl-3.1.7.jar;D:\soft\repository\wsdl4j\wsdl4j\1.6.3\wsdl4j-1.6.3.jar;D:\soft\repository\org\apache\cxf\cxf-rt-databinding-jaxb\3.1.7\cxf-rt-databinding-jaxb-3.1.7.jar;D:\soft\repository\com\sun\xml\bind\jaxb-impl\2.2.11\jaxb-impl-2.2.11.jar;D:\soft\repository\com\sun\xml\bind\jaxb-core\2.2.11\jaxb-core-2.2.11.jar;D:\soft\repository\org\apache\cxf\cxf-rt-bindings-xml\3.1.7\cxf-rt-bindings-xml-3.1.7.jar;D:\soft\repository\org\apache\cxf\cxf-rt-frontend-simple\3.1.7\cxf-rt-frontend-simple-3.1.7.jar;D:\soft\repository\org\apache\cxf\cxf-rt-ws-addr\3.1.7\cxf-rt-ws-addr-3.1.7.jar;D:\soft\repository\org\apache\cxf\cxf-rt-ws-policy\3.1.7\cxf-rt-ws-policy-3.1.7.jar;D:\soft\repository\org\apache\neethi\neethi\3.0.3\neethi-3.0.3.jar;D:\soft\repository\org\apache\cxf\cxf-rt-transports-http\3.1.7\cxf-rt-transports-http-3.1.7.jar;D:\soft\repository\org\aspectj\aspectjrt\1.8.9\aspectjrt-1.8.9.jar;D:\soft\repository\org\aspectj\aspectjtools\1.8.9\aspectjtools-1.8.9.jar;D:\soft\repository\org\aspectj\aspectjweaver\1.7.4\aspectjweaver-1.7.4.jar;D:\IDEA\IDEA\IntelliJIDEA\lib\idea_rt.jar" com.rstc.modules.uemp.webApp.start.Main
Connected to the target VM, address: '127.0.0.1:62832', transport: 'socket'
java.lang.NoClassDefFoundError: javax/servlet/ServletContext
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
	at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
	at java.lang.Class.getMethod0(Class.java:3018)
	at java.lang.Class.getMethod(Class.java:1784)
	at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletContext
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 7 more
Disconnected from the target VM, address: '127.0.0.1:62832', transport: 'socket'
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" 
Process finished with exit code 1

原因:依赖设置为provided,不会被添加到classpath巴拉巴拉,貌似是官方bug

解决方法:
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值