How to allow remote communication with Karaf (for remote debugging)?

I need help.

I have a vmware virtual machine with a Karaf server and some Java applications. I started karaf with the debug flag and opened port 5005 for debugging.

What I want to do is connect to this port using eclipse for remote debugging, but they always refuse to connect to me.

I can access the virtual file from external firefox using the IP address of the virtual machine, but when I enter the karaf port 8181, I cannot connect.

Do you know how to enable Karaf for remote connections?

Many thanks!

+1
source share
1 answer

, .

, - VM-Ware.

. 5005 . :

bin/karaf debug

pom.xml . :

<groupId>org.apache.maven.plugins</groupId>
<configuration>
  ...
  <!-- Necessary in order for the debug levels to be considered-->
  <debug>true</debug>
  <debugLevel>lines,vars,source</debugLevel>
</configuration>

, . iptables, :

service iptables stop

java.

.

0

Source: https://habr.com/ru/post/1543987/


All Articles