On Tue, Sep 16, 2025 at 2:47 PM Christopher Schultz
<[email protected]> wrote:
>
> Hello,
>
> On 9/16/25 2:29 PM, A Name wrote:
> > We've been running tomcat9 on linux (and 8 and 7 etc.) for years.  I stood
> > up a new server for tomcat 10 and pulled 10.1.44.
> >
> > I built the tomcat.service in /etc/systemd/system
> >
> > [Unit]Description=Tomcat - instance %iAfter=syslog.target network.target
> > [Service]Type=forking
> > User=tomcatGroup=tomcat
> > WorkingDirectory=/var/tomcat/%i
> > Environment="JAVA_HOME=/usr/lib/jvm/jre/"Environment="JAVA_OPTS=-Djava.security.egd=file:///dev/urandom"
> > Environment="CATALINA_PID=/usr/share/tomcat/temp/tomcat.pid"Environment="CATALINA_BASE=/usr/share/tomcat"Environment="CATALINA_HOME=/usr/share/tomcat"Environment="CATALINA_OPTS=-Xms512M
> > -Xmx1024M -server -XX:+UseParallelGC"
> > ExecStart=/usr/share/tomcat/bin/startup.shExecStop=/usr/share/tomcat/bin/shutdown.sh
> > #RestartSec=10#Restart=always
> > [Install]WantedBy=multi-user.target
> >
> > When I start up, I see VersionLoggerListener.log CATALINA_BASE:
> > /usr/share/tomcat-10.1.44
> >
> > But that's not what is set in the environment variable in the 
> > tomcat.service.
>
> It looks like maybe your service file was copy/pasted with some
> mangling. Can you try again? What I see is a bunch of Environment= lines
> smashed together. Are they showing that way in your actual file?
>
I double checked the actual file - they are individual lines.  I did
cut & paste, but have seen the oddness from those cuts & pastes, so I
made sure they are individual.  (and did it again when you asked...)

> > There's no setenv.sh
> >
> > I've searched everything in bin and in conf - nothing sets the
> > tomcat-10.1.44 value.
> >
> > What stupid thing am I missing?
> Is /usr/share/tomcat a symlink?
>
Yes it is a symlink.  I started this last week and slept.  so that's good.

Nevermind...  the fundamental problem was DocBase context in
server.xml was not named as the war file is.

Fun with new configs.  Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to