Category : war

I’m having trouble getting my war file to deploy on application start. According to the docs here: The following sample Dockerfile can be used to prepare a custom Payara Server image that deploys the myapplication.war artefact at runtime: FROM payara/server-full COPY myapplication.war $DEPLOY_DIR And to launch the container, simply build and run the image like ..

Read more

I am trying to run a java application I have in .war . I created the following Dockerfile in the same directory as my app. FROM tomcat:8.0 MAINTAINER myname COPY sample.war /usr/local/tomcat/webapps/ CMD chmod +x /usr/local/tomcat/bin/catalina.sh CMD ["catalina.sh", "run"] then I build an image and run a container using these commands docker build -t exampleapplication ..

Read more

Step 1 – Pulled Tomcat 8.0 from DockerHub. Step 2 – Created Dockerfile for copying war from local to tomcat location. Step 3 – While trying to use docker image build, getting error as – time="2021-03-02T20:32:47+05:30" level=error msg="Can’t add file ?C:UsersMEENMISHsourcereposCRA_CloudCRAwebjslibsojv10.0.0resourcesnlssk-SKtimezoneData.js to tar: archive/tar: missed writing 561152 bytes"time="2021-03-02T20:32:47+05:30" level=error msg="Can’t add file ?C:UsersMEENMISHsourcereposCRA_CloudCRAwebjslibsojv10.0.0resourcesnlssl to tar: ..

Read more

Error: Could not find or load main class com.company.endeavour.server.HelloController in Docker container I build my Java 8 app with Gradle and am attempting to use spring boot 2.2.4, I am packaging my app as a .war in a Docker container, I deploy the container to a Kube cluster. I feel like I’ve tried everything and ..

Read more