Re: Windows 10 - installing tomcat 9.0.84 as a service
Christoph, On 1/9/24 08:05, Christoph Kukulies wrote: I'm trying to install Tomcat-9.0.84 under Windows 10 as a service. I unpacked it under C:\apache-tomcat-9.0.84 and after creating a file setenv.bat (as of the RUNNING.TXT document) I ran: C:\apache-tomcat-9.0.84\bin>set CATALINA_HOME=C:\apache-tomcat-9.0.84" C:\apache-tomcat-9.0.84\bin>tomcat9 //IS [2024-01-09 13:57:22] [warn] [10572] Failed to grant service user 'NT AUTHORITY\LocalService' write permissions to log path 'C:\WINDOWS\system32\LogFiles\Apache' due to error '19: Das Medium ist schreibgesch³tzt.' C:\apache-tomcat-9.0.84\bin> This was done in a CMD Window with administrative rights. It's quite a couple of years back I did a tomcat installation under Windows. Some help appreciated. Thank you. The setenv.bat script is only run under these scenarios: 1. You launch Tomcat with bin\startup.bat or bin\catalina.bat start or bin\catalina.bat run 2. You run bin\service.bat When you run bin\service.bat, the setenv.bat script will be run and any environment settings you have there will be set on the Windows Service if you are /creating/ the service. When the service runs, it will not run bin\setenv.bat. This means if you need to change something in bin\setenv.bat, you'll need to reinstall the service, or you can hand-edit the service using tomcat9 //ES and modify whatever you want -- usually the JVM options. -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Windows 10 - installing tomcat 9.0.84 as a service
Christoph, On 1/9/24 09:36, Christoph Kukulies wrote: Thanks for reading along :) Gotit running now. First off: too old Java Version bin/client or bin/server didn't exist After removing that service using tomcat9 //DS I reinstalled it using service.bat install. C:\apache-tomcat-9.0.84\bin>service.bat install Installing the service 'Tomcat9' ... Using CATALINA_HOME: "C:\apache-tomcat-9.0.84" Using CATALINA_BASE: "C:\apache-tomcat-9.0.84" Using JAVA_HOME: "c:\Program Files\Java\jre-8" Using JRE_HOME: "c:\Program Files\Java\jre-8" Using JVM: "c:\Program Files\Java\jre-8\bin\server\jvm.dll" The service 'Tomcat9' has been installed. Stopping and starting the service using tomcat9w (setting everying to auto and start mode Automatic) finale made it working. I think uninstalling and reinstalling the service is what did it for you. (See my previous message in this thread for why.) -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Problems with cross app uploads (migrating from 9.0.35 to 9.0.84)
After upgrading the machine (brand new VM) from FreeBSD 12.X to 14.0-RELEASE, OpenJDK 8 to OpenJdk 21 and Tomcat 9.0.35 to 9.0.84 (copied the existing server.xml over) I am having problems with a servlet that has worked in the past that uploaded images from one app (which is re-installed on each version thus no perm files in the web app) to an other (to give persistence) i.e. https://machine/specMed/ to https://macine/images/ and the existing images are shown as expected but the servlet silently fails (no errors to browser, catalina.out or anywhere else I can find) and I was careful to make sure the permissions where identical ideas? Some troubleshooting I have tried on our development machine (same versions as above) it seems to work but not in production (the primary/"only" difference between the two I can find is production is https and development is http but the cert from comodo covers the entire machine [no subdomains or aliases in server.xml] and is multidomain). In both cases I set /usr/local/apache-tomcat-9.0/images to be 777 permissions and owned by www:www (same uids/gids on both the new and old production machines). Note both production and test are brand new VM's never used for anything but these apps. -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org