First of all, sorry for my English :-)
Secondly, I want to start and debug my Spring application in a docker container. The container with the application starts without any problems, I can get to the application from the browser.
I am developing it in IntelliJ IDEA on Linux Mint, and I would like to get debugging information from my container. But when I started the application in debug mode, IDEA tells me:
Cannot get debug connection: java.net.MalformedURLException: unknown protocol: unix
Here is my Docker file:
FROM tomcat:8-jre8 RUN apt-get update -y && apt-get install -y \ curl \ vim RUN rm -rfd /usr/local/tomcat/webapps/ROOT RUN mkdir -p /usr/local/tomcat/conf/Catalina/localhost RUN echo "<Context docBase=\"/usr/local/tomcat/webapps/ROOT\" path=\"\" reloadable=\"true\" />" >> /usr/local/tomcat/conf/Catalina/localhost/ROOT.xml ENV JPDA_ADDRESS=8000 ENV JPDA_TRANSPORT=dt_socket ENV JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,address=8000,suspend=n,server=y EXPOSE 8000 8080
In the launch configurations, the correct portlets are correct, the application is deployed successfully. Can someone help me ?:-)
source share