4 Replies Latest reply on Jun 6, 2006 10:49 AM by Chris Topher

    Two Errors: jmx-console and JSP examples

    Chris Topher Newbie

      Windows 2003 Server SP1.
      Installed JDK 1.4.2.11 (with NB 5.0) to D:\j2sdk1.4.2_11
      NetBeans installed to D:\Program Files\netbeans-5.0 (I dont' recall having an option to change this.)
      Installed Java EE 5
      Installed JBoss App Server 4.04 to D:\Program Files\jboss-4.0.4GA

      create system variable: JAVA_HOME = D:\j2sdk1.4.2_11
      create system variable: CLASSPATH = D:\j2sdk1.4.2_11\lib\tools.jar
      JBoss Start.bat starts in 20-30 seconds with no errors.

      1) Browse to: http://127.0.0.1:8080/jmx-console

      The page cannot be found


      2) Browse to: http://127.0.0.1:8080/index.html brings up Tomcat 3.3 okay. Servlet examples work.
      JSP Examples do not work:

      Location: /examples/jsp/num/numguess.jsp
      Internal Servlet Error:

      java.lang.NoClassDefFoundError: sun/tools/javac/Main
      at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
      more "at...." errors snipped

      Some thoughts:
      a) Installed to D drive and not C
      b) space in JBoss installation directory. From the reading, it seems it used to be a problem
      c) something incorrect with CLASSPATH. All it needs is a system variable right?? Is there a way to print out what JBoss thinks the CLASSPATH is?

      Thanks!

        • 1. Re: Two Errors: jmx-console and JSP examples
          Peter Johnson Master

          Is your reference to Tomcat 3.3 a typo? JBoss 4.0.4 comes with Tomcat 5.5, not 3.3.

          You say that http://127.0.0.1:8080/index.html brings up the Tomcat home page? Well, it shouldn't. Instead you should see a page with the JBoss logo and the following text/links:

          JBoss Online Resources
          
           * JBoss Documentation
           * JBoss Wiki
           * JBoss JIRA
           * JBoss Forums
          
          JBoss Management
          
           * Tomcat status (full) (XML)
           * JMX Console
           * JBoss Web Console


          I think it is very likely that you have Tomcat running and JBoss failed to open port 8080.

          And I would get JBoss (and possibly NetBeans) out of the "Program Files" directory. I have JBoss (various versions) and NetBeans 5.0 installed at d:\apps.

          • 2. Re: Two Errors: jmx-console and JSP examples
            Chris Topher Newbie

            No typo.

            Tomcat
            Version 3.3 Final
            This is the default Tomcat home page. This page serves as a quick reference guide to related resources and is located at:

            </path/to/tomcat>/webpages/index.html
            Included within this release are functional examples with associated source code, API documentation for servlets and JSP, a README, a technical FAQ on this release and an assortment of jar files which are pre-requisites for continued development of web technologies including JSP and Servlets.
            Examples:

            I'll uninstall/reinstall JBoss and see what I can find if it was previously installed. This is an inherited server.

            Thanks for the fast reply.

            • 3. Re: Two Errors: jmx-console and JSP examples
              Peter Johnson Master

              I'm probably too late to stop you from uninstalling JBoss, but if you inherited the setup and somebody already handled the configuration, and it was working correctly with Tomcat on the same machine, what you should do is determine which port JBoss has open. One way to do this is look at the console output for text that looks like:

              07:46:44,041 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-XXXX


              The number in place of XXXX is the port being used.


              • 4. Re: Two Errors: jmx-console and JSP examples
                Chris Topher Newbie

                Yeah, was too late for the uninstall. Though at this point I kind of preferred uninstalling all and getting a 'fresh' start.

                I uninstalled JBoss, J2EE and the JDK.

                Tomcat was installed with JRE 1.2 as part of an extra demo that came with another app. I uninstalled all that, including the JRE.

                Install the JDK and J2EE again. The online JBoss installer wouldn't work. The JRE was there, checked at the command line to get version 1.4.x. Seems the JDK does not install the IE plugin. Installed the IE JRE plugin, which brought me to JRE 1.5.0_07-b03, even at the command line.

                Installed JBoss and all seems well. Index page is correct and the JMX-console is accessible.

                Thanks again for the original reply, it got me going in the right direction.