13 Replies Latest reply on Dec 21, 2006 11:47 AM by martinoc

    JBossIDE 2.0beta2 and JBoss 4.0.5 launch problem

    alexg79

      I have Eclipse 3.2.1 and JBoss 2.0beta2, and I have added a server definition (under JBoss inc) for my JBoss 4.0.5 installation. The problem is, when I start it, the server status hangs at "Starting" even though the server has started ages ago. When I stop it, it shows a dialog telling me that starting the server has failed. Trying to deploy projects has no effect whatsoever while the server is "Starting". What gives?

        • 1. Re: JBossIDE 2.0beta2 and JBoss 4.0.5 launch problem
          michaelmuo

          The same thing.

          • 2. Re: JBossIDE 2.0beta2 and JBoss 4.0.5 launch problem

            Happens to me as well. Any idea how we can fix that?

            • 3. Re: JBossIDE 2.0beta2 and JBoss 4.0.5 launch problem
              maxandersen

              Is your server password protected ?

              • 4. Re: JBossIDE 2.0beta2 and JBoss 4.0.5 launch problem
                alexg79

                 

                Is your server password protected ?

                Yes, but I don't think I've seen any place for inputting such passwords in the JBoss Eclipse IDE. How does the server launching/shutdown work? This should be mentioned somewhere so people wouldn't be confused by it.

                • 5. Re: JBossIDE 2.0beta2 and JBoss 4.0.5 launch problem
                  maxandersen

                  Right click your server in the jboss server view and click edit launch configuration.

                  Here are two tabs with argument lists where you can put in --user yourusername --password yourpassword

                  the twiddle is the important one.

                  • 6. Re: JBossIDE 2.0beta2 and JBoss 4.0.5 launch problem
                    michaelmuo

                    I've changed launch config's in 2 tabs.

                    A Start Args looks as:
                    --configuration=default --host=MYHOST --user RootUser --password RootPass

                    a Twiddle one:
                    --user RootUser --password RootPass -S -s MYHOST:1099

                    When I start AS, the next error raised: jboss: unrecognized option '--user'.

                    The option like --user=RootUser brings the same result: jboss: unrecognized option '--user=RootUser'

                    Any idea how to get over that? Thank you.

                    • 7. Re: JBossIDE 2.0beta2 and JBoss 4.0.5 launch problem
                      rob.stryker

                      This is the usage for start args for jboss:

                      usage: run.bat [options]

                      options:
                      -h, --help Show this help message
                      -V, --version Show version information
                      -- Stop processing options
                      -D[=] Set a system property
                      -d, --bootdir= Set the boot patch directory; Must be absolute
                      or url
                      -p, --patchdir= Set the patch directory; Must be absolute or u
                      rl
                      -n, --netboot= Boot from net with the given url as base
                      -c, --configuration= Set the server configuration name
                      -B, --bootlib= Add an extra library to the front bootclasspat
                      h
                      -L, --library= Add an extra library to the loaders classpath
                      -C, --classpath= Add an extra url to the loaders classpath
                      -P, --properties= Load system properties from the given url
                      -b, --host=<host or ip> Bind address for all JBoss services
                      -g, --partition= HA Partition name (default=DefaultDomain)
                      -u, --udp= UDP multicast address
                      -l, --log=<log4j|jdk> Specify the logger plugin type

                      Press any key to continue . . .


                      I see no --user option there.

                      • 8. Re: JBossIDE 2.0beta2 and JBoss 4.0.5 launch problem
                        maxandersen

                        in other words its the twiddle and stop args that you need to set.

                        Anyone can start the server, but only the selected few can twidle and stop it.

                        • 9. Re: JBossIDE 2.0beta2 and JBoss 4.0.5 launch problem
                          rmemoria

                          I reinstalled JBOSS 4.0.5 GA and during install, in the JMX Security page I unchecked all options.

                          Now I can start and stop the server with Eclipse.

                          • 10. Re: JBossIDE 2.0beta2 and JBoss 4.0.5 launch problem
                            kumarp

                            Yeah me too got the server running after re-installing with jmx options unchecked...thx also some info on this
                            http://wiki.jboss.org/wiki/Wiki.jsp?page=SecureTheInvokers

                            • 11. Re: JBossIDE 2.0beta2 and JBoss 4.0.5 launch problem
                              cdreyer1

                              I have the same problem.
                              (A workaround is to wait long enough, then the Jboss tools in Eclipse will time out and set the server to started. It does about 220 checks before timing out :-) )

                              To check what would work with Twiddle I used the "Twiddle Server" in the Jboss Servier View (right click on the server in the lower half of the window, as opposed to same server in the upper half of the windows. Why the difference?).

                              The command I executed in the Twiddle Server window, when the server is started is:
                              -s MyHost:1099 -a jmx/rmi/RMIAdaptor -u MyUser -p MyPassword get jboss.system:type=Server Started
                              The returned answer is:
                              Started=true
                              This is what we want, right?

                              (If I leave out the -u and -p I get a SecurityException which I guess tells me that my server is password protected.)

                              If I then add
                              -S -s MyHost:1099 -a jmx/rmi/RMIAdaptor -u MyUser -p MyPassword
                              to the Twiddle Args in the Edit Launch Configuration then nothing new happens. It seems that it is not picked up by the tool checking the server?

                              The twiddle.log file shows that the arguments I put in are not used. From the top of the twiddle.log file;

                              13:08:36,406 DEBUG [Twiddle] args[0]=-s
                              13:08:36,406 DEBUG [Twiddle] args[1]=MyHost:1099
                              13:08:36,406 DEBUG [Twiddle] args[2]=-a
                              13:08:36,406 DEBUG [Twiddle] args[3]=jmx/rmi/RMIAdaptor
                              13:08:36,406 DEBUG [Twiddle] args[4]=get
                              13:08:36,406 DEBUG [Twiddle] args[5]=jboss.system:type=Server
                              13:08:36,406 DEBUG [Twiddle] args[6]=Started
                              13:08:36,406 DEBUG [Twiddle] Command name: get
                              13:08:36,421 DEBUG [Twiddle] Command arguments: jboss.system:type=Server,Started
                              ...


                              What am I doing wrong?

                              Thanks!

                              Best Regards,
                              Claus

                              • 12. Re: JBossIDE 2.0beta2 and JBoss 4.0.5 launch problem
                                yahro

                                Hi guys,
                                as far as I know in 2.0.0B2, in launch configuration tabs are mislabeled - put -u username -p password in Stop tab instead of Twiddle tab and it works fine...

                                • 13. Re: JBossIDE 2.0beta2 and JBoss 4.0.5 launch problem
                                  martinoc

                                   

                                  "yahro" wrote:
                                  Hi guys,
                                  as far as I know in 2.0.0B2, in launch configuration tabs are mislabeled - put -u username -p password in Stop tab instead of Twiddle tab and it works fine...


                                  This is correct and probably should be logged as a bug in JIRA.

                                  Taking this into account this is what you should set

                                  In the twiddle tab (which is really shutdown):
                                  -S -s <server>:1099 -a jmx/rmi/RMIAdaptor --user=<user> --password=<password>


                                  In the shutdown tab (which is really twiddle):
                                  -s <server>:1099 -a jmx/rmi/RMIAdaptor --user=<user> --password=<password>