6 Replies Latest reply on Nov 26, 2003 9:42 AM by sbocquet

    JBoss IDE & JMX Console

    sbocquet

      Hi all,

      I'm trying to start the JMX Console of JBoss (3.2.1) with JBoss IDE installed on Eclipse (2.1.1).
      My URL is http://localhost:8080/jmx-console, and here is the error.

      org.apache.jasper.JasperException: Unable to compile class for JSP

      An error occurred at line: -1 in the jsp file: null

      Generated servlet error:
      [javac] Compiling 1 source file
      [javac] javac: invalid flag: C:\Program
      [javac] Usage: javac
      [javac] where possible options include:
      [javac] -g Generate all debugging info
      [javac] -g:none Generate no debugging info
      [javac] -g:{lines,vars,source} Generate only some debugging info
      [javac] -nowarn Generate no warnings
      [javac] -verbose Output messages about what the compiler is doing
      [javac] -deprecation Output source locations where deprecated APIs are used
      [javac] -classpath Specify where to find user class files
      [javac] -sourcepath Specify where to find input source files
      [javac] -bootclasspath Override location of bootstrap class files
      [javac] -extdirs Override location of installed extensions
      [javac] -d Specify where to place generated class files
      [javac] -encoding Specify character encoding used by source files
      [javac] -source Provide source compatibility with specified release
      [javac] -target Generate class files for specific VM version
      [javac] -help Print a synopsis of standard options

      I think that the reason is that JAVA, JBOSS and ECLIPSE are installed in my directory "Program Files"...

      How could I solve that?

      Thanks.

        • 1. Re: JBoss IDE & JMX Console
          sbocquet

          P.S. : without installing JAVA, JBoss and Eclipse elsewhere, of course ;-)))

          • 2. Re: JBoss IDE & JMX Console
            dklehmann

            Hi,

            Actually, I am experiencing the same problem. Although I have not been able to solve it yet myself, i think it might have something to do with a compiler conflict.

            I used Apache Ant to build my project from within Eclipse, but had to switch specifically to the Eclipse compiler in my script (using the normal SDK compiler it would fail). Maybe this problem has a similar cause?

            Cheers,
            Daniel

            • 3. Re: JBoss IDE & JMX Console
              karstents

              Actually, I do have the same problem.
              BUT: When I start JBoss directly from the directory, there is no problem at all...

              • 4. Re: JBoss IDE & JMX Console
                karstents

                I solved the problem.
                AfterI told Eclipse where all the J2EE and J2SE JREs are, it worked fine.

                Tell it there:
                Window / Preferences / Java / Installed jres

                • 5. Re: JBoss IDE & JMX Console
                  sbocquet

                  Hi,

                  I've just look at the options, and I saw that I only have the 'Standard VM' (1.4.1) installed.

                  What JAR have you added in order to install J2SE support?
                  What JAR have you added in order to install J2EE support?

                  Thanks.

                  • 6. Re: JBoss IDE & JMX Console
                    sbocquet

                    Hi,

                    I've added the J2EE jar files in my standard Java config in JBoss, and it still don't work ;-(((

                    Also, I've the same problem if I start JBoss with a command line, so I think that the problem is more general then a JBossIDE problem.
                    What's you're opinion?

                    What are the environment variables that are used to lauch the javac command by JBoss/Tomcat when Tomcat try to compil a servlet?

                    Thanks for a little help...