我们最近将系统从 oracle jdk 迁移到 open-jdk。当我尝试部署我的战争应用程序时,同样面临一些问题。
C:\Softwares\apache-tomcat-8.0.24\bin\catalina.bat run [2019-06-14 05:19:12,449] Artifact expresso:war exploded: Waiting for server connection to start artifact deployment... 使用 CATALINA_BASE :“C:\Users\Rohit.Bansal.IntelliJIdea2019.1\system\tomcat\Unnamed_expresso_3”使用 CATALINA_HOME:“C:\Softwares\apache-tomcat-8.0.24”使用 CATALINA_TMPDIR:“C:\Users\Rohit.Bansal .IntelliJIdea2019.1\system\tomcat\Unnamed_expresso_3\temp" 使用 JRE_HOME:"C:\Program Files\AdoptOpenJDK\jdk-8.0.212.04-openj9" 使用 CLASSPATH:"C:\Softwares\apache-tomcat-8.0.24\ bin\bootstrap.jar;C:\Softwares\apache-tomcat-8.0.24\bin\tomcat-juli.jar" port = 81 错误:必须限制密码文件读取权限:
C:\Users\Rohit.Bansal\.IntelliJIdea2019.1\system\tomcat\Unnamed_expresso_3\jmxremote.password
sun.management.AgentConfigurationError
at sun.management.jmxremote.ConnectorBootstrap.checkPasswordFile(ConnectorBootstrap.java:577)
at sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:426)
at sun.management.Agent.startAgent(Agent.java:262)
at sun.management.Agent.startAgent(Agent.java:452)
at java.lang.System.startSNMPAgent(Native Method)
at java.lang.Thread.completeInitialization(Thread.java:168)
at java.lang.J9VMInternals.completeInitialization(J9VMInternals.java:74)
Exception in thread "main" java/lang/RuntimeException: sun.management.AgentConfigurationError
at sun/management/Agent.error (Agent.java:526)
at sun/management/Agent.startAgent (Agent.java:269)
at sun/management/Agent.startAgent (Agent.java:452)
at java/lang/System.startSNMPAgent (NativeMethod:4294967295)
at java/lang/Thread.completeInitialization (Thread.java:168)
at java/lang/J9VMInternals.completeInitialization (J9VMInternals.java:74)
Disconnected from server