JBoss use different Ports

Hi all,

I use completely different Ports to the standard configured in my JBoss and do not succeed to start it from inside of intellj.

<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
        <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:11099}"/>
        <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:11090}"/>
        <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:11093}"/>
        <socket-binding name="ajp" port="11049"/>
        <socket-binding name="http" port="${jboss.http.port:11080}"/>
        <socket-binding name="https" port="11043"/>
        <socket-binding name="remoting" port="11047"/>
        <socket-binding name="txn-recovery-environment" port="11062"/>
        <socket-binding name="txn-status-manager" port="11063"/>
        <socket-binding name="messaging" port="11045"/>
        <outbound-socket-binding name="mail-smtp">
            <remote-destination host="localhost" port="25"/>

You see, the problem is I not only have an offset, I also have other ranges. The native port is 11099 and the HTTP port is 11080. Normally the gap between these two ports is 1919.
Besides the given config in standalone.xml I use a Port-Offset of 700. Looks strange, but is the standard in my project.

It seems that IntellJ cannot handle this offset(s) (14.x and 15.0).

When I start JBoss I get the following output:

"C:\Program Files\Java\jdk1.8.0_45\bin\java" -classpath "C:\fo\tools\IntelliJ IDEA 15.0\lib\idea_rt.jar;C:\fo\tools\IntelliJ IDEA 15.0\lib\util.jar" -Dfile.encoding=windows-1252 com.intellij.rt.execution.CommandLineWrapper C:\Users\tker7\AppData\Local\Temp\classpath0.tmp com.intellij.javaee.oss.process.JavaeeProcess 49676 com.intellij.javaee.oss.jboss.agent.JBoss71Agent
[2015-11-06 12:56:40,896] Artifact p2m-incoming-ear:ear: Server is not connected. Deploy is not available.
Detected server admin port: 11799
Detected server http port: 8780

So the admin port is correclty calculated: 11099 plus the port offset of 700. But for the http port, IDEA only takes the port offset of 700. Not the differently configured starting point of 11080 instead of 8080.

Any idea? I also tried to give the ports via run parameter:


But it did not help.



Please sign in to leave a comment.