Tag: java

Java Spring Hibernate application runs on local, but not in aws's ecs docker

Dear Java & Docker Masters, Have you encounter issue that pulls out your hair? Try this: I have a Java Spring Hibernate web application that able to run successfully on my local that build via Gradle. IT is compile using Oracle JDK 1.8.0_101. It runs under Tomcat 7.0.72 (and tomcat runs Open on JDK 1.8.0_102). […]

Docker /var/lib/docker/devicemapper/devicemapper using 2.7GB

I am a developer in codiva online ide. Every time the user runs a java program, we start a new container. We use devicemapper storage driver because that is the only way we were able to set an upper limit on the container size. After a few months of usage, we are seeing that the […]

Connecting to ActiveMQ Artemis Docker Container with Core API

I am attempting to use the ActiveMQ Artemis Core API to connect to ActiveMQ Artemis running in a docker container. I am using the following code to attempt the connection. Map<String,Object> connectionParams = new HashMap<String, Object>(); connectionParams.put(TransportConstants.PORT_PROP_NAME, “61616”); connectionParams.put(TransportConstants.HOST_PROP_NAME, “localhost”); TransportConfiguration tc = new TransportConfiguration(NettyConnectorFactory.class.getName(),connectionParams); ServerLocator locator = ActiveMQClient.createServerLocatorWithoutHA(tc); ClientSessionFactory queueFactory = locator.createSessionFactory(); Upon running […]

How to debug java in maven plug with angular 2, tomee in docker

I have a project with 2 maven plugin. Plugin is in java. Another Plugin is angular2. Over these 2 maven plugins is docker. In docker container, tomee and mysql runs. I want to debug java with the front-end which means by hitting http://localhost:8080/mywebapp , the system should stop at the break point I set in […]

Continuous integration – deploying only changed components

I have the following components in java, each is a separate maven module: Eureka server Zuul proxy Microservice #1 Each of these components is a separate Docker image and they are sharing a same Git repository. Also Jenkins is available. My question is it possible when changes are made a single component to only rebuild […]

Upgrade jdk version of Tomcat docker container to 1.8

i’ve a web application on windows running from eclipse, with xampp for apache and mysql. It use jdk v 1.8. Now, i want to deploy in inside a docker tomcat container. I’ve created a container from tomcat official image… but i’ve saw that its jdk version is 1.7 … so there are some error when […]

Docker: what are negative impacts of running container with memory limit enabled and memory overcommit disabled?

In my environment, I am going to disable the memory overcommit (vm.overcommit=2). This disables Linux OOMKiller also. The reason is that I run Java apps in docker containers with properly memory size limitation and I want to see them failing with OOMError (and writing heap dump) instead of just killed silently by linux OOMKiller. Iam […]

can't connect to spotify kafka container, basic connection problems

stumbling at the basics with docker and kafka, cant get a client connection what i’ve done so far 1) installed docker windows on windows 10. 2) open kitematic, and searched for kafka, and selected the spotify kafka (wurstmeister image failed to start). 3) container fires up and i can see the image running in the […]

Jersey Grizzly HTTP Server shutdown inside container docker

I am trying to execute a Grizzly HTTP Server inside a container. My problem is that when I am running the container (using docker-compose) the container shuts down after a few seconds. Here is my server Dockerfile: FROM alpine:3.5 MAINTAINER Maybe One <maybe@maybe.com> # Java Version and other ENV ENV JAVA_VERSION_MAJOR=8 \ JAVA_VERSION_MINOR=102 \ JAVA_VERSION_BUILD=14 […]

Case sensitivity issue in Spring application

I have been given a Java Spring application to containerize. I am using a Tomcat8/Java8 base image. When it boots, it fails to deploy with the following error: Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name ‘controller3P’ for bean class [com.******.******.brand3P.controller.Controller3P] conflicts with existing, non-compatible bean definition of same name and class [com.******.******.Brand3P.controller.Controller3P] The problem here seems […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.