Change "Detected server admin port" when starting JBoss Server

已回答

Hi there,

I use a JBoss Server with completely differrent ports and fail to deploy any artifact, since I get the message that IntelliJ is "waiting for server connection to start artifact deployment".

Here are my server settings:

...
<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:8416}"/>
        <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:8414}"/>
        <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:8415}"/>
        <socket-binding name="ajp" port="8409"/>
        <socket-binding name="http" port="8080"/>
        <socket-binding name="https" port="8843"/>
        <socket-binding name="remoting" port="8418"/>
        <socket-binding name="jgroups-mping" interface="jgroups" port="0" multicast-address="${jboss.default.multicast.address:230.0.0.5}" multicast-port="45700"/>
        <socket-binding name="jgroups-tcp" interface="jgroups" port="7605"/>
        <socket-binding name="jgroups-tcp-fd" interface="jgroups" port="57605"/>
        <socket-binding name="jgroups-udp" interface="jgroups" port="55205" multicast-address="${jboss.default.multicast.address:230.0.0.5}" multicast-port="45688"/>
        <socket-binding name="jgroups-udp-fd" interface="jgroups" port="54205"/>
        <socket-binding name="txn-recovery-environment" port="8419"/>
      <socket-binding name="txn-status-manager" port="8420"/>
</socket-binding-group>
...

When I start the server in IntelliJ, I see the following output:

C:\<PATH_TO_USERSPACE>\startServer.bat
C:\EDF\dev\java\jdk1.8.0_92\bin\java.exe -Dfile.encoding=windows-1252 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2020.3.1\lib\idea_rt.jar" com.intellij.rt.execution.CommandLineWrapper C:\Users\<USERNAME>\AppData\Local\Temp\idea_classpath1349882241 com.intellij.javaee.oss.process.JavaeeProcess 55151 com.intellij.javaee.oss.jboss.agent.WildFly11Agent
[2022-02-16 05:28:54,843] Artifact <ARTIFACT_NAME>:ear: Waiting for server connection to start artifact deployment...
Detected server admin port: 9990
Detected server http port: 8080
  "calling system specific environment..."
start
"starting the server ..."
...

Obviously, the detected server admin port and the detected server http port is wrong.

Does anybody know how IntelliJ detects these ports? And how can I set it explicitely? I tried to pass several system variables via -D when calling the startup script, but none worked.

I also had a look at this post, but unfortunately there is no answer yet: https://intellij-support.jetbrains.com/hc/en-us/community/posts/206809755-JBoss-use-different-Ports?input_string=Change%20%22Detected%20server%20admin%20port%22 

Any help is highly appreciated! Thanks a lot!

评论操作 固定链接

See https://youtrack.jetbrains.com/issue/IDEA-199527#focus=Comments-27-3078800.0-0.

Try starting the server with the explicit configuration XML file so that it can detect the ports.

0
评论操作 固定链接

Hi Serge,

thanks a lot for the fast reply. I tried the suggested solution from your link and started the server with the following startup command:

C:\<PATH_TO_USERSPACE>\startServer.bat -Djboss.server.default.config=C:\<PATH_TO_STANDALONE_XML>\my_standalone.xml

Unfortunately, it is still the same behaviour :(

0
评论操作 固定链接

Please file a bug at https://youtrack.jetbrains.com/newIssue?project=IDEA, attach your server config.xml file, attach the full output from the run console in the IDE and the logs via Help | Collect Logs and Diagnostic Data. Specify JBoss version you are using and what other changes you made to its configuration.

0
评论操作 固定链接

Please file a bug at https://youtrack.jetbrains.com/newIssue?project=IDEA/prepaidgiftbalance.com attach your server config.xml file, attach the full output from the run console in the IDE and the logs via Help | Collect Logs and Diagnostic Data. Specify JBoss version you are using and what other changes you made to its configuration.

Thanks for the Link, I will try to figure it out for more.

0
评论操作 固定链接

Here is the link for the bug that I opened 3 weeks ago: https://youtrack.jetbrains.com/issue/IDEA-289190
But there is no update yet

0
评论操作 固定链接

Thank you. I will try tomorrow morning. I think what you mention is the issue. 

PayMyDoctor

0

请先登录再写评论。