7 Replies Latest reply on May 24, 2007 12:12 PM by spirosmichalak

    NetBeans and JBoss 4.2.0 problem?

    spirosmichalak

      I just downloaded jboss-4.2.0 and unzipped it into a directory: C:\Program Files\jboss-4.2.0.GA

      When I try to 'Add Server' in Netbeans (I've already removed the previous server from Netbeans, which was "jboss-4.0.4.GA") and I choose JBoss Application Server 4 I am then prompted for the server Installation location. When I select the new installation ("C:\Program Files\jboss-4.2.0.GA") NetBeans doesn't let me and pops up a "Provide a valid JBoss Application Server 4 Installation Location".

      Is this because:

      a) I 'installed' simply by unzipping the file and not using a JEMS Installer, because I couldn't find one on the site.

      b) It's a NetBeans problem, or

      c) Any other reason :-)

      Is there a workaround? What is NetBeans looking for to consider it a 'valid JBoss AS installation location'?

      Regards,
      Spiros


        • 1. Re: NetBeans and JBoss 4.2.0 problem?
          peterj

          I don't use NetBeans, so I am only guessing, but I would suspect that NetBeans is looking for specific files in specific locations to verify that you have provided a proper JBoss home directory. My guess is that one of those files does not exist in 4.2.

          I also question placing any Java application into Program Files, sooner or later you are going to run into a Java library that simply cannot handle the space in the directory name.

          • 2. Re: NetBeans and JBoss 4.2.0 problem?
            spirosmichalak

            Thanks Peter,

            I take your point about "Program Files" and will avoid it in the future. Does anyone else know which specific files Netbeans would be looking at?

            As for Sunny Southern California, I wish I could say something similar about London, UK where I'm living. It's been really miserable this May!

            Spiros

            • 3. Re: NetBeans and JBoss 4.2.0 problem?
              peterj

              No I don't know which files NetBeans looks for. You could try using FileMon from sysinternals (http://www.microsoft.com/technet/sysinternals/FileAndDisk/Filemon.mspx) - install JBoss 4.0.5 and have NetBeans run it, FileMon should show you the files accessed.

              Or you could ask on the local NetBeans forum: http://www.jboss.com/index.html?module=bb&op=viewforum&f=234,

              or ask on one of the forums on the NetBeans site: http://www.nabble.com/Netbeans.org-f2602.html

              P.S. I will be in London the last week in June, I'll bring some nice weather with me (if I can get it past airport security).

              • 4. Re: NetBeans and JBoss 4.2.0 problem?
                jaroslaw.kijanowski

                Hi,
                add an empty file/directory "resolver.jar" to $JBOSS_HOME/lib/endorsed.

                This is fixed in Netbeans-5.5.1rc1 (http://www.netbeans.org/issues/show_bug.cgi?id=97469)

                • 5. Re: NetBeans and JBoss 4.2.0 problem?
                  spirosmichalak

                  Thanks guys,

                  That's brilliant. Not only did it resolve this problem (adding the "resolver.jar" directory), but I can also now control JBoss through NetBeans, since I was having to brutally stop the server via the Task Manager with the previous version I was working with (4.0.2).

                  Spiros

                  • 6. Re: NetBeans and JBoss 4.2.0 problem?
                    kk2die4

                    Hi spirosmichalak

                    How do you stop the JBoss srever from Netbeans ? I am an absolute
                    newbie to both Netbeans and JBoss, so please dont mind if that was a dumb question.

                    • 7. Re: NetBeans and JBoss 4.2.0 problem?
                      spirosmichalak

                      Hello,

                      The proper way is click on 'Runtime' tab, expand 'Servers' and look at your JBoss server icon. It should have a little green arrow in the bottom right corner when it's running, an orangey type box/arrow when it's running in debug mode and nothing when it's not running.

                      If it's running and you right click on it you should be able to select 'Stop' from the drop down list.

                      But, there are two problems. Sometimes the green arrow doesn't appear, i.e. NetBeans doesn't know JBoss is running, and other times it does appear, but when you select 'Stop', it keeps trying, but never succeeds in stopping it!

                      So, what I do is go into the Task Manager and select the appropriate java.exe process that's running and 'End Process'! How do you know which java.exe is JBoss? You might have to experiment with this, but when I'm running only NetBeans and JBoss, NetBeans (also a java.exe process) takes up roughly 150-250K memory, while JBoss around half that!

                      If anyone knows of a better way, please let me know as well.

                      Good luck,
                      Spiros