Java Spring mvc项目获取错误无效LOC头

Java Spring mvc项目获取错误无效LOC头,java,spring,spring-mvc,spring-tool-suite,Java,Spring,Spring Mvc,Spring Tool Suite,我正在Liberty profile server上开发spring mvc项目。启动liberty server时出现以下错误 我清理并安装了maven。我删除Liberty并再次配置,并将项目添加到服务器中。仍然得到相同的错误 谢谢 [ERROR ] CWWKZ0002E: An exception occurred while starting the application demo. The exception message was: java.lang.IllegalS

我正在Liberty profile server上开发spring mvc项目。启动liberty server时出现以下错误

我清理并安装了maven。我删除Liberty并再次配置,并将项目添加到服务器中。仍然得到相同的错误

谢谢

    [ERROR   ] CWWKZ0002E: An exception occurred while starting the application demo. The exception message was: java.lang.IllegalStateException: 
com.ibm.wsspi.adaptable.module.UnableToAdaptException: java.util.zip.ZipException: invalid LOC header (bad signature)

通过以下步骤解决了问题

jar文件可能已损坏。我删除了C:\Users[username].m2\repository文件夹的内容,然后执行以下步骤

Maven更新

右键单击project->选择Maven->单击“更新项目”等待完成下载和配置

Clean Maven

右键单击项目->选择运行方式->单击Clean Maven

安装Maven

右键单击project->选择以运行方式运行->单击安装Maven


无效的LOC头错误已解决。

您似乎添加了一些库,这些库已损坏 从本地存储库ie中删除JAR

c:/users/您的电脑名/m2/存储库/搜索您的文件,然后删除


现在在您的子项目clean install上重新构建maven,然后在您的父项目上构建maven

我正在使用spring+liberty,没有任何问题。也许这会有帮助:是的,这很有帮助。通过删除C:\Users[username]\.m2\repository解决了此错误