Error while deploying in Tomcat container
Posted: Wed Jul 12, 2023 6:11 pm
First, I build a WAR file from servoy platform by following this step
Then, I start up a Tomcat container by executing
I copied the WAR file from the host to the container by executing
Unfortunately, it is not successful and I got the error in log file
How can I overcome this issue?
Then, I start up a Tomcat container by executing
- Code: Select all
docker container run -it -d --name tomcat -p 8081:8080 tomcat:jre17-temurin
I copied the WAR file from the host to the container by executing
- Code: Select all
docker cp my_war_file.war tomcat:/usr/local/tomcat/webapps
Unfortunately, it is not successful and I got the error in log file
- Code: Select all
11-Jul-2023 06:59:28.739 SEVERE [Catalina-utility-1] org.apache.catalina.startup.ContextConfig.beforeStart Exception fixing docBase for context [/my_servoy_app]
java.util.zip.ZipException: zip END header not found
at java.base/java.util.zip.ZipFile$Source.findEND(Unknown Source)
at java.base/java.util.zip.ZipFile$Source.initCEN(Unknown Source)
at java.base/java.util.zip.ZipFile$Source.<init>(Unknown Source)
...
How can I overcome this issue?