1 Reply Latest reply on May 28, 2014 1:29 PM by jbjares

    JBoss 7.1.1 init service + jboss-cli.sh (Not Working) Help !!

    alindbillore

      Hello Everyone,

      I am new to JBoss, please help me. I have three problems.

      (1)

      I had a working JBoss init,d script but my other team mate insatlled JBoss5.1.0 GA on same linux machine.

      Since then when i stop the jboss with command "service jboss " i get this message.

       

      [root bin]# service jboss stop
      Stopping jboss-as:                                         [  OK  ]
      [root bin]# *** JBossAS process (4573) received KILL signal ***
      grep: /var/run/jboss-as/jboss-as-standalone.pid: No such file or directory
      
      

       

      Please help me whats wrong with this script, is this any kind of interference from jboss5 , my team mate also change the name of jboss script from jboss to jboss2, which i have reverted again to jboss.

       

      (2)

      I am unable to connect to localhost with "jboss-cli.sh" I get this message.

       

      [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
      The controller is not available at localhost:9999
      
      

       

      (3)

      I am getting this error message , unable to create log file. In boot.log file

       

      11:25:53,223 ERROR [org.jboss.msc.service.fail] MSC00001: Failed to start service jboss.logging.handler.FILE: org.jboss.msc.service.StartException in service jboss.logging.handler.FILE: java.io.FileNotFoundException: /usr/share/jboss-as/standalone/log/server.log (Permission denied)
          at org.jboss.as.logging.handlers.file.PeriodicRotatingFileHandlerService.start(PeriodicRotatingFileHandlerService.java:72)
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
          at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
      Caused by: java.io.FileNotFoundException: /usr/share/jboss-as/standalone/log/server.log (Permission denied)
          at java.io.FileOutputStream.open(Native Method) [rt.jar:1.7.0_25]
          at java.io.FileOutputStream.<init>(FileOutputStream.java:212) [rt.jar:1.7.0_25]
          at org.jboss.logmanager.handlers.FileHandler.setFile(FileHandler.java:152) [jboss-logmanager-1.2.2.GA.jar:1.2.2.GA]
          at org.jboss.logmanager.handlers.FileHandler.setFileName(FileHandler.java:183) [jboss-logmanager-1.2.2.GA.jar:1.2.2.GA]
          at org.jboss.as.logging.handlers.file.PeriodicRotatingFileHandlerService.start(PeriodicRotatingFileHandlerService.java:70)
          ... 5 more
      
      

       

       

      Many thanks in advance...

      Best Regards,

      Alind Billore

        • 1. Re: JBoss 7.1.1 init service + jboss-cli.sh (Not Working) Help !!
          jbjares

          Alind Billore escreveu:

           

          Hello Everyone,

          I am new to JBoss, please help me. I have three problems.

          (1)

          I had a working JBoss init,d script but my other team mate insatlled JBoss5.1.0 GA on same linux machine.

          Since then when i stop the jboss with command "service jboss " i get this message.

           

          1. [root bin]# service jboss stop 
          2. Stopping jboss-as:                                         [  OK  ] 
          3. [root bin]# *** JBossAS process (4573) received KILL signal *** 
          4. grep: /var/run/jboss-as/jboss-as-standalone.pid: No such file or directory 

           

          Please help me whats wrong with this script, is this any kind of interference from jboss5 , my team mate also change the name of jboss script from jboss to jboss2, which i have reverted again to jboss.

           

          (2)

          I am unable to connect to localhost with "jboss-cli.sh" I get this message.

           

          1. [root bin]# sh jboss-cli.sh 
          2. You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands. 
          3. [disconnected /] connect localhost 
          4. The controller is not available at localhost:9999 
          5. [disconnected /] connect localhost 
          6. The controller is not available at localhost:9999 

           

          (3)

          I am getting this error message , unable to create log file. In boot.log file

           

          1. 11:25:53,223 ERROR [org.jboss.msc.service.fail] MSC00001: Failed to start service jboss.logging.handler.FILE: org.jboss.msc.service.StartException in service jboss.logging.handler.FILE: java.io.FileNotFoundException: /usr/share/jboss-as/standalone/log/server.log (Permission denied) 
          2.     at org.jboss.as.logging.handlers.file.PeriodicRotatingFileHandlerService.start(PeriodicRotatingFileHandlerService.java:72
          3.     at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] 
          4.     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] 
          5.     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25] 
          6.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25] 
          7.     at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25] 
          8. Caused by: java.io.FileNotFoundException: /usr/share/jboss-as/standalone/log/server.log (Permission denied) 
          9.     at java.io.FileOutputStream.open(Native Method) [rt.jar:1.7.0_25] 
          10.     at java.io.FileOutputStream.<init>(FileOutputStream.java:212) [rt.jar:1.7.0_25] 
          11.     at org.jboss.logmanager.handlers.FileHandler.setFile(FileHandler.java:152) [jboss-logmanager-1.2.2.GA.jar:1.2.2.GA] 
          12.     at org.jboss.logmanager.handlers.FileHandler.setFileName(FileHandler.java:183) [jboss-logmanager-1.2.2.GA.jar:1.2.2.GA] 
          13.     at org.jboss.as.logging.handlers.file.PeriodicRotatingFileHandlerService.start(PeriodicRotatingFileHandlerService.java:70
          14.     ... 5 more 

           

           

          Many thanks in advance...

          Best Regards,

          Alind Billore

           

           

          Try, change the port of the jboss-cli.xml.. something like that, http://pastebin.com/yUCAyhai. Good Luck!