n 28/09/2023 00:22, Christopher Bland wrote:
Hi Everyone,

I’m making progress.  I started from scratch again adding pieces back one by 
one.  It seems like I am seeing the following errors with my configuration

Could not load Logmanager "org.apache.logging.log4j.jul.LogManager"
java.lang.ClassNotFoundException: org.apache.logging.log4j.jul.LogManager

I came across documentation saying I need tomcat-juli-adapters.jar but cannot 
find it for Tomcat v10.  I am also seeing

That JAR is not provided with Tomcat 10. It was for use with log4j 1.x which is now unsupported. If you want to use log4j for Tomcat's internal logging you'll need to use log4j 2.x with the JUL adapter.

INFO: The Apache Tomcat Native library which allows using OpenSSL was not found 
on the java.library.path: 
[/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib]

That means that the OpenSSL implementation won't be available for TLS. Only JSSE will be available. If you don't want/need to use OpenSSL then you can ignore this informational message. If you want to stop the message appearing, removing (or comment out) the AprLifecycleListener in server.xml

Mark



Please advise,

-Chris

From: Christopher Bland <ch...@fdu.edu>
Date: Wednesday, September 27, 2023 at 3:19 PM
To: Tomcat Users List <users@tomcat.apache.org>
Subject: Re: [External]Re: Tomcat 10 on RHEL 8 with Java 17
Hi Thomas,

I didn’t post those checks.  I ran

ps -ef | egrep -I ‘tomc|java’

as well as

netstat -tlpn

I did not see any indication that Tomcat had started.

@Stephanie

Hi Stephanie,

I checked the ownership and permissions plus ran chown -R tomcat:tomcat 
/usr/local/tomcat

-Chris

From: Thomas Hoffmann (Speed4Trade GmbH) 
<thomas.hoffm...@speed4trade.com.INVALID>
Date: Wednesday, September 27, 2023 at 2:25 PM
To: Tomcat Users List <users@tomcat.apache.org>
Subject: AW: [External]Re: Tomcat 10 on RHEL 8 with Java 17
Hi Chris,

-----Ursprüngliche Nachricht-----
Von: Christopher Bland <ch...@fdu.edu>
Gesendet: Mittwoch, 27. September 2023 19:19
An: Tomcat Users List <users@tomcat.apache.org>
Betreff: Re: [External]Re: Tomcat 10 on RHEL 8 with Java 17

Hi Chris,

I didn’t get the error message.  Tomcat still isn’t starting

# ./catalina.sh run
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME:        /usr/lib/jvm/java-17-openjdk-17.0.8.0.7-2.el8.x86_64
Using CLASSPATH:
/usr/local/tomcat/bin/*:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomc
at/bin/tomcat-juli.jar
Using CATALINA_OPTS:   -XX:+UseG1GC -Xmx3000m

# ps -ef | grep tomc
root      104975  104815  0 13:08 pts/0    00:00:00 grep --color=auto tomc

You grep for tomcat. The file starts a java-process. Maybe it doesn’t catch the 
right process.
Could you check whether java processes are running?

Or check "netstat -tulpen" if something is listening on the specified port 
(according to server.xml).


@Darryl

Hi Darryl,

Just checked, permissions look correct

# ls -ld /var/log/tomcat/ /usr/local/tomcat/logs/ drwxr-x---. 2 tomcat tomcat
26 Sep 26 20:14 /usr/local/tomcat/logs/ drwxr-xr-x. 2 tomcat tomcat  6 Sep 26
19:48 /var/log/tomcat/


-Chris


From: Darryl Baker <darryl.ba...@northwestern.edu>
Date: Wednesday, September 27, 2023 at 12:59 PM
To: Tomcat Users List <users@tomcat.apache.org>
Subject: [External]Re: Tomcat 10 on RHEL 8 with Java 17 [You don't often get
email from darryl.ba...@northwestern.edu. Learn why this is important at
https://aka.ms/LearnAboutSenderIdentification ]

Chris,
         With no logs at all check the permissions on the log directories and 
make
sure that the user Tomcat is running as has write permissions there.  This
sounds very much like what I ran into my first time setting up Tomcat from
scratch.

Darryl Baker, GSEC, GCLD (he/him/his)
Sr. System Administrator
Distributed Application Platform Services Northwestern University 4th Floor
2020 Ridge Avenue
Evanston, IL 60208-0801
darryl.ba...@northwestern.edu <mailto:darryl.ba...@northwestern.edu>
(847) 467-6674 <tel:+18474676674>




On 9/27/23, 9:31 AM, "Christopher Bland" <ch...@fdu.edu
<mailto:ch...@fdu.edu>> wrote:


Hi All,


I just deployed Tomcat v10.1.13 on a new machine. When I start Tomcat it
says it has started but I don’t see the daemon running and I don’t have any
logs. I tried running Catalina.sh directly.


# ./catalina.sh start
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME:
/usr/lib/jvm/java-17-openjdk-17.0.8.0.7-2.el8.x86_64
Using CLASSPATH:
/usr/local/tomcat/bin/*:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomc
at/bin/tomcat-juli.jar
Using CATALINA_OPTS: -XX:+UseG1GC -Xmx3000m Tomcat started.


Not running – No Daemon + No Logs


# ./catalina.sh debug
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JAVA_HOME:
/usr/lib/jvm/java-17-openjdk-17.0.8.0.7-2.el8.x86_64
Using CLASSPATH:
/usr/local/tomcat/bin/*:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomc
at/bin/tomcat-juli.jar
Using CATALINA_OPTS: -XX:+UseG1GC -Xmx3000m invalid option: --add-
opens=java.base/java.lang=ALL-UNNAMED


Usage: jdb <options> <class> <arguments>


where options include:


There are several of the --add-opens statements that cause startup to fail in
catalina.sh


# Add the module start-up parameters required by Tomcat
JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.lang=ALL-
UNNAMED"
JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.io=ALL-UNNAMED"
JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.util=ALL-
UNNAMED"
JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.util.concurrent=ALL-
UNNAMED"
JAVA_OPTS="$JAVA_OPTS --add-opens=java.rmi/sun.rmi.transport=ALL-
UNNAMED"




Not sure what to do.


-Chris




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to