Error while deploying in Tomcat container

Questions and Answers on installation, deployment, management, locking, tranasactions of Servoy Application Server

Error while deploying in Tomcat container

Postby 258.d.852 » Wed Jul 12, 2023 6:11 pm

First, I build a WAR file from servoy platform by following this step

Image

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?
258.d.852
 
Posts: 9
Joined: Wed Jul 12, 2023 1:10 pm

Re: Error while deploying in Tomcat container

Postby mboegem » Thu Jul 13, 2023 10:34 am

What is the version of tomcat you are running on that docker instance?

I know a combination of tomcat v9 and java 17 should run fine.
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image

Partner of Tower - The most powerful Git client for Mac and Windows
User avatar
mboegem
 
Posts: 1724
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Error while deploying in Tomcat container

Postby jcompagner » Thu Jul 13, 2023 11:04 am

can you have a good look at your install? like application_server\lib and/or \drivers?

do you have there somewhere a 0 byte jar? please remove that.

you can also test the WAR itself so look inside and into WEB-INF/lib to see if you have a 0 bytes jar there
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8822
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy Server

Who is online

Users browsing this forum: No registered users and 2 guests