I'm using Windows Xp and JBoss v3.2.2. I used to install all programs under "%programfiles%\" so I install JBoss on %programfiles%\Jboss\v3.2.2 and I set my JBOSS_Home to this directory.
I start the Jboss and I find that tomcat is working because I can hit http://localhost:8080/ And I receive tomcat error.
The problem is when I try http://localhost:8080/jmx-console/. I get the sounded error:
type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception 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: D:\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
set up JAVA_HOME to a j2sdk 1.4 and up, that's all you need to do to solve this problem.