Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Boot tomcat-embed-core-9.0.21.jar: zip file is empty

I have simple Springboot application, but whenever I try to run the app I get following error, I have tried mvn clean install, also tried reimports and Generate Sources and Update Folder options

/Users/a0r00rf/Downloads/SpringStartedCRUD/demoCRUD/src/main/java/com/abhimanyu/demoCRUD/com/abhimanyu/demoCRUD/com/abhimanyu/demoCRUD/services/EmployeeServiceImpl.java
Error:(1, 1) java: cannot access com.abhimanyu.demoCRUD.com.abhimanyu.demoCRUD.com.abhimanyu.demoCRUD.services
Error reading file /Users/a0r00rf/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.21/tomcat-embed-core-9.0.21.jar: zip file is empty
/Users/a0r00rf/Downloads/SpringStartedCRUD/demoCRUD/src/main/java/com/abhimanyu/demoCRUD/com/abhimanyu/demoCRUD/com/abhimanyu/demoCRUD/services/EmployeeService.java
Error:(1, 1) java: cannot access com.abhimanyu.demoCRUD.com.abhimanyu.demoCRUD.com.abhimanyu.demoCRUD
Error reading file /Users/a0r00rf/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.21/tomcat-embed-core-9.0.21.jar: zip file is empty
Error:(7, 8) java: cannot access java.lang
Error reading file /Users/a0r00rf/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.21/tomcat-embed-core-9.0.21.jar: zip file is empty ```
like image 802
Abhimanyu Avatar asked Jul 22 '19 16:07

Abhimanyu


1 Answers

Find Tomcat under .m2/repository, remove it and mvn install again.

like image 180
Sung.P Avatar answered Oct 17 '22 10:10

Sung.P