On Tue, Apr 9, 2024 at 1:36 PM 胡桥 <huq...@topvee.com> wrote:
>
> My testing environment:
> Tomcat version: 8.5.90
> Operating System: CentOS6.5
> JDK: 1.7.0_80
>
>
> I compiled JSVC using commons daemon-1.3.4-native src, and then started the 
> Tomcat service through JSVC.
>
>
> Error:
> Cannot find daemon loader org/apache/common/daemon/support/DaemonLoader
> Service exit with a return value of 1
>
>
> But I copied commons daemon.jar from 8.5.88 to replace commons daemon.jar 
> from 8.5.90, and then started successfully!
>
>
> In the end, I found out that the commons daemon.jar in 8.5.90 was actually 
> compiled using Java 8!
>
>
> But when I looked through the version instructions of Tomcat, I found that 
> 8.5. x is compatible with Java 7. And the META-INF/MANIFEST of commons 
> daemon.jar MF also explains how to compile using Java 1.7:
> X-Compile Target JDK: 1.7
>
>
> So, is 8.5.90 really compatible with JDK1.7? Or there is an issue with the 
> compilation of commons daemon.jar.

commons-daemon is a third party dependency, so this compilation issue
is possible ... It seems we haven't double checked this one basically.

All the classes that are compiled from the Tomcat repository are
release targeted at 1.7, and some important dependencies are verified
(like JDT).

BTW, Tomcat 8.5 is now EOL, you should plan to upgrade to Tomcat 9.0.

Rémy

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

Reply via email to