3 Replies Latest reply on Jan 7, 2004 4:56 AM by shark

    JSP compilation error

    shark

      I am new to jboss and try to get it running with eclipse, but I get an Error 500 at every jsp I call.

      So if I call:
      http://localhost:8080/web-console/ServerInfo.jsp

      i get:
      org.apache.jasper.JasperException: Unable to compile class for JSP
      An error occurred at line: -1 in the jsp file: null

      As far as I can see, it already translated the jsp-file into a java-file at
      [..]\MainEngine\localhost\web-console\ServerInfo_jsp.java
      but according to the eclipse-debugger it tries to compile the file
      [..]\MainEngine\localhost\web-console\/ServerInfo_jsp.java.

      There is a "/" which shouldn't be there and so the compiler can't find the file. At least, this is my interpretation of the situation. Can anyone help me?

      Thanks
      Christian

      ps: I'm working with WinXP, Eclipse 3.0 (also tried 2.1) and jboss 3.2.3

        • 1. Re: JSP compilation error
          erikreut

          Try and add /lib/tools.jar from the J2SE SDK to JBoss' classpath, I seem to remember this fixing the problem.

          JBoss typically finds the tools.jar through the JAVA_HOME environment var, maybe you haven't set this yet?

          • 2. Re: JSP compilation error
            shark

            JAVA_HOME is set to C:\j2sdk1.4.1_01\ and lib\tools.jar exists there. I have also tried to add tools.jar manually to the classpath, but the situation doesn't change.

            Any other ideas?

            • 3. Re: JSP compilation error
              shark

              ok, problem solved: Eclipse was pointing to an other Java-dir than I expected. Now it works (for the moment :-)

              Thanks!