[ https://issues.apache.org/jira/browse/ARTEMIS-2780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17162604#comment-17162604 ]
Stefan Buzoianu commented on ARTEMIS-2780: ------------------------------------------ Thanks [~brusdev] for clarifications about web tmp folder. To move forward in this issue we commented this section from internalStop() method -> [https://github.com/apache/activemq-artemis/blob/master/artemis-web/src/main/java/org/apache/activemq/artemis/component/WebServerComponent.java#L274] {code:java} if (webContexts != null) { cleanupWebTemporaryFiles(webContexts); webContexts.clear(); } {code} >From the tests made with this modification, the cleanup procedure performed at >the beginning solves the problem of cleaning the web tmp folder and, at least >until this moment, after two days of testing, the deletion of the jars from >the lib folder is no longer reproduced. The question I am asking at the moment is: are there any implications on Windows machines when I remove the clean procedure from internalStop() method? Is the idea of doing a cleanup acceptable only when starting at Artemis? > Artemis Jar Files are automatically removed after abnormal system shutdown > -------------------------------------------------------------------------- > > Key: ARTEMIS-2780 > URL: https://issues.apache.org/jira/browse/ARTEMIS-2780 > Project: ActiveMQ Artemis > Issue Type: Bug > Components: Web Console > Affects Versions: 2.11.0 > Environment: Artemis is configured to always use a personally built > OPEN JRE java (not using the default one) > * Artemis 2.11.0. > * Windows 10 > * OpenJDK 1.8.0_66 (OPEN_JRE - C: \ work \ open-jre \) > * Oracle JDK 1.9.0_191 (Environment variable JAVA_HOME - C: \ Program Files > \ Java \ jdk1.8.0_191 > > Reporter: Stefan Buzoianu > Priority: Critical > Attachments: ARTEMIS-2780.png, artemis-service.xml, artemis.cmd > > > If you kill the server without invoking a normal shutdown, the contents of > the lib folder (ArtemisRootDir/lib) are removed. This makes Artemis Brokers > unable to start. > My suspicion is that there is a certain incompatibility between my local > Windows resources and the way ActiveMQ Artemis is configured. Can you check > the attached files please? > > I found this > [https://github.com/apache/activemq-artemis/blob/a68381904f658dfb3765710ae63f7c79e038b1ed/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/SpawnedVMSupport.java#L192] > Which apparently makes the java path to be set to java_home > {code:java} > final String javaPath = Paths.get(System.getProperty("java.home"), "bin", > "java").toAbsolutePath().toString();{code} > But in my case, I actually start the application using Open Jre. (Please > check Environment details) > > > I found some similarities in these issues > https://issues.apache.org/jira/browse/ARTEMIS-2596 > https://issues.apache.org/jira/browse/ARTEMIS-1058 > > > > -- This message was sent by Atlassian Jira (v8.3.4#803005)