Friday, October 5, 2012

To resolve!! Starting jboss-as: chown: missing operand after `/var/run/jboss-as' Try `chown --help' for more information.in Jboss 7

While starting Jboss service i am getting following error meesage in jboss7.

 "Starting jboss-as: chown: missing operand after `/var/run/jboss-as'Try `chown --help' for more information."


To over come this ,

#vim /usr/local/jboss-as/standalone/configuration/standalone.xml

 and add the below line into standalone.xml file

# Set defaults.
JBOSS_USER=jboss
export JBOSS_USER









Now we can start the jboss server as usual without any error message.
#/etc/init.d/jboss start

Enjoy!!!!...


11 comments:

  1. standalone.xml is an XML file - where exactly am I supposed to put the lines?

    ReplyDelete
  2. it should be the 'jboss-as.conf' file NOT 'standalone.xml'

    ReplyDelete
  3. it should be the 'jboss-as.conf' ....thanks Jeffrey!!!

    ReplyDelete
  4. Here is the jboss-as.conf

    Path : /jboss-eap-6.1/bin/init.d/jboss-as.conf

    ReplyDelete
  5. after your hints the result is the same. I still get the error!

    ReplyDelete
    Replies
    1. jboss-as.conf should be in /etc/jboss-as, otherwise it won't be read.

      Delete
    2. I m facing same issue but in wildfly 8.2 so what can i set.

      Delete
  6. To resolve this issue, kindly input/set correctly the jvm path in the jboss config file located in the default directly.

    ReplyDelete
  7. conf file path should be jboss_home path and inside the script check whether you have given jboss-as.id or jboss-as-standalone. id

    ReplyDelete