Tag: java

Docker container start error

canerapp: image: tomcat ports: – “8000:8000” this is my compose.yml. when i run to up caner@vegan:~/IdeaProjects/homework$ docker-compose up Creating homework_canerapp_1 Attaching to homework_canerapp_1 canerapp_1 | 31-Aug-2016 07:31:53.362 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.36 canerapp_1 | 31-Aug-2016 07:31:53.363 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jun 9 2016 13:55:50 UTC canerapp_1 | 31-Aug-2016 07:31:53.364 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log […]

Dockered Play app gives IllegalAccessError: tried to access method com.google.common.collect.MapMaker.makeComputingMap

I recently posted a question about failed downloads in running a Docker play-java application. It has since been resolved by adding the particular missing dependency sisu-guice-3.1.0 in the local maven repo and mounting .m2 to the docker container. Now the application runs very well and properly starts netty. However, problem comes when I launch the […]

How to run jar file using docker file in docker container

I write the docker file for run the jar file and it does not create the log file for see the console below is my docker file From ubuntu RUN apt-get update && \ apt-get upgrade -y && \ apt-get install -y software-properties-common && \ add-apt-repository ppa:webupd8team/java -y && \ apt-get update && \ echo […]

Update Docker image and container from Jenkins

I am quite new to Jenkins and Docker so I am stuck with trying to make them work together. What I want is to do next steps: Build my project war-file on Jenkins (Done) Update Docker image and container. In my case I want to stop running container (Tomcat on it), change war-file to the […]

java.net.UnknownHostException in pid 1 for address resolved by kube-dns

I am receiving an java.net.UnknownHostException: postgres-service on a machine where I can ping postgres-service on the command line. This is in the context of Kubernetes (more specifically GKE) services and Docker images. Could it be that Java requires additional packages (in comparison to ping) to be installed before it can resolve symbolic IP addresses such […]

Run specific configuration of WildFly Jboss on Docker

I work with JBoss AS 7. Today I decided to run the same server configuration on WildFly JBoss using Docker. So I just would like to start server using specific standalone.xml. I am asking for road map. I already have Installed docker and wildfly – there are work all right. Script that I run against […]

jax-rs client is not creating jax-rs cookie

Hi i have two separate docker container running. one container runs an application which has the following rest-resource @GET @Path(“/jaxrsSaveCookie”) @Produces(MediaType.TEXT_PLAIN) public Response jaxrsSaveCookie(@QueryParam(“name”) String name, @QueryParam(“value”) String value) { logger.info(“jaxrsSaveCookie [name: ” + name + “, value: ” + value + “]”); NewCookie cookie = new NewCookie(name, value, “/”, “”, “my cookie”, NewCookie.DEFAULT_MAX_AGE, false); […]

Docker springboot app update war file without rebuilding using maven

I am running Docker for Windows version 1.12.3 and have a spring boot application running in a Docker container. I’m using a maven container to build my application. docker run –rm -it -v $(cd)\trunk:/project maven:3.3.9-jdk-8 mvn clean package -f /project Which works fine it builds my war inside truck, then I run a tomcat container. […]

CrashLoopBackOff: Docker image not running on Kubernates ? (ImagePullBackOff)

I have a REST API application with the following maven and docker file. I am using Jdk 8, latest Docker and Kubernates, latest minicubi , and work on latest Mac OS I was able to create the docker image without any problem as well as deploy it on Kubernate. However here the status when I […]

Old Gradle version installed in docker container

I have a docker container in which i am building my projects with jenkins. I want Gradle 3.0 installed in my projects and java version to make build properly. When i install gradle with commandapt-get install gradle 3.0 , it runs and start installing, but after that when i check Gradle with gradle -version […]

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