0 Replies Latest reply on Jun 27, 2003 5:18 AM by Johannes Weidl-Rektenwald

    netboot Problem with JBoss 3.2.1 and 3.2.2RC1

    Johannes Weidl-Rektenwald Newbie

      Hi!

      I want to boot a JBoss 3.2.1 instance over the net. I use the ant build script from the doco (see attached file) to set up a "netboot" configuration.

      I start the netboot server with "run -c netboot" and the netboot "client" on another node with " ./run.sh --netboot http://netbootserver:8080/netboot".

      The problem occurs when I want to call the JMX console via http:///jmx-console. I get the error stated below - the jasper compiler does not find the javax.servlet package. It seems that jetty does not have javax.servlet.jar and other important jars in its classpath - or it cannot load these jars from the server. The demo on the JBoss netboot demo page works, but I see that the libs are deployed one-by-one during booting which I cannot see in my environment.

      Any help?

      Regards,
      Joe.


      ----
      10:01:23,560 INFO [jbossweb] Started HttpContext[/]
      10:01:28,839 INFO [jbossweb] Error compiling file: /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java [javac] Compiling 1 source file
      [javac] /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java:3: package javax.servlet does not exist
      [javac] import javax.servlet.*;
      [javac] ^
      [javac] /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java:4: package javax.servlet.http does not exist
      [javac] import javax.servlet.http.*;
      [javac] ^
      [javac] /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java:5: package javax.servlet.jsp does not exist
      [javac] import javax.servlet.jsp.*;
      [javac] ^
      [javac] /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java:8: cannot access javax.servlet.jsp.HttpJspPage
      [javac] file javax/servlet/jsp/HttpJspPage.class not found
      [javac] public class index_jsp extends HttpJspBase {
      [javac] ^
      [javac] /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java:17: cannot resolve symbol
      [javac] symbol : class HttpServletRequest
      [javac] location: class org.apache.jsp.index_jsp
      [javac] public void _jspService(HttpServletRequest request, HttpServletResponse response)
      [javac] ^
      [javac] /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java:17: cannot resolve symbol
      [javac] symbol : class HttpServletResponse
      [javac] location: class org.apache.jsp.index_jsp
      [javac] public void _jspService(HttpServletRequest request, HttpServletResponse response)
      [javac] ^
      [javac] /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java:18: cannot resolve symbol
      [javac] symbol : class ServletException
      [javac] location: class org.apache.jsp.index_jsp
      [javac] throws java.io.IOException, ServletException {
      [javac] ^
      [javac] /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java:20: cannot resolve symbol
      [javac] symbol : class JspFactory
      [javac] location: class org.apache.jsp.index_jsp
      [javac] JspFactory _jspxFactory = null;
      [javac] ^
      [javac] /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java:21: package javax.servlet.jsp does not exist
      [javac] javax.servlet.jsp.PageContext pageContext = null;
      [javac] ^
      [javac] /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java:22: cannot resolve symbol
      [javac] symbol : class HttpSession
      [javac] location: class org.apache.jsp.index_jsp
      [javac] HttpSession session = null;
      [javac] ^
      [javac] /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java:23: cannot resolve symbol
      [javac] symbol : class ServletContext
      [javac] location: class org.apache.jsp.index_jsp
      [javac] ServletContext application = null;
      [javac] ^
      [javac] /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java:24: cannot resolve symbol
      [javac] symbol : class ServletConfig
      [javac] location: class org.apache.jsp.index_jsp
      [javac] ServletConfig config = null;
      [javac] ^
      [javac] /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java:25: cannot resolve symbol
      [javac] symbol : class JspWriter
      [javac] location: class org.apache.jsp.index_jsp
      [javac] JspWriter out = null;
      [javac] ^
      [javac] /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java:26: cannot resolve symbol
      [javac] symbol : variable this
      [javac] location: class org.apache.jsp.index_jsp
      [javac] Object page = this;
      [javac] ^
      [javac] /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java:27: cannot resolve symbol
      [javac] symbol : class JspWriter
      [javac] location: class org.apache.jsp.index_jsp
      [javac] JspWriter _jspx_out = null;
      [javac] ^
      [javac] /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java:31: cannot resolve symbol
      [javac] symbol : variable JspFactory
      [javac] location: class org.apache.jsp.index_jsp
      [javac] _jspxFactory = JspFactory.getDefaultFactory();
      [javac] ^
      [javac] /tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java:33: cannot resolve symbol
      [javac] symbol : variable this
      [javac] location: class org.apache.jsp.index_jsp
      [javac] pageContext = _jspxFactory.getPageContext(this, request, response,
      [javac] ^
      [javac] 17 errors


      10:01:28,842 INFO [jbossweb] Info: Compile: javaFileName=/tmp/Jetty_0_0_0_0_8080__jmx-console/index_jsp.java
      classpath=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22966jmx-console.war/WEB-INF/classes/:/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22966jmx-console.war/WEB-INF/lib/jboss-jmx.jar:/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22966jmx-console.war/WEB-INF/classes:/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22966jmx-console.war/WEB-INF/lib/jboss-jmx.jar:/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22966jmx-console.war:/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22945jbossweb-jetty.sar-contents/org.mortbay.jmx.jar:/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22945jbossweb-jetty.sar-contents/org.mortbay.j2ee.jar:/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22951jboss-local-jdbc.rar-contents/jboss-local-jdbc.jar:/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22964ejb-management.jar:/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22945jbossweb-jetty.sar-contents/org.jboss.jetty.jar:/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22945jbossweb-jetty.sar-contents/org.mortbay.jetty.jar:/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22945jbossweb-jetty.sar-contents/jasper-compiler.jar:/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22949jms-ra.rar-contents/jms-ra.jar:/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22965web-console.war:/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22945jbossweb-jetty.sar-contents/jasper-runtime.jar:/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22942console-mgr.sar-contents/console-mgr-classes.jar:/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22950jboss-xa-jdbc.rar-contents/jboss-xa-jdbc.jar:/opt/jboss/jboss-netboot/bin/run.jar:/usr/java/j2sdk1.4.1_03/lib/tools.jar:/usr/java/j2sdk1.4.1_03/jre/lib/ext/localedata.jar:/usr/java/j2sdk1.4.1_03/jre/lib/ext/dnsns.jar:/usr/java/j2sdk1.4.1_03/jre/lib/ext/ldapsec.jar:/usr/java/j2sdk1.4.1_03/jre/lib/ext/javaxcomm.jar:/usr/java/j2sdk1.4.1_03/jre/lib/ext/sunjce_provider.jar
      cp=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22966jmx-console.war/WEB-INF/classes
      cp=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22966jmx-console.war/WEB-INF/lib/jboss-jmx.jar
      cp=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22966jmx-console.war/WEB-INF/classes
      cp=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22966jmx-console.war/WEB-INF/lib/jboss-jmx.jar
      cp=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22966jmx-console.war
      cp=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22945jbossweb-jetty.sar-contents/org.mortbay.jmx.jar
      cp=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22945jbossweb-jetty.sar-contents/org.mortbay.j2ee.jar
      cp=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22951jboss-local-jdbc.rar-contents/jboss-local-jdbc.jar
      cp=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22964ejb-management.jar
      cp=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22945jbossweb-jetty.sar-contents/org.jboss.jetty.jar
      cp=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22945jbossweb-jetty.sar-contents/org.mortbay.jetty.jar
      cp=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22945jbossweb-jetty.sar-contents/jasper-compiler.jar
      cp=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22949jms-ra.rar-contents/jms-ra.jar
      cp=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22965web-console.war
      cp=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22945jbossweb-jetty.sar-contents/jasper-runtime.jar
      cp=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22942console-mgr.sar-contents/console-mgr-classes.jar
      cp=/opt/jboss/jboss-netboot/server/default/tmp/deploy/tmp22950jboss-xa-jdbc.rar-contents/jboss-xa-jdbc.jar
      cp=/opt/jboss/jboss-netboot/bin/run.jar
      cp=/usr/java/j2sdk1.4.1_03/lib/tools.jar
      cp=/usr/java/j2sdk1.4.1_03/jre/lib/ext/localedata.jar
      cp=/usr/java/j2sdk1.4.1_03/jre/lib/ext/dnsns.jar
      cp=/usr/java/j2sdk1.4.1_03/jre/lib/ext/ldapsec.jar
      cp=/usr/java/j2sdk1.4.1_03/jre/lib/ext/javaxcomm.jar
      cp=/usr/java/j2sdk1.4.1_03/jre/lib/ext/sunjce_provider.jar
      work dir=/tmp/Jetty_0_0_0_0_8080__jmx-console
      srcDir=/tmp/Jetty_0_0_0_0_8080__jmx-console
      include=index_jsp.java
      Exception compiling Compile failed; see the compiler error output for details.