7 Replies Latest reply on Dec 17, 2009 11:57 AM by Ercan Ercan

    How to start the JBoss Server on Mac OS X.

    Christopher Cox Newbie

      Hi, I have recently moved over to a Mac platform and would like to work on my JBoss project.

      I have installed Eclipse with all the plug ins I require, however I can't start the JBoss server with the start.sh file, I understand the start.bat is for the windows platform.

      When I double click the start.sh file it opens in TextEdit, and I get a -bash: error if I try to run it in Terminal (see below)

      host49:server Chris$ start.sh
      -bash: start.sh: command not found

      I'm obviously missing something, Is it alot more complicated to use the JBoss server on a Mac?

      If anyone could assist with my little issue it would be great.

      Thanks in advance.
      Chris Cox

        • 1. Re: How to start the JBoss Server on Mac OS X.
          Sandor Fiedler Newbie

          open a console, navigate to the bin directory of your jboss and type

          ./start.sh
          


          • 2. Re: How to start the JBoss Server on Mac OS X.
            Christopher Cox Newbie

            Hi,

            Thanks for the fast reply :)

            I have just tried the below command in terminal from within the bin directory.

            host46:bin Chris$ ./run.sh
            -bash: ./run.sh: Permission denied

            host46:bin Chris$ su ./run.sh
            Password:
            su: Sorry

            Then tried the below from within the server directory.

            host46:server Chris$ ./start.sh
            -bash: ./start.sh: Permission denied

            host46:server Chris$ su ./start.sh
            Password:
            su: Sorry

            None seam to work, I assume su ./start.sh would run the application as a superuser as the ./start.sh replies with Permission denied

            Any clues?

            • 3. Re: How to start the JBoss Server on Mac OS X.
              Peter Johnson Master

              You have to first change the permissions on run.sh to make it executable. Try this (from the bin directory):

              chmod a+x *.sh

              Then try running it again:

              ./run.sh

              By the way, su is the 'switch user' command used to switch to any user. In your case, you asked to switch to the user whose name is "./run.sh" and the system asked you for the password for that user. Not what you intended. To run something as 'root', you could enter:
              su
              (enter the password for root)
              ./run.sh

              or do the following:

              sudo ./run/sh
              (enter your password)

              Of course, to use sudo you have to first configure it (Ubuntu does this automatically, not sure if OS/X does)

              • 4. Re: How to start the JBoss Server on Mac OS X.
                Christopher Cox Newbie

                Thank you PeterJ and itsme.

                With your help I have managed to start and test my JBoss Installation!

                After running the chmod a+x *.sh command (from the bin directory)

                I ran the following:

                ./run.sh -c jbpm (I'm using the JBoss jBPM installation)

                And it works.

                Thank you so much, I'm not sure why this information is not included in the installation guide, but now its in the Forum, I hope others can use this thread.

                Thanks again. Your both Stars :)

                • 5. Re: How to start the JBoss Server on Mac OS X.
                  Ercan Ercan Newbie

                  Hi I can statr jboss but when stating it gives an error

                   

                  java.lang.IllegalArgumentException: Invalid control flag: REQU?RED

                  at org.jboss.security.microcontainer.beans.Util.getControlFlag(Util.java:57)

                  at org.jboss.security.microcontainer.beans.AuthorizationPolicyBean.getPolicyInfo(AuthorizationPolicyBean.java:49)

                  at org.jboss.security.microcontainer.beans.ApplicationPolicyBean.getApplicationPolicy(ApplicationPolicyBean.java:459)

                  at org.jboss.security.microcontainer.beans.ApplicationPolicyBean.start(ApplicationPolicyBean.java:420)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                  and it continious..How to fix it? I only downloaded from site and run..must I have to make configirutation?
                  • 6. Re: How to start the JBoss Server on Mac OS X.
                    Peter Johnson Master

                    Ercan, please don't hijack other's threads (by asking others to help soplve your problem), and also please do not reply to (or ask questions) on threads that are 2 years old - most likely none of the OPs care any more.

                     

                    Instead, open a new thread an describe your issue in detail. And don't forget to post which version of JBoss AS, which JVM and what version of the OS. Finally, post the full log entry for the stack trace.