Hi Folks Sometimes we get strange errors after deployments to our test server. We just "solved" some weirdness by manually cleaning out the TC temp folder(s) - again.
Googling confirms what I thought about the TC work versus temp folder: * "work stores compiled JSPs and other assets". * "temp is used to store files created using the Java File API for creating temporary files". Looking in our TC temp folder, I see subfolders that match all the webapps (some names changed to protect the not-so-innocent): * 0-app1 * 1-app2 * 2-app3 * 3-app4 * 4-docs * 5-manager * 6-trap Looking in a subfolder, like temp/3-app4, it appears to be an exact copy of everything in the webapps/app4 folder, which is just the extracted app4.war file. (The webapps folder has a copy of app4.war.) The temp/app4 folder does not seem to contain temporary files, like output files for Excel reports, etc. Same for the other subfolders. Is that normal? Some technical specifics: * TC 8.5.63 * Java 1.8.0_291 * AWS EC2 instance. * Windows Server 2016. * Instance started as Windows Service. * -Dcatalina.home=D:\Tomcat8_1 * -Dcatalina.base=D:\Tomcat8_1 * -Djava.io.tmpdir=D:\Tomcat8_1\temp * There are other TC instances on the same server. * Each TC instance has multiple apps. I see references to the temp folder in tomcat8-stdout.x.log Below are some excerpts. Why is it trying to access files in the temp subfolder instead of the webapps subfolder? (Looks like I have some app debugging to do?) * 2021-05-05 07:03:38,383 DEBUG [localhost-startStop-1] (?:?) - Attempting to obtain an input stream to file:/D:/Tomcat8_1/temp/0-app1/WEB-INF/classes/action.properties. * 2021-05-05 07:04:52,426 localhost-startStop-1 DEBUG Apache Log4j Core 2.12.1 initializing configuration XmlConfiguration[location=D:\Tomcat8_1\temp\1-app2\WEB-INF\classes\log4j2.xml] * 07:04:53.990 [localhost-startStop-1] DEBUG org.springframework.context.annotation.ClassPathBeanDefinitionScanner - Identified candidate component class: file [D:\Tomcat8_1\temp\1-app2\WEB-INF\classes\app\HelloWorld.class] * 2021-05-05 07:05:10,007 DEBUG [localhost-startStop-1] (?:?) - Attempting to obtain an input stream to file:/D:/Tomcat8_1/temp/2-app3/WEB-INF/classes/action.properties. -- Cris Berneburg CACI Senior Software Engineer ________________________________ This electronic message contains information from CACI International Inc or subsidiary companies, which may be company sensitive, proprietary, privileged or otherwise protected from disclosure. The information is intended to be used solely by the recipient(s) named above. If you are not an intended recipient, be aware that any review, disclosure, copying, distribution or use of this transmission or its contents is prohibited. If you have received this transmission in error, please notify the sender immediately.