It’s Redhat 9.4 /opt/tomcat . I’m trying to login via web interface . SD ________________________________ From: Stephanie Panah <stephanie.pa...@gmail.com> Sent: Saturday, September 21, 2024 5:14:50 AM To: Tomcat Users List <users@tomcat.apache.org> Subject: Re: Tomcat doesn't allow me to login
hi Shekhar, I do not know if you encountered the same issue that I did. however, I had issues. The secret (if we have the same issue) is to "go into" the apache tomcat directory. just open into c:\program files\apache tomcat\ (whatever it is called) just go into the folder. then try to log in. good luck! https://stackoverflow.com/questions/62764029/unknown-version-of-tomcat-was-<https://stackoverflow.com/questions/62764029/unknown-version-of-tomcat-was-> specified-with-tomcat-9-0-37 stephanie . . On Fri, Sep 20, 2024 at 1:56 PM Shekhar Dhotre <shekhar.dho...@tatacommunications.com.invalid> wrote: > [root@mtthdoped51 ~]# $CATALINA_HOME/bin/startup.sh > > Using CATALINA_BASE: /opt/tomcat/latest > > Using CATALINA_HOME: /opt/tomcat/latest > > Using CATALINA_TMPDIR: /opt/tomcat/latest/temp > > Using JRE_HOME: > /usr/lib/jvm/java-11-openjdk-11.0.24.0.8-2.el9.x86_64 > > Using CLASSPATH: > /opt/tomcat/latest/bin/bootstrap.jar:/opt/tomcat/latest/bin/tomcat-juli.jar > > Using CATALINA_OPTS: > > Tomcat started. > > [ > > > > I even took out below from users.xml > > > > <tomcat-users xmlns=http://tomcat.apache.org/xml > > xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance > > xsi:schemaLocation=http://tomcat.apache.org/xml > tomcat-users.xsd > > version="1.0"> > > > > <role rolename="manager-gui"/> > > <role rolename="manager-script"/> > > <role rolename="admin-gui"/> > > > > <user username="admin" password="admin" > roles="manager-gui,manager-script,admin-gui"/> > > </tomcat-users> > > > > > > Tried all commands > > > > 159 vi /opt/tomcat/apache-tomcat-10.1.30/conf/tomcat-users.xml > > 160 $CATALINA_HOME/bin/shutdown.sh > > 161 $CATALINA_HOME/bin/startup.sh > > 162 vi /opt/tomcat/apache-tomcat-10.1.30/conf/tomcat-users.xml > > 163 vi /opt/tomcat/apache-tomcat-10.1.30/conf/server.xml > > 164 keytool -genkey -alias tomcat -keyalg RSA -keystore > conf/localhost-rsa.jks > > 165 vi /opt/tomcat/apache-tomcat-10.1.30/conf/tomcat-users.xml > > 166 keytool -genkey -alias tomcat -keyalg RSA -keystore > /opt/tomcat/apache-tomcat-10.1.30/conf/localhost-rsa.jks > > 167 find / -name server.xml -print > > 168 vi /opt/config/instance1/conf/server.xml > > 169 $CATALINA_HOME/bin/shutdown.sh > > 170 $CATALINA_HOME/bin/startup.sh > > 171 vi /opt/config/instance1/conf/server.xml > > 172 $CATALINA_HOME/bin/shutdown.sh > > 173 $CATALINA_HOME/bin/startup.sh > > 174 cat /opt/config/instance1/conf/server.xml > > 175 vi /opt/config/instance1/conf/server.xml > > 176 ls -l /opt/tomcat/apache-tomcat-10.1.30/conf/localhost-rsa.jks > > 177 vi /opt/tomcat/apache-tomcat-10.1.30/conf/tomcat-users.xml > > 178 $CATALINA_HOME/bin/shutdown.sh > > 179 $CATALINA_HOME/bin/startup.sh > > 180 cat /opt/tomcat/apache-tomcat-10.1.30/conf/tomcat-users.xml > > 181 export CATALINA_BASE=/opt/tomcat/apache-tomcat-10.1.30 > > 182 cat /opt/tomcat/apache-tomcat-10.1.30/conf/tomcat-users.xml > > 183 vi /opt/tomcat/apache-tomcat-10.1.30/conf/tomcat-users.xml > > 184 $CATALINA_HOME/bin/shutdown.sh > > 185 $CATALINA_HOME/bin/startup.sh > > 186 tail -f $CATALINA_BASE/logs/catalina.out > > 187 find / -name tomcat-users.xml > > 188 vi /opt/config/instance1/conf/tomcat-users.xml > > 189 $CATALINA_HOME/bin/shutdown.sh > > 190 $CATALINA_HOME/bin/startup.sh > > 191 > /opt/tomcat/apache-tomcat-10.1.30/webapps/host-manager/META-INF/context.xml > > 192 vi > /opt/tomcat/apache-tomcat-10.1.30/webapps/host-manager/META-INF/context.xml > > 193 $CATALINA_HOME/bin/shutdown.sh > > 194 $CATALINA_HOME/bin/startup.sh > > 195 tail -f $CATALINA_BASE/logs/catalina.out > > 196 find / -name tomcat-users.xml > > 197 vi /opt/tomcat/apache-tomcat-10.1.30/conf/tomcat-users.xml > > 198 $CATALINA_HOME/bin/shutdown.sh > > 199 $CATALINA_HOME/bin/startup.sh > > 200 find / -name tomcat-users.xml > > 201 vi /opt/config/instance1/conf/tomcat-users.xml > > 202 $CATALINA_HOME/bin/shutdown.sh > > 203 $CATALINA_HOME/bin/startup.sh > > 204 vi /opt/config/instance1/conf/tomcat-users.xml > > 205 vi /opt/tomcat/apache-tomcat-10.1.30/conf/tomcat-users.xml > > 206 $CATALINA_HOME/bin/shutdown.sh > > 207 $CATALINA_HOME/bin/startup.sh > > 208 reboot > > 209 tail -f $CATALINA_BASE/logs/catalina.out > > 210 $CATALINA_HOME/bin/startup.sh > > 211 tail -f $CATALINA_BASE/logs/catalina.out > > 212 history >