sách gpt4 ai đã đi

java - (CẢNH BÁO) Không quét được JAR (LỖI) Không xử lý được JAR

In lại 作者:塔克拉玛干 更新时间:2023-11-02 19:27:33 29 4
mua khóa gpt4 Nike

我在 tomcat 上运行并由 maven 编译的 Web 应用程序给出了以下警告和错误。我可以在本地存储库中看到所有 JAR,但有人可以帮忙吗。

WARNING: Failed to scan JAR [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/F_Quote-1.0-SNAPSHOT/WEB-INF/lib/spring-webflow-2.4.0.BUILD-20130620.194537-39.jar] from WEB-INF/lib
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
................


WARNING: Failed to scan JAR [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/F_Quote-1.0-SNAPSHOT/WEB-INF/lib/spring-binding-2.4.0.BUILD-20130620.194537-39.jar] from WEB-INF/lib
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(Unknown Source)
at java.util.zip.ZipFile.(Unknown Sour
...........

WARNING: Failed to scan JAR [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/F_Quote-1.0-SNAPSHOT/WEB-INF/lib/spring-js-resources-2.4.0.BUILD-20130620.194537-39.jar] from WEB-INF/lib
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(Unknown Sour
.......

WARNING: Failed to scan JAR [file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/F_Quote-1.0-SNAPSHOT/WEB-INF/lib/spring-js-2.4.0.BUILD-20130620.194537-39.jar] from WEB-INF/lib
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(Unknown Sour
........

SEVERE: Failed to process JAR found at URL [jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/F_Quote-1.0-SNAPSHOT/WEB-INF/lib/spring-js-resources-2.4.0.BUILD-20130620.194537-39.jar!/] for ServletContainerInitializers for context with name [/F_Quote-1.0-SNAPSHOT]
Oct 24, 2013 2:26:33 PM org.apache.catalina.startup.ContextConfig configureStart
SEVERE: Marking this application unavailable due to previous error(s)
Oct 24, 2013 2:26:33 PM org.apache.catalina.startup.TldConfig tldScanJar
WARNING: Failed to process JAR [jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/F_Quote-1.0-SNAPSHOT/WEB-INF/lib/spring-webflow-2.4.0.BUILD-20130620.194537-39.jar!/] for TLD files

这是我的 pom.xml 文件。在我的本地存储库中,我可以看到所有据说丢失的 JARS。但是在我的 eclipse 中,当我扩展 Maven 存储库时,丢失的 JAR 中什么也没有。



xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
com.farchis
F_Quote
1.0-SNAPSHOT
war
Farchis Estimator



prime-repo
PrimeFaces Maven Repository
http://repository.primefaces.org


org.springsource.maven.snapshot
SpringSource Maven Central-compatible Snapshot Repository
http://maven.springframework.org/snapshot






org.hibernate
hibernate-core
4.2.6.Final



commons-fileupload
commons-fileupload
1.3



org.hibernate
hibernate-validator
5.0.1.Final


junit
junit
4.8.2
test




org.springframework.webflow
spring-webflow
2.4.0.BUILD-SNAPSHOT


org.springframework
spring-orm
3.2.4.RELEASE


org.springframework
spring-web
3.2.3.RELEASE


org.springframework.webflow
spring-faces
2.3.1.RELEASE




org.springframework.security
spring-security-web
3.1.4.RELEASE


org.springframework.security
spring-security-config
3.1.4.RELEASE


org.springframework
spring-tx
3.2.4.RELEASE



com.oracle
ojdbc14
10.2.0.1.0


log4j
log4j
1.2.17




com.sun.facelets
jsf-facelets
1.1.14


com.sun.faces
jsf-impl
2.2.3


com.sun.faces
jsf-api
2.2.3



javax.servlet
javax.servlet-api
3.1.0
provided






commons-dbcp
commons-dbcp
20030825.184428


org.slf4j
slf4j-log4j12
1.7.5


xml-apis
xml-apis
2.0.2


org.primefaces
primefaces
3.5


cglib
cglib
3.0
thời gian chạy


org.hibernate
hibernate-entitymanager
4.2.6.Final




1 Câu trả lời

我也有这个问题,但是删除 jar 文件不是一个选项。无法处理的jar文件是运行服务器需要的tomcat jar文件。但是,在阅读了 OP 中的评论后,我尝试将 jar 文件从 lib 移动到临时位置,尝试启动 tomcat 并看到预期的错误消息,然后将文件复制回 lib。这奏效了。我不知道为什么。

关于java - (警告)扫描 JAR 失败(错误)处理 JAR 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19566381/

29 4 0
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com