4 Replies Latest reply on May 30, 2006 2:05 PM by smunsat

    Lanunching JBoss from JBoss IDE to enable remote debugging

    abhay_c

      I am trying to launch JBoss from JBoss IDE 1.3.3 with Eclipse 3.0 (on windows XP JDK 1.4.2_05) by setting following options in Environment variables.

      -Xdebug -Xrunjdwp:server=y,transport=dt_shmem,address=4142,suspend=n

      It fails to launch JBoss and prints following error on console

      FATAL ERROR in native method: No transports initialized
      Invalid listen port number: localhost:1563
      Transport dt_socket failed to initialize, rc = -1.


      I have JAVA_HOME/bin in my PATH. If I supply same arguments in run.sh or set them as JAVA_OPTS and lauch server with run.sh scripts it works.

      Am I missing anything here? Any help will be appreciated.

      I guess JBoss IDE needs ability to set environment variables while launching the JBoss so that I can set JAVA_HOME/bin in the path.

        • 1. Re: Lanunching JBoss from JBoss IDE to enable remote debuggi
          scawa

          I am also having a similar problem with JBoss through the IDE.

          When I launch JBoss from within Eclipse/JBoss IDE; and then try to access a JSP, I get the Jasper Exception

          Unable to find a javac compiler;
          com.sun.tools.javac.Main is not on the classpath.
          Perhaps JAVA_HOME does not point to the JDK

          I get the Tomcat Connectors working, but don't get the JSP's to compile.

          I have set JAVA_HOME in my enviornment variables. If I use the run.bat file, everythings works fine for launching, but I can't use the IDE for debugging. If I launch through Eclipse, the files won't compile.

          Please help....

          Thank you VERY much

          • 2. Re: Lanunching JBoss from JBoss IDE to enable remote debuggi
            scawa

            Oh Bye the Way.... I can connect and get JBoss working through the MyEclipseIDE JBoss connection.

            Stephen McConnell

            • 3. Re: Lanunching JBoss from JBoss IDE to enable remote debuggi
              muf

              just found this thread, which was very useful to me. thanks

              • 4. Re: Lanunching JBoss from JBoss IDE to enable remote debuggi
                smunsat

                When you get the Jasper Exception:

                Unable to find a javac compiler;
                com.sun.tools.javac.Main is not on the classpath.
                Perhaps JAVA_HOME does not point to the JDK

                One possible cause is that tools.jar is not part of the classpath. Eclipse does not include tools.jar by default as part of the runtime classpath, but the JBoss server expects it to be there.

                To fix this:

                Go to Preferences -> Installed JREs
                Edit the JRE that you are using for JBoss
                Make sure that tools.jar is here, if not add it.

                -Steve