Category : tomcat

I am try to run the tomcat file server over Docker . But it doesn’t work Exception like this : The main resource set specified [/home/amlogic/coco] is not valid 22-Oct-2021 07:11:29.277 SEVERE [main] org.apache.catalina.startup.Catalina.start The required Server component failed to start so Tomcat is unable to start. org.apache.catalina.LifecycleException: A child container failed during start at ..

Read more

I am try to run the tomcat file server over Docker . But it doesn’t work Exception like this : The main resource set specified [/home/amlogic/coco] is not valid 22-Oct-2021 07:11:29.277 SEVERE [main] org.apache.catalina.startup.Catalina.start The required Server component failed to start so Tomcat is unable to start. org.apache.catalina.LifecycleException: A child container failed during start at ..

Read more

I am deploying a Spring Boot project war to container running tomcat. But it gives 404 for every request. Its on java 8 Dockerfile FROM tomcat:8 RUN ["apt-get", "update"] RUN ["apt-get", "install", "-y", "vim"] COPY target/*.war /usr/local/tomcat/webapps/ EXPOSE 8080 ENTRYPOINT ["catalina.sh","run"] Application.java public class Application extends SpringBootServletInitializer { public static void main(String[] args) { SpringApplication.run(Application.class, ..

Read more

To be honest, some time ago I have found the answer to this problem and solved it. The problem is that I forgot it. I remember I had to generate a single executable jar in the out/artifacts/.. my build from pom.xml : <build> <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.0</version> <executions> <execution> <id>tomcat-run</id> <goals> <goal>exec-war-only</goal> </goals> <phase>package</phase> ..

Read more

I am trying to access ouside ports from the docker container using tomcat. My dockerfile looks like this: FROM tomcat:9.0-alpine # Remove default server configuration RUN rm /usr/local/tomcat/conf/server.xml # Add new server configuration COPY /path/to/conf/server.xml /usr/local/tomcat/conf/server.xml # Export backend port EXPOSE 8080 # Start tomcat server CMD chmod +x /usr/local/tomcat/bin/catalina.sh && catalina.sh run Seems simple. ..

Read more

I have created seperate containers for angular frontend, springboot backend, MySQL db and have put them in same network created by me. All this containers are in Linux machine.I am accessing this Linux machine from my laptop and putting <linux_macgine’s_nane>:portnumber in my laptop browser for acccessing frontend. Portnumber is the on which I have binded ..

Read more

I am trying to log my containered applications via Docker using syslog/rsyslog as logging driver. For this I used the instructions from https://www.commandprompt.com/blog/docker-logging-with-rsyslog/ . For the first container it worked fined. With the second container I get following error message: "ERROR: for tomcat Cannot create container for service tomcat: stat /dev/log/: not a directory". Working ..

Read more