0 Replies Latest reply on Oct 29, 2003 11:59 AM by pazu

    JBoss and IDEA not playing nice together

    pazu

      Hello, folks. I've been experiencing quite a weird situation. It seems that JBoss doesn't like IDEA or vice-versa.

      For the past year or so I've been developing applications on IDEA targeted for JBoss, and never really had any problems with that. I developed the applications on my machine and deployed on a remote server. I also used to debug my application by starting the server in debug mode and attaching IDEA to it. Everything was, and for this scenario, still is fine.

      However, lots of people got involved in the project and now the remote server is reserved for "test" builds -- not for everyday development cycle. Each developer should now run the app server on his own machine. Now here comes my problem: IDEA (EAP Build #957) simply dies whenever JBoss (3.2.2_jetty-4.2.11) starts to deploy an application. Simple like this. No exceptions, no stack traces, no VM errors. IDEA simply vanishes without any traces left. I'm running Windows 2000 SP4.

      Maybe JBoss broadcasts to a local port that for some reason IDEA is listening to? IDEA licence checker uses network broadcast, so maybe it's something related to this?

      Is anyone else experiencing something like this? Could someone else reproduce this? Please, help me track down what could be possibly causing this. Both JBoss and EAP'ers comments are welcome. Now follows lots of info that could or could not be related to this problem. Hope this helps >.<

      Output of netstat -n -a -p tcp with IDEA running, before starting JBoss:
      [pre] Proto Local Address Foreign Address State
      TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:1029 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:1053 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:3612 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:4403 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:6942 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:8123 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:9874 0.0.0.0:0 LISTENING
      TCP 10.71.2.224:139 0.0.0.0:0 LISTENING
      TCP 10.71.2.224:139 10.71.2.178:3834 ESTABLISHED
      TCP 10.71.2.224:2764 0.0.0.0:0 LISTENING
      TCP 10.71.2.224:4529 10.42.2.17:1352 TIME_WAIT
      TCP 127.0.0.1:3611 0.0.0.0:0 LISTENING
      TCP 127.0.0.1:3611 127.0.0.1:3612 ESTABLISHED
      TCP 127.0.0.1:3612 127.0.0.1:3611 ESTABLISHED
      TCP 127.0.0.1:4403 127.0.0.1:8123 ESTABLISHED
      TCP 127.0.0.1:8123 127.0.0.1:4403 ESTABLISHED[/pre]
      Output of the same command after starting JBoss. IDEA is dead by now:
      [pre] Proto Local Address Foreign Address State
      TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:1029 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:1053 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:3612 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:4403 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:4530 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:4534 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:4536 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:8009 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:8123 0.0.0.0:0 LISTENING
      TCP 0.0.0.0:8787 0.0.0.0:0 LISTENING
      TCP 10.71.2.224:139 0.0.0.0:0 LISTENING
      TCP 10.71.2.224:139 10.71.2.178:3834 ESTABLISHED
      TCP 10.71.2.224:2764 0.0.0.0:0 LISTENING
      TCP 10.71.2.224:4531 10.42.2.17:1352 TIME_WAIT
      TCP 10.71.2.224:4534 10.72.17.31:3418 ESTABLISHED
      TCP 10.71.2.224:4536 10.72.17.31:3419 ESTABLISHED
      TCP 127.0.0.1:3611 0.0.0.0:0 LISTENING
      TCP 127.0.0.1:3611 127.0.0.1:3612 ESTABLISHED
      TCP 127.0.0.1:3612 127.0.0.1:3611 ESTABLISHED
      TCP 127.0.0.1:4403 127.0.0.1:8123 ESTABLISHED
      TCP 127.0.0.1:8123 127.0.0.1:4403 ESTABLISHED[/pre]

      My jboss-service.xml:
      [pre]<?xml version="1.0" encoding="UTF-8"?>




      resource:log4j.xml
      true



      127.0.0.1
      -1









      300
      <depends optional-attribute-name="XidFactory">jboss:service=XidFactory



      jboss:service=TransactionManager



      jboss:service=TransactionManager



      true
      false
      false
      true
      true
      <depends optional-attribute-name="TransactionManagerServiceName">jboss:service=TransactionManager






      <depends optional-attribute-name="Deployer">jboss.system:service=MainDeployer
      org.jboss.deployment.DeploymentSorter
      org.jboss.deployment.scanner.DeploymentFilter
      5000

      deploy/

      True

      [/pre]
      Crossposted to IDEA EAP forums http://www.intellij.net/forums/thread.jsp?nav=false&forum=22&thread=51047