Failed to start component [StandardEngine[Catalina].StandardHost[localhost]

后端 未结 2 987
暗喜
暗喜 2021-01-14 09:30

When trying to start tomcat I get this error. What could be the cause of this?

I\'ve go through a bunch of similar posts and I can\'t find anything.

I am usi

相关标签:
2条回答
  • 2021-01-14 09:55

    Your jars are completely messed up:

    1. Always preserve versions consistency (eg. not core 2.1.8.1 and plugins 2.2.3)
    2. Always pick up the latest version (eg. 2.3.x or, if you can break retrocompatibility, 2.5.x)
    3. Always include only the Struts2 plugins you know and use, only the needed ones. Remove all the others.
    4. Always avoid including two versions of the same libraries, eg. poi 3.7 and poi 3.8. Is this a joke ?
    5. The first versions of Tomcat 8.0 had known problems with Struts2, you should upgrade to the latest (eg. 8.0.39) or, even better, to 8.5.
    0 讨论(0)
  • 2021-01-14 10:02

    Tomcat indeed has problems (See bug #60087) with verifying jar file signatures.

    Solutions:

    • Update Apache Tomcat version.

    • You might verify signature of files manually, if you read Verifying Signed JAR Files, before deploying app to the Tomcat server.

    • You might also have corrupted jar files downloaded. You should always download from known sources or repositories.

    • You can also download along with jar file the digest signature files and verify contents of the file with OS utility.

    • Don't use malicious sites hosted jar files for your download.

    • Use antivirus to scan for viruses inside jar and verify signature. Some antivirus's have bugs and you should not use its result report for final decision about file contents. E.g. Error: "Invalid sha1 signature file digest for" when verifying a Jar file.

    0 讨论(0)
提交回复
热议问题