jar:ModulePackages 类文件属性中缺少包 org.apache.catalina.ssi [英] jar: Package org.apache.catalina.ssi missing from ModulePackages class file attribute

查看:32
本文介绍了jar:ModulePackages 类文件属性中缺少包 org.apache.catalina.ssi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将我的 tomcat 版本 9 更改为 8,但是当我编写 jar uf ../catalina.jar org/apache/catalina/util/ServerInfo.properties 时,它给了我以下错误

I changed my tomcat version 9 to 8 but when I wrote jar uf ../catalina.jar org/apache/catalina/util/ServerInfo.properties it gave me the following error

jar:ModulePackages 类中缺少包 org.apache.catalina.ssi文件属性

jar: Package org.apache.catalina.ssi missing from ModulePackages class file attribute

我该如何解决这个问题?

How can I solve this issue?

推荐答案

遇到了同样的问题.从apache 9.0.16升级到9.0.41,想删除服务器版本/信息,编辑ServerInfo.properties,什么时候到jar uf ../catalina.jar org/apache/catalina/util/ServerInfo.properties和你一样的错误.

Had the same issue. Upgraded from apache 9.0.16 to 9.0.41, wanted to remove server version/infos, edited ServerInfo.properties, and when time came to jar uf ../catalina.jar org/apache/catalina/util/ServerInfo.properties got the same error than you.

我想我找到了原因:我在 9.0.16 和 9.0.41 上都打开了 catalina.jar,瞧:org/apache/catalina/中没有 9.0.41 的 ssi然而 MANIFEST.MF 仍然包含它,以及 module-info.class

I think I found the why : I opened catalina.jar both on 9.0.16 and 9.0.41, and lo and behold : there is no ssi in org/apache/catalina/ for 9.0.41 Yet the MANIFEST.MF still includes it, as well as the module-info.class

从阅读 Tomcat 更新日志来看,这似乎发生在 tomcat 9.0.30 上:将服务器端包含 (SSI) 模块移动到单独的 JAR 库中.(舒尔茨)(查看lib目录,现在好像是catalina-ssi.jar)

From reading Tomcat changelog, it looks like this happened with tomcat 9.0.30 : Moved server-side include (SSI) module into a separate JAR library. (schultz) (looking in the lib directory, it seems like it is catalina-ssi.jar now)

不确定这有多干净,但我通过用 7zip 打开 catalina.jar,从那里修改 ServerInfo.properties,保存,重新启动 Tomcat,解决了这个问题.

Not sure how clean this is, but I went around the problem by opening catalina.jar with 7zip, modify the ServerInfo.properties from there, saved, restarted Tomcat, and it worked.

这篇关于jar:ModulePackages 类文件属性中缺少包 org.apache.catalina.ssi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆