Tag: java

Communication between spring boot dockerized apps

I new using spring boot and docker and I faced a problem running the docker containers. On debug mode, there is no problem on applications boot, but when I run them as a container, there is something wrong. For example, I have my server config with all the yml files, also eureka properties. The config […]

Cannot connect to exposed Docker port

I’m running Docker on OS X using the latest Docker Toolbox. Docker version 1.10.2, build c3959b1 docker-machine version 0.6.0, build e27fb87 docker-compose version 1.6.0, build d99cad6 I have a Java app in a container built from the following Dockerfile: FROM <my internal registry>/java:8 ENTRYPOINT [“java”, “-cp”, “/var/app/scheduler/scheduler-jar-with-dependencies.jar”, “com.myapp.scheduler.Application”] and docker-compose.yml: scheduler: image: <my internal registry>/scheduler […]

Building a Docker images fails when a User tries to execute javac

I’m trying to create a Dockerfile, but if I add a User it keeps failing during the building process. If I remove the User the building process of the images succeeds, but I need the User, cause it is a requirement for the Code Climate engine I am working on. Dockerfile: FROM java MAINTAINER DavidRenz […]

Gradle clean task with bmuschko/gradle-docker-plugin

I’m trying to create a Gradle task that will run a clean, a build, and then run a buildDockerImage task from the bmuschko/gradle–docker-plugin plugin. I can successfully run the clean task, build task, and buildDockerImage task in separate commands in the command line but when I try to create a singe task that does all […]

Monitoring Glassfish 4 on Docker with JVisualVM

I’m not able to connect JVisualVM to Glassfish running on Docker. I’m using the glassfish nightly image and I’m exposing port 8686. On Startup Glassfish is logging the following: JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://55bbdd404578:8686/jndi/rmi://55bbdd404578:8686/jmxrmi The IP of my docker host is 192.168.99.100 and I can connect via telnet on port 8686. The […]

Execute docker commands from java/jsp/html page

I have to run commands to start docker container from the jsp page. when user enters his credentials on login page, I have to start mysql container and other containers too.How can we achieve this? Suggest a solution to trigger/run a docker command from the java/jsp/html file.

i/o intensive java application speeds up on docker on limited resources

I’ve got an I/O-intensive java tomcat application where I want to execute htmlunit-tests in a more modern, clustered environment. I therefore also took docker into account which may provide cool features by applying swarm and so on. The tests runs against a oracle db and creates traffic also on the local I/O. I’m just curious […]

Docker: Start Tomcat after running Oracle and scripts executed

I am really new to Docker and enjoy it, however, I found some problems with running my application. I want to run my application which consists of 2 services: I would like to start Oracle and run some DDL and DATA scripts which should take above 30 seconds I would like to start Tomcat and […]

websphere liberty on docker container

I’m running a docker container by the image websphere-liberty:webProfile7. I’ve installed adminCenter, modified the server.xml of defaultServer as shown at https://developer.ibm.com/wasdev/downloads/#asset/features-com.ibm.websphere.appserver.adminCenter-1.0 then restarted the server, but I continue to can not access the adminCenter or the login page. When i go on my 192.168.99.100:80/admincenter I see a websphere page tha says me “Context Root Not […]

java.lang.StackOverflowError in pio train phase

pio train (after a successful pio build) gives me an error like that: [ERROR] [Executor] Exception in task 0.0 in stage 39.0 (TID 34) [WARN] [TaskSetManager] Lost task 0.0 in stage 39.0 (TID 34, localhost): java.lang.StackOverflowError at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2321) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2614) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2624) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1321) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373) at scala.collection.immutable.$colon$colon.readObject(List.scala:362) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) […]

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