title: JBoss5 and JBoss7 installation conflict same Linux Machine
body: <p>I had a properly working JBoss7 installation, but recently on my machine my team mate installed JBoss5.1.0GA, Since then i am facing two problems and still unable to resolve them.</p>
  
  <p>Whene ever i stop the jboss with init.d script. I get this error.</p>
  
  <pre><code>[root ~]# service jboss stop
  Stopping jboss-as:                                         [  OK  ]
  [root ~]# *** JBossAS process (25571) received KILL signal ***
  grep: /var/run/jboss-as/jboss-as-standalone.pid: No such file or directory
  </code></pre>
  
  <p>Could there be any conflict with the processID file that jboss generates to check weather server is running or not.
  I doubt that there is a conflict with another JBoss5 Installation.</p>
  
  <p>Second Issue is I am unable to connect with the server via jboss-cli.sh</p>
  
  <pre><code>[root bin]# sh jboss-cli.sh
  You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
  [disconnected /] connect localhost
  The controller is not available at localhost:9999
  [disconnected /] connect localhost
  </code></pre>
  
  <p>One thing i want you to check, the <strong>ps auxwww |grep jboss</strong> commands result
  I can see two process , is this any conflict ? With PId</p>
  
  <pre><code>root     25970  0.0  0.0 161476  1960 pts/0    S    07:58   0:00 su - jboss -c LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=/var/run/jboss-as/jboss-as-standalone.pid /usr/share/jboss-as/bin/standalone.sh -c standalone.xml
  jboss    25973  0.0  0.0 106096  1344 ?        Ss   07:58   0:00 /bin/sh /usr/share/jboss-as/bin/standalone.sh -c standalone.xml
  jboss    26022  8.7  8.7 1027368 342776 ?      Sl   07:58   0:45 /usr/java/jdk1.7.0_25/bin/java -D[Standalone] -server -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml -Dspring.profiles.active=dev -Dorg.jboss.boot.log.file=/usr/share/jboss-as/standalone/log/boot.log -Dlogging.configuration=file:/usr/share/jboss-as/standalone/configuration/logging.properties -jar /usr/share/jboss-as/jboss-modules.jar -mp /usr/share/jboss-as/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=/usr/share/jboss-as -c standalone.xml
  root     26365  0.0  0.0 103244   848 pts/0    S+   08:07   0:00 grep jboss
  </code></pre>
  
  <p>I can see multiple process started with command sh standalone.sh command.
  Is this the interference ?</p>