1 Reply Latest reply on Jan 10, 2002 9:13 PM by Adrian Brock

    JSP's in jboss-3.0alpha

    David Cummins Newbie

      Hi,

      I'm having problems with deploying JSP's to JBoss 3.0 alpha. I have an existing .ear file that I constructed under JBoss 2.4.4 using tomcat (latest stable version) and it's working fine. When I try to copy over the ear to the jboss alpha with Jetty I try to call any jsp and it returns a 404 error.

      I've checked the deploy/default area and can see that it has expanded the war and jar files and they seem to be correct.

      Has anyone encountered this before? I do have some struts pages in here, but jetty looks like it is handling it correctly.

      Regards,
      Dave

        • 1. Re: JSP's in jboss-3.0alpha
          Adrian Brock Master

          Which 3.0?

          There is a problem with some earlier versions of 3.0
          not including the java compiler in the classpath.

          Here's some code from the latest 3.0 run.bat

          REM Include the JDK javac compiler for JSP pages. The default is for a Sun JDK
          REM compatible distribution to which JAVA_HOME points
          set JAVAC_JAR=%JAVA_HOME%\lib\tools.jar
          set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;%JAVAC_JAR%;run.jar

          and run.sh


          # Include the JDK javac compiler for JSP pages. The default is for a Sun JDK
          # compatible distribution which JAVA_HOME points to
          if [ "x$JAVAC_JAR" = "x" ]; then
          JAVAC_JAR="$JAVA_HOME/lib/tools.jar"
          fi

          if [ "x$JBOSS_CLASSPATH" = "x" ]; then
          JBOSS_CLASSPATH="$JBOSS_BOOT_CLASSPATH:$JAVAC_JAR"
          else
          JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_BOOT_CLASSPATH:$JAVAC_JAR"
          fi

          Regards,
          Adrian