错误:JAVAVER_LIBDIR / usr / share / java-不存在或不是目录

时间:2019-04-22 11:13:18

标签: spring spring-boot java-8 tomcat7

error: JAVAVER_LIBDIR /usr/share/java- does not exist or is not a directory

在使用最新版本的spring和spring-boot升级项目之后,在将Web应用程序部署到tomcat 7上时出现了错误。早期运行良好。 error: JAVAVER_LIBDIR /usr/share/java- does not exist or is not a directory

检查tomcat状态的命令:ps -eaf | grep tomca

输出:

webuser  29445     1  0 Apr20 ?        00:20:12
/etc/alternatives/jre/bin/java -Djava.library.path=/usr/share/tomcat7/lib -Djava.net.preferIPv4Stack=true -Dhost.name=AD-CXTNTFENG-01 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/opt/webapps/tomcat-notification-engine/conf/logging.properties -Xmx1024m -Xms512m -Dfile.encoding=UTF-8-javaagent:/opt/appdynamics/appserveragent/javaagent.jar -Dappdynamics.agent.tierName=NotifEng -Dappdynamics.agent.nodeName=NotifEng_AD-CXTNTFENG-01 -Dappdynamics.agent.uniqueHostId=i-04a55b1cf328a1049 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=58091 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -classpath :/usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar:/usr/bin/build-classpath:

error: JAVAVER_LIBDIR /usr/share/java- does not exist or is not a directory -Dcatalina.base=/opt/webapps/tomcat-notification-engine -Dcatalina.home=/usr/share/tomcat7 -Djava.endorsed.dirs= -Djava.io.tmpdir=/opt/webapps/tomcat-notification-engine/temp -Djava.util.logging.config.file=/opt/webapps/tomcat-notification-engine/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start

Actual: This error.
Expected: deployment without error

0 个答案:

没有答案