1 Reply Latest reply on Dec 14, 2004 4:23 AM by Dave Denault

    Jboss4.0 Duke's compilation errs

    m s Newbie

      Hello all,

      i am trying to test dukes sample application with jboss
      i downloaded the j2ee-1_4-doc-tutorial_3.zip and jbossj2ee-src.zip(provided with jboss4 guide).when i try to compile the bank source,i get the following err,
      # ant -f jboss-build.xml compile
      Buildfile: jboss-build.xml

      prepare:

      compile:
      [javac] Compiling 4 source files to /opt/iexpress/jboss/ex/j2eetutorial14/examples/bank/build
      [javac] /opt/iexpress/jboss/ex/j2eetutorial14/examples/bank/src/com/sun/ebank/web/template/DefinitionTag.java:66: inconvertible types
      [javac] found : javax.servlet.jsp.JspContext
      [javac] required: javax.servlet.jsp.PageContext
      [javac] PageContext context = (PageContext) getJspContext();
      [javac] ^
      [javac] /opt/iexpress/jboss/ex/j2eetutorial14/examples/bank/src/com/sun/ebank/web/template/InsertTag.java:58: inconvertible types
      [javac] found : javax.servlet.jsp.JspContext
      [javac] required: javax.servlet.jsp.PageContext
      [javac] PageContext context = (PageContext) getJspContext();
      [javac] ^
      [javac] /opt/iexpress/jboss/ex/j2eetutorial14/examples/bank/src/com/sun/ebank/web/template/InsertTag.java:93: cannot resolve symbol
      [javac] symbol : constructor JspTagException (java.lang.String,java.lang.Throwable)
      [javac] location: class javax.servlet.jsp.JspTagException
      [javac] throw new JspTagException(ex.getMessage(), rootCause);
      [javac] ^
      [javac] 3 errors

      BUILD FAILED
      /opt/iexpress/jboss/ex/j2eetutorial14/examples/bank/jboss-build.xml:55: Compile failed; see the compiler error output for details.

      any ideas??